isUnused() public method

Check if you are setting values to variable but didn't use it (means get)
public isUnused ( ) : boolean
return boolean
Exemplo n.º 1
0
 public function testIsUnusedFalse()
 {
     $variable = new Variable('a', null, CompiledExpression::UNKNOWN);
     static::assertFalse($variable->isUnused());
 }