public function addFileToLastHeading(TableOfContents\File $file)
    {
        $this->last_heading->addChild($file);
        $file->setParent($this->last_heading);
    }
public function addFileToLastHeading(TableOfContents\File $file)
    {
        $this->last_heading->addChild($file);
        $file->setParent($this->last_heading);
    }
public function addFileToLastHeading ( TableOfContents \ File $ file ) { $ this -> last_heading -> addChild ( $ file ) ; $ file -> setParent ( $ this -> last_heading ) ; }
Adds a TableOfContents File object to the last heading that was discovered.

This may be used by roles or directives to insert an include file into the TableOfContents and thus all
its headings.

This method is explicitly bound to File objects and not other BaseEntry descendents because inline elements
such as headings should also modify the internal pointers for this visitor.
Adds a TableOfContents File object to the last heading that was discovered .