New Library
This commit is contained in:
parent
5c6f6c97b7
commit
c479658f0b
83 changed files with 5788 additions and 0 deletions
20
server/vendor/php-opencloud/common/src/Common/Api/ApiInterface.php
vendored
Normal file
20
server/vendor/php-opencloud/common/src/Common/Api/ApiInterface.php
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace OpenCloud\Common\Api;
|
||||
|
||||
/**
|
||||
* All classes which implement this interface are a data representation of a remote OpenCloud API.
|
||||
* They do not execute functionality, but instead return data for each API operation for other parts
|
||||
* of the SDK to use. Usually, the data is injected into {@see OpenCloud\Common\Api\Operation} objects.
|
||||
* The operation is then serialized into a {@see GuzzleHttp\Message\Request} and sent to the API.
|
||||
*
|
||||
* The reason for storing all the API-specific data is to decouple service information from client
|
||||
* HTTP functionality. Too often it is mixed all across different layers, leading to duplication and
|
||||
* no separation of concerns. The choice was made for storage in PHP classes, rather than YAML or JSON
|
||||
* syntax, due to performance concerns.
|
||||
*
|
||||
* @package OpenCloud\Common\Api
|
||||
*/
|
||||
interface ApiInterface
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue