getLine() public method

Returns the line number of the violation.
public getLine ( ) : integer
return integer
Exemplo n.º 1
0
 /**
  * Generates a key for a violation.
  *
  * @param Violation $violation
  *
  * @return string
  */
 private function getArrayKey(Violation $violation)
 {
     return $violation->getFile()->getFilename() . ':' . $violation->getLine();
 }