Lines Matching defs:headingEnterCall
31 private ?Call $headingEnterCall;
44 * @param Call|null $headingEnterCall - null if the section is the root
46 private function __construct(Call $headingEnterCall = null)
48 $this->headingEnterCall = $headingEnterCall;
49 if ($headingEnterCall !== null) {
50 $position = $headingEnterCall->getFirstMatchedCharacterPosition();
56 $this->addHeaderCall($headingEnterCall);
148 $this->headingEnterCall !== null &&
149 $this->headingEnterCall->isPluginCall() &&
150 !$this->headingEnterCall->hasAttribute("id")
152 $this->headingEnterCall->addAttribute("id", $this->getHeadingId());
161 return $this->headingEnterCall;
183 if ($this->headingEnterCall === null) {
186 switch ($this->headingEnterCall->getTagName()) {
188 $level = $this->headingEnterCall->getInstructionCall()[1][1];
191 $level = $this->headingEnterCall->getAttribute(HeadingTag::LEVEL);
229 $id = $this->headingEnterCall->getAttribute("id");
249 return $this->headingEnterCall !== null;
263 switch ($this->headingEnterCall->getTagName()) {
265 $this->headingEnterCall->getInstructionCall()[1][1] = $level;
268 $this->headingEnterCall->setAttribute(HeadingTag::LEVEL, $level);