getFile() public method

Returns the file of the violation.
public getFile ( ) : File
return File
Example #1
0
 /**
  * Generates a key for a violation.
  *
  * @param Violation $violation
  *
  * @return string
  */
 private function getArrayKey(Violation $violation)
 {
     return $violation->getFile()->getFilename() . ':' . $violation->getLine();
 }