getSets() публичный Метод

Gets the write counter.
public getSets ( ) : integer
Результат integer
Пример #1
0
 public function testIncSets()
 {
     $variable = new Variable('a', null, CompiledExpression::UNKNOWN);
     static::assertSame(0, $variable->getSets());
     $variable->incSets();
     static::assertSame(1, $variable->getSets());
     $variable->incSets();
     static::assertSame(2, $variable->getSets());
     $variable->incSets();
     $variable->incSets();
     static::assertSame(4, $variable->getSets());
 }