Lines Matching defs:headingEnterCall
33 private ?Call $headingEnterCall;
46 * @param Call|null $headingEnterCall - null if the section is the root
48 private function __construct(Call $headingEnterCall = null)
50 $this->headingEnterCall = $headingEnterCall;
51 if ($headingEnterCall !== null) {
52 $position = $headingEnterCall->getFirstMatchedCharacterPosition();
58 $this->addHeaderCall($headingEnterCall);
155 $this->headingEnterCall !== null &&
156 $this->headingEnterCall->isPluginCall() &&
157 !$this->headingEnterCall->hasAttribute("id")
159 $this->headingEnterCall->addAttribute("id", $this->getHeadingId());
168 return $this->headingEnterCall;
190 if ($this->headingEnterCall === null) {
193 switch ($this->headingEnterCall->getTagName()) {
195 $level = $this->headingEnterCall->getInstructionCall()[1][1];
198 $level = $this->headingEnterCall->getAttribute(HeadingTag::LEVEL);
236 $id = $this->headingEnterCall->getAttribute("id");
256 return $this->headingEnterCall !== null;
270 switch ($this->headingEnterCall->getTagName()) {
272 $this->headingEnterCall->getInstructionCall()[1][1] = $level;
275 $this->headingEnterCall->setAttribute(HeadingTag::LEVEL, $level);