public function __construct(Heading $content) { $this->content = $content; $this->level = $content->getLevel(); }