HippoPHP\Hippo\File::__construct PHP Method

__construct() public method

Create a new file representation.
public __construct ( string $filename = null, string $source = null, string $encoding = 'UTF-8' ) : File
$filename string
$source string
$encoding string
return File
    public function __construct($filename = null, $source = null, $encoding = 'UTF-8')
    {
        $this->filename = $filename;
        $this->source = $source;
        $this->encoding = $encoding;
        $this->lines = $this->buildLinesFromSource($source);
        return $this;
    }