Lines Matching refs:self
12 private $state = self::PENDING;
35 if ($this->state === self::PENDING) {
44 if ($this->state === self::FULFILLED) {
68 if ($this->state === self::FULFILLED) {
83 if ($this->state !== self::PENDING) {
103 if ($this->state === self::PENDING) {
110 $this->settle(self::FULFILLED, $value);
115 $this->settle(self::REJECTED, $reason);
120 if ($this->state !== self::PENDING) {
149 $id = $state === self::FULFILLED ? 1 : 2;
153 self::callHandler($id, $value, $handler);
164 self::callHandler(1, $value, $handler);
169 self::callHandler(2, $reason, $handler);
221 if ($this->state !== self::PENDING) {
238 if ($this->state === self::PENDING) {
250 if ($this->state === self::PENDING) {