HippoPHP\Hippo\File::getSource PHP Method

getSource() public method

Return the source of the file.
public getSource ( ) : string
return string
    public function getSource()
    {
        return $this->source;
    }

Usage Example

示例#1
0
 /**
  * @return mixed
  */
 public function getSyntaxTree()
 {
     return $this->lazyFactory->get(self::CONTEXT_AST, function () {
         $parser = new Parser(new Emulative());
         $stmts = $parser->parse($this->file->getSource());
         return $stmts;
     });
 }