diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-28 12:17:43 +0200 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-28 12:17:43 +0200 |
| commit | 53f65de9d4163c9c095f2b8e87baca648c3645bd (patch) | |
| tree | 37f167f38b25aa50bd7dd1429438c0245a280a28 /server/vendor/php-opencloud/common/src/Common/Api/OperatorInterface.php | |
| parent | 60cfe3ebc039df8d6a468a43a59e7fd8c2a16956 (diff) | |
| parent | 804fa322d841d73ee7592885ec500dc94e91b9e6 (diff) | |
Test
Diffstat (limited to 'server/vendor/php-opencloud/common/src/Common/Api/OperatorInterface.php')
| -rwxr-xr-x | server/vendor/php-opencloud/common/src/Common/Api/OperatorInterface.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/server/vendor/php-opencloud/common/src/Common/Api/OperatorInterface.php b/server/vendor/php-opencloud/common/src/Common/Api/OperatorInterface.php index 43c6ce2..168518b 100755 --- a/server/vendor/php-opencloud/common/src/Common/Api/OperatorInterface.php +++ b/server/vendor/php-opencloud/common/src/Common/Api/OperatorInterface.php @@ -1,8 +1,11 @@ -<?php +<?php declare(strict_types=1); namespace OpenCloud\Common\Api; use GuzzleHttp\ClientInterface; +use GuzzleHttp\Promise\PromiseInterface; +use OpenCloud\Common\Resource\ResourceInterface; +use Psr\Http\Message\ResponseInterface; /** * An operator is any resource or service that can invoke and send REST operations. In other words, it @@ -28,7 +31,7 @@ interface OperatorInterface * * @return \Psr\Http\Message\ResponseInterface */ - public function execute(array $definition, array $userValues = []); + public function execute(array $definition, array $userValues = []): ResponseInterface; /** * A convenience method that assembles an operation and asynchronously sends it to the remote API @@ -38,7 +41,7 @@ interface OperatorInterface * * @return \GuzzleHttp\Promise\PromiseInterface */ - public function executeAsync(array $definition, array $userValues = []); + public function executeAsync(array $definition, array $userValues = []): PromiseInterface; /** * @param string $name The name of the model class. @@ -47,5 +50,5 @@ interface OperatorInterface * * @return \OpenCloud\Common\Resource\ResourceInterface */ - public function model($name, $data = null); + public function model(string $name, $data = null): ResourceInterface; } |
