Property | Type | Description | |
---|---|---|---|
$encoding | string | Encoding of the file. | |
$filename | string | Filename. | |
$lines | array | Lines of the file. | |
$source | string | Source code within the file. |
Method | Description | |
---|---|---|
__construct ( string $filename = null, string $source = null, string $encoding = 'UTF-8' ) : |
Create a new file representation. | |
getEncoding ( ) : string | Return the file encoding. | |
getFilename ( ) : string | Return the filename. | |
getLines ( ) : array | Return the individual array of lines. | |
getSource ( ) : string | Return the source of the file. |
Method | Description | |
---|---|---|
buildLinesFromSource ( string $source ) : array | ||
extractNextLine ( string $source, array $eols, string &$eolUsed ) : string |