PHPSA\Variable::incSets PHP Method

incSets() public method

Increases the write counter.
public incSets ( ) : integer
return integer
    public function incSets()
    {
        return $this->sets++;
    }

Usage Example

Example #1
0
 public function testIsUnusedTrue()
 {
     $variable = new Variable('a', 1, CompiledExpression::INTEGER);
     static::assertTrue($variable->isUnused());
     $variable = new Variable('a', null, CompiledExpression::UNKNOWN);
     $variable->incSets();
     static::assertTrue($variable->isUnused());
 }