diff options
Diffstat (limited to 'assets/php/vendor/react/promise/tests/PromiseAdapter')
-rwxr-xr-x | assets/php/vendor/react/promise/tests/PromiseAdapter/CallbackPromiseAdapter.php | 40 | ||||
-rwxr-xr-x | assets/php/vendor/react/promise/tests/PromiseAdapter/PromiseAdapterInterface.php | 14 |
2 files changed, 0 insertions, 54 deletions
diff --git a/assets/php/vendor/react/promise/tests/PromiseAdapter/CallbackPromiseAdapter.php b/assets/php/vendor/react/promise/tests/PromiseAdapter/CallbackPromiseAdapter.php deleted file mode 100755 index bdedf46..0000000 --- a/assets/php/vendor/react/promise/tests/PromiseAdapter/CallbackPromiseAdapter.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php - -namespace React\Promise\PromiseAdapter; - -use React\Promise; - -class CallbackPromiseAdapter implements PromiseAdapterInterface -{ - private $callbacks; - - public function __construct(array $callbacks) - { - $this->callbacks = $callbacks; - } - - public function promise() - { - return call_user_func_array($this->callbacks['promise'], func_get_args()); - } - - public function resolve() - { - return call_user_func_array($this->callbacks['resolve'], func_get_args()); - } - - public function reject() - { - return call_user_func_array($this->callbacks['reject'], func_get_args()); - } - - public function notify() - { - return call_user_func_array($this->callbacks['notify'], func_get_args()); - } - - public function settle() - { - return call_user_func_array($this->callbacks['settle'], func_get_args()); - } -} diff --git a/assets/php/vendor/react/promise/tests/PromiseAdapter/PromiseAdapterInterface.php b/assets/php/vendor/react/promise/tests/PromiseAdapter/PromiseAdapterInterface.php deleted file mode 100755 index 9157cd4..0000000 --- a/assets/php/vendor/react/promise/tests/PromiseAdapter/PromiseAdapterInterface.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php - -namespace React\Promise\PromiseAdapter; - -use React\Promise; - -interface PromiseAdapterInterface -{ - public function promise(); - public function resolve(); - public function reject(); - public function notify(); - public function settle(); -} |