Lines Matching refs:state
12 private $state = self::PENDING; variable in GuzzleHttp\\Promise\\Promise
35 if ($this->state === self::PENDING) {
44 if ($this->state === self::FULFILLED) {
68 if ($this->state === self::FULFILLED) {
78 return $this->state;
83 if ($this->state !== self::PENDING) {
103 if ($this->state === self::PENDING) {
118 private function settle($state, $value) argument
120 if ($this->state !== self::PENDING) {
122 if ($state === $this->state && $value === $this->result) {
125 throw $this->state === $state
126 ? new \LogicException("The promise is already {$state}.")
127 : new \LogicException("Cannot change a {$this->state} promise to {$state}");
135 $this->state = $state;
149 $id = $state === self::FULFILLED ? 1 : 2;
221 if ($this->state !== self::PENDING) {
238 if ($this->state === self::PENDING) {
250 if ($this->state === self::PENDING) {