Predis\Transaction\MultiExecState::isDiscarded PHP Метод

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

Returns the state of the DISCARDED flag.
public isDiscarded ( ) : boolean
Результат boolean
    public function isDiscarded()
    {
        return $this->check(self::DISCARDED);
    }

Usage Example

 /**
  * @group disconnected
  */
 public function testIsDiscarded()
 {
     $state = new MultiExecState();
     $this->assertFalse($state->isDiscarded());
     $state->set(MultiExecState::DISCARDED);
     $this->assertTrue($state->isDiscarded());
 }