Method |
Description |
|
__construct ( string $filename, string $source, string $encoding = 'utf-8' ) : void |
Create a new file representation. |
|
addViolation ( Violation $violation ) : void |
Add a violation to the file. |
|
getEncoding ( ) : string |
Get encoding of the file. |
|
getFilename ( ) : string |
Get the filename of the represented file. |
|
getLines ( ) : array |
Get all lines of the source code as array. |
|
getSource ( ) : string |
Get the source code of the represented file. |
|
getViolations ( ) : array |
Get all produced violations. |
|
seek ( integer $position ) : void |
seek(): defined by SeekableIterator interface. |
|
seekNextLine ( ) : boolean |
Seek to the next line. |
|
seekTokenType ( mixed $type, boolean $backwards = false, mixed $stopper = null ) : boolean |
Seek to a specific token type. |
|