diff --git a/src/Connector/Client.php b/src/Connector/Client.php index 4dd4b418..25860e60 100644 --- a/src/Connector/Client.php +++ b/src/Connector/Client.php @@ -9,17 +9,24 @@ /** * Class Client + * * @package AcquiaCloudApi\CloudApi */ class Client implements ClientInterface { - /** @var ConnectorInterface The API connector. */ + /** + * @var ConnectorInterface The API connector. + */ protected $connector; - /** @var array Query strings to be applied to the request. */ + /** + * @var array Query strings to be applied to the request. + */ protected $query = []; - /** @var array Guzzle options to be applied to the request. */ + /** + * @var array Guzzle options to be applied to the request. + */ protected $options = []; /** diff --git a/src/Connector/ClientInterface.php b/src/Connector/ClientInterface.php index 143d6c24..aa564d3b 100644 --- a/src/Connector/ClientInterface.php +++ b/src/Connector/ClientInterface.php @@ -4,7 +4,7 @@ use Psr\Http\Message\ResponseInterface; use GuzzleHttp\Exception\BadResponseException; -use Psr\Http\Message\StreamInterface; +use AcquiaCloudApi\Exception\ApiErrorException; /** * Interface ClientInterface @@ -26,9 +26,9 @@ interface ClientInterface public function request(string $verb, string $path, array $options = []); /** - * @param string $verb - * @param string $path - * @param array $options + * @param string $verb + * @param string $path + * @param array $options * @return ResponseInterface */ public function makeRequest(string $verb, string $path, array $options = []); @@ -36,7 +36,7 @@ public function makeRequest(string $verb, string $path, array $options = []); /** * Processes the returned response from the API. * - * @param ResponseInterface $response + * @param ResponseInterface $response * @return mixed|StreamInterface * @throws \Exception */ diff --git a/src/Connector/Connector.php b/src/Connector/Connector.php index 326268e2..0946e5b1 100644 --- a/src/Connector/Connector.php +++ b/src/Connector/Connector.php @@ -3,16 +3,14 @@ namespace AcquiaCloudApi\Connector; use League\OAuth2\Client\Provider\GenericProvider; -use League\OAuth2\Client\Provider\Exception\IdentityProviderException; use League\OAuth2\Client\Token\AccessTokenInterface; use GuzzleHttp\Client as GuzzleClient; -use GuzzleHttp\Exception\BadResponseException; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\RequestInterface; -use Psr\Http\Message\StreamInterface; /** * Class Connector + * * @package AcquiaCloudApi\CloudApi */ class Connector implements ConnectorInterface @@ -42,13 +40,15 @@ class Connector implements ConnectorInterface */ public function __construct(array $config) { - $this->provider = new GenericProvider([ + $this->provider = new GenericProvider( + [ 'clientId' => $config['key'], 'clientSecret' => $config['secret'], 'urlAuthorize' => '', 'urlAccessToken' => self::URL_ACCESS_TOKEN, 'urlResourceOwnerDetails' => '', - ]); + ] + ); } /** diff --git a/src/Connector/ConnectorInterface.php b/src/Connector/ConnectorInterface.php index d58303aa..d1b234cd 100644 --- a/src/Connector/ConnectorInterface.php +++ b/src/Connector/ConnectorInterface.php @@ -2,9 +2,11 @@ namespace AcquiaCloudApi\Connector; +use League\OAuth2\Client\Provider\GenericProvider; +use League\OAuth2\Client\Token\AccessTokenInterface; +use GuzzleHttp\Client as GuzzleClient; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\RequestInterface; -use Psr\Http\Message\StreamInterface; /** * Interface ConnectorInterface @@ -36,7 +38,7 @@ public function createRequest($verb, $path); * * @param string $verb * @param string $path - * @param array $options + * @param array $options * * @return ResponseInterface */ diff --git a/src/Endpoints/Account.php b/src/Endpoints/Account.php index 9acc7413..a6a91749 100644 --- a/src/Endpoints/Account.php +++ b/src/Endpoints/Account.php @@ -2,12 +2,12 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\AccountResponse; use Psr\Http\Message\StreamInterface; /** * Class Account + * * @package AcquiaCloudApi\CloudApi */ class Account extends CloudApiBase implements CloudApiInterface diff --git a/src/Endpoints/Applications.php b/src/Endpoints/Applications.php index b6e2d34d..654686a4 100644 --- a/src/Endpoints/Applications.php +++ b/src/Endpoints/Applications.php @@ -2,7 +2,6 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\ApplicationResponse; use AcquiaCloudApi\Response\ApplicationsResponse; use AcquiaCloudApi\Response\TagResponse; @@ -11,6 +10,7 @@ /** * Class Applications + * * @package AcquiaCloudApi\CloudApi */ class Applications extends CloudApiBase implements CloudApiInterface @@ -29,7 +29,7 @@ public function getAll() /** * Shows information about an application. * - * @param string $applicationUuid + * @param string $applicationUuid * @return ApplicationResponse */ public function get($applicationUuid) @@ -45,8 +45,8 @@ public function get($applicationUuid) /** * Renames an application. * - * @param string $applicationUuid - * @param string $name + * @param string $applicationUuid + * @param string $name * @return OperationResponse */ public function rename($applicationUuid, $name) @@ -70,7 +70,7 @@ public function rename($applicationUuid, $name) /** * Returns a list of application tags associated with this application. * - * @param string $applicationUuid + * @param string $applicationUuid * @return TagsResponse */ public function getAllTags($applicationUuid) @@ -87,9 +87,9 @@ public function getAllTags($applicationUuid) /** * Creates a new application tag. * - * @param string $applicationUuid - * @param string $name - * @param string $color + * @param string $applicationUuid + * @param string $name + * @param string $color * @return OperationResponse */ public function createTag($applicationUuid, $name, $color) @@ -114,8 +114,8 @@ public function createTag($applicationUuid, $name, $color) /** * Deletes an application tag. * - * @param string $applicationUuid - * @param string $tagName + * @param string $applicationUuid + * @param string $tagName * @return OperationResponse */ public function deleteTag($applicationUuid, $tagName) diff --git a/src/Endpoints/CloudApiBase.php b/src/Endpoints/CloudApiBase.php index 983f732c..c8b1be20 100644 --- a/src/Endpoints/CloudApiBase.php +++ b/src/Endpoints/CloudApiBase.php @@ -6,12 +6,15 @@ /** * Class CloudApiBase + * * @package AcquiaCloudApi\CloudApi */ abstract class CloudApiBase implements CloudApiInterface { - /** @var ClientInterface The API client. */ + /** + * @var ClientInterface The API client. + */ protected $client; /** diff --git a/src/Endpoints/Code.php b/src/Endpoints/Code.php index aa57e4fc..d6ef0cf8 100644 --- a/src/Endpoints/Code.php +++ b/src/Endpoints/Code.php @@ -2,12 +2,12 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\BranchesResponse; use AcquiaCloudApi\Response\OperationResponse; /** * Class Code + * * @package AcquiaCloudApi\CloudApi */ class Code extends CloudApiBase implements CloudApiInterface @@ -16,7 +16,7 @@ class Code extends CloudApiBase implements CloudApiInterface /** * Shows all code branches and tags in an application. * - * @param string $applicationUuid + * @param string $applicationUuid * @return BranchesResponse */ public function getAll($applicationUuid) @@ -32,8 +32,8 @@ public function getAll($applicationUuid) /** * Deploys a code branch/tag to an environment. * - * @param string $environmentUuid - * @param string $branch + * @param string $environmentUuid + * @param string $branch * @return OperationResponse */ public function switch($environmentUuid, $branch) diff --git a/src/Endpoints/Crons.php b/src/Endpoints/Crons.php index 421ca2fd..5f541a0c 100644 --- a/src/Endpoints/Crons.php +++ b/src/Endpoints/Crons.php @@ -2,13 +2,13 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\CronsResponse; use AcquiaCloudApi\Response\CronResponse; use AcquiaCloudApi\Response\OperationResponse; /** * Class Crons + * * @package AcquiaCloudApi\CloudApi */ class Crons extends CloudApiBase implements CloudApiInterface @@ -17,7 +17,7 @@ class Crons extends CloudApiBase implements CloudApiInterface /** * Show all cron tasks for an environment. * - * @param string $environmentUuid The environment ID + * @param string $environmentUuid The environment ID * @return CronsResponse */ public function getAll($environmentUuid) @@ -33,8 +33,8 @@ public function getAll($environmentUuid) /** * Get information about a cron task. * - * @param string $environmentUuid The environment ID - * @param int $cronId + * @param string $environmentUuid The environment ID + * @param int $cronId * @return CronResponse */ public function get($environmentUuid, $cronId) @@ -50,11 +50,11 @@ public function get($environmentUuid, $cronId) /** * Add a cron task. * - * @param string $environmentUuid - * @param string $command - * @param string $frequency - * @param string $label - * @param string $serverId + * @param string $environmentUuid + * @param string $command + * @param string $frequency + * @param string $label + * @param string $serverId * @return OperationResponse */ public function create($environmentUuid, $command, $frequency, $label, $serverId = null) @@ -77,12 +77,12 @@ public function create($environmentUuid, $command, $frequency, $label, $serverId /** * Update a cron task. * - * @param string $environmentUuid - * @param string $cronId - * @param string $command - * @param string $frequency - * @param string $label - * @param string $serverId + * @param string $environmentUuid + * @param string $cronId + * @param string $command + * @param string $frequency + * @param string $label + * @param string $serverId * @return OperationResponse */ public function update($environmentUuid, $cronId, $command, $frequency, $label, $serverId = null) @@ -105,8 +105,8 @@ public function update($environmentUuid, $cronId, $command, $frequency, $label, /** * Delete a cron task. * - * @param string $environmentUuid - * @param int $cronId + * @param string $environmentUuid + * @param int $cronId * @return OperationResponse */ public function delete($environmentUuid, $cronId) @@ -119,8 +119,8 @@ public function delete($environmentUuid, $cronId) /** * Disable a cron task. * - * @param string $environmentUuid - * @param int $cronId + * @param string $environmentUuid + * @param int $cronId * @return OperationResponse */ public function disable($environmentUuid, $cronId) @@ -136,8 +136,8 @@ public function disable($environmentUuid, $cronId) /** * Enable a cron task. * - * @param string $environmentUuid - * @param int $cronId + * @param string $environmentUuid + * @param int $cronId * @return OperationResponse */ public function enable($environmentUuid, $cronId) diff --git a/src/Endpoints/DatabaseBackups.php b/src/Endpoints/DatabaseBackups.php index cf6a4aa1..b5809e69 100644 --- a/src/Endpoints/DatabaseBackups.php +++ b/src/Endpoints/DatabaseBackups.php @@ -2,7 +2,6 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\BackupsResponse; use AcquiaCloudApi\Response\BackupResponse; use AcquiaCloudApi\Response\OperationResponse; @@ -10,6 +9,7 @@ /** * Class DatabaseBackups + * * @package AcquiaCloudApi\CloudApi */ class DatabaseBackups extends CloudApiBase implements CloudApiInterface @@ -18,8 +18,8 @@ class DatabaseBackups extends CloudApiBase implements CloudApiInterface /** * Backup a database. * - * @param string $environmentUuid - * @param string $dbName + * @param string $environmentUuid + * @param string $dbName * @return OperationResponse */ public function create($environmentUuid, $dbName) @@ -35,8 +35,8 @@ public function create($environmentUuid, $dbName) /** * Shows all database backups in an environment. * - * @param string $environmentUuid - * @param string $dbName + * @param string $environmentUuid + * @param string $dbName * @return BackupsResponse */ public function getAll($environmentUuid, $dbName) @@ -52,9 +52,9 @@ public function getAll($environmentUuid, $dbName) /** * Gets information about a database backup. * - * @param string $environmentUuid - * @param string $dbName - * @param int $backupId + * @param string $environmentUuid + * @param string $dbName + * @param int $backupId * @return BackupResponse */ public function get($environmentUuid, $dbName, $backupId) @@ -70,9 +70,9 @@ public function get($environmentUuid, $dbName, $backupId) /** * Restores a database backup to a database in an environment. * - * @param string $environmentUuid - * @param string $dbName - * @param int $backupId + * @param string $environmentUuid + * @param string $dbName + * @param int $backupId * @return OperationResponse */ public function restore($environmentUuid, $dbName, $backupId) @@ -88,9 +88,9 @@ public function restore($environmentUuid, $dbName, $backupId) /** * Downloads a database backup. * - * @param string $environmentUuid - * @param string $dbName - * @param int $backupId + * @param string $environmentUuid + * @param string $dbName + * @param int $backupId * @return StreamInterface */ public function download($environmentUuid, $dbName, $backupId) diff --git a/src/Endpoints/Databases.php b/src/Endpoints/Databases.php index d4f471d5..31849e60 100644 --- a/src/Endpoints/Databases.php +++ b/src/Endpoints/Databases.php @@ -2,12 +2,12 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\DatabasesResponse; use AcquiaCloudApi\Response\OperationResponse; /** * Class Databases + * * @package AcquiaCloudApi\CloudApi */ class Databases extends CloudApiBase implements CloudApiInterface @@ -16,7 +16,7 @@ class Databases extends CloudApiBase implements CloudApiInterface /** * Shows all databases in an application. * - * @param string $applicationUuid + * @param string $applicationUuid * @return DatabasesResponse */ public function getAll($applicationUuid) @@ -32,8 +32,8 @@ public function getAll($applicationUuid) /** * Create a new database. * - * @param string $applicationUuid - * @param string $name + * @param string $applicationUuid + * @param string $name * @return OperationResponse */ public function create($applicationUuid, $name) @@ -52,8 +52,8 @@ public function create($applicationUuid, $name) /** * Delete a database. * - * @param string $applicationUuid - * @param string $name + * @param string $applicationUuid + * @param string $name * @return OperationResponse */ public function delete($applicationUuid, $name) @@ -69,8 +69,8 @@ public function delete($applicationUuid, $name) * This action will delete all tables of the database in ALL environments * within this application. * - * @param string $applicationUuid - * @param string $name + * @param string $applicationUuid + * @param string $name * @return OperationResponse */ public function truncate($applicationUuid, $name) @@ -86,9 +86,9 @@ public function truncate($applicationUuid, $name) /** * Copies a database from an environment to an environment. * - * @param string $environmentFromUuid - * @param string $dbName - * @param string $environmentToUuid + * @param string $environmentFromUuid + * @param string $dbName + * @param string $environmentToUuid * @return OperationResponse */ public function copy($environmentFromUuid, $dbName, $environmentToUuid) diff --git a/src/Endpoints/Domains.php b/src/Endpoints/Domains.php index 76d38ad4..f0274d6a 100644 --- a/src/Endpoints/Domains.php +++ b/src/Endpoints/Domains.php @@ -2,7 +2,6 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\DomainsResponse; use AcquiaCloudApi\Response\DomainResponse; use AcquiaCloudApi\Response\OperationResponse; @@ -10,6 +9,7 @@ /** * Class Domains + * * @package AcquiaCloudApi\CloudApi */ class Domains extends CloudApiBase implements CloudApiInterface @@ -18,7 +18,7 @@ class Domains extends CloudApiBase implements CloudApiInterface /** * Shows all domains on an environment. * - * @param string $environmentUuid + * @param string $environmentUuid * @return DomainsResponse */ public function getAll($environmentUuid) @@ -34,8 +34,8 @@ public function getAll($environmentUuid) /** * Return details about a domain. * - * @param string $environmentUuid - * @param string $domain + * @param string $environmentUuid + * @param string $domain * @return DomainResponse */ public function get($environmentUuid, $domain) @@ -51,8 +51,8 @@ public function get($environmentUuid, $domain) /** * Adds a domain to an environment. * - * @param string $environmentUuid - * @param string $hostname + * @param string $environmentUuid + * @param string $hostname * @return OperationResponse */ public function create($environmentUuid, $hostname) @@ -72,8 +72,8 @@ public function create($environmentUuid, $hostname) /** * Deletes a domain from an environment. * - * @param string $environmentUuid - * @param string $domain + * @param string $environmentUuid + * @param string $domain * @return OperationResponse */ public function delete($environmentUuid, $domain) @@ -86,8 +86,8 @@ public function delete($environmentUuid, $domain) /** * Purges varnish for selected domains in an environment. * - * @param string $environmentUuid - * @param array $domains + * @param string $environmentUuid + * @param array $domains * @return OperationResponse */ public function purge($environmentUuid, array $domains) @@ -111,8 +111,8 @@ public function purge($environmentUuid, array $domains) /** * Retrieves the scan data for a domain name that is part of this environment. * - * @param string $environmentUuid - * @param string $domain + * @param string $environmentUuid + * @param string $domain * @return MetricsResponse */ public function metrics($environmentUuid, $domain) @@ -128,8 +128,8 @@ public function metrics($environmentUuid, $domain) /** * Returns details about the domain. * - * @param string $environmentUuid - * @param string $domain + * @param string $environmentUuid + * @param string $domain * @return DomainResponse */ public function status($environmentUuid, $domain) diff --git a/src/Endpoints/Environments.php b/src/Endpoints/Environments.php index b8789f0c..cdd9c5b0 100644 --- a/src/Endpoints/Environments.php +++ b/src/Endpoints/Environments.php @@ -2,13 +2,13 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\EnvironmentResponse; use AcquiaCloudApi\Response\EnvironmentsResponse; use AcquiaCloudApi\Response\OperationResponse; /** * Class Environments + * * @package AcquiaCloudApi\CloudApi */ class Environments extends CloudApiBase implements CloudApiInterface @@ -17,8 +17,8 @@ class Environments extends CloudApiBase implements CloudApiInterface /** * Copies files from an environment to another environment. * - * @param string $environmentUuidFrom - * @param string $environmentUuidTo + * @param string $environmentUuidFrom + * @param string $environmentUuidTo * @return OperationResponse */ public function copyFiles($environmentUuidFrom, $environmentUuidTo) @@ -37,7 +37,7 @@ public function copyFiles($environmentUuidFrom, $environmentUuidTo) /** * Gets information about an environment. * - * @param string $environmentUuid + * @param string $environmentUuid * @return EnvironmentResponse */ public function get($environmentUuid) @@ -53,7 +53,7 @@ public function get($environmentUuid) /** * Shows all environments in an application. * - * @param string $applicationUuid + * @param string $applicationUuid * @return EnvironmentsResponse */ public function getAll($applicationUuid) @@ -69,8 +69,8 @@ public function getAll($applicationUuid) /** * Modifies configuration settings for an environment. * - * @param string $environmentUuid - * @param array $config + * @param string $environmentUuid + * @param array $config * @return OperationResponse */ public function update($environmentUuid, array $config) @@ -92,8 +92,8 @@ public function update($environmentUuid, array $config) /** * Renames an environment. * - * @param string $environmentUuid - * @param string $label + * @param string $environmentUuid + * @param string $label * @return OperationResponse */ public function rename($environmentUuid, $label) @@ -117,7 +117,7 @@ public function rename($environmentUuid, $label) /** * Enable livedev mode for an environment. * - * @param string $environmentUuid + * @param string $environmentUuid * @return OperationResponse */ public function enableLiveDev($environmentUuid) @@ -130,7 +130,7 @@ public function enableLiveDev($environmentUuid) /** * Disable livedev mode for an environment. * - * @param string $environmentUuid + * @param string $environmentUuid * @return OperationResponse */ public function disableLiveDev($environmentUuid) @@ -154,7 +154,7 @@ public function disableLiveDev($environmentUuid) /** * Enable production mode for an environment. * - * @param string $environmentUuid + * @param string $environmentUuid * @return OperationResponse */ public function enableProductionMode($environmentUuid) @@ -170,7 +170,7 @@ public function enableProductionMode($environmentUuid) /** * Disable production mode for an environment. * - * @param string $environmentUuid + * @param string $environmentUuid * @return OperationResponse */ public function disableProductionMode($environmentUuid) @@ -186,10 +186,10 @@ public function disableProductionMode($environmentUuid) /** * Add a new continuous delivery environment to an application. * - * @param string $applicationUuid - * @param string $label - * @param string $branch - * @param array $databases + * @param string $applicationUuid + * @param string $label + * @param string $branch + * @param array $databases * @return OperationResponse */ public function create($applicationUuid, $label, $branch, array $databases) @@ -214,7 +214,7 @@ public function create($applicationUuid, $label, $branch, array $databases) /** * Deletes a CD environment. * - * @param string $environmentUuid + * @param string $environmentUuid * @return OperationResponse */ public function delete($environmentUuid) diff --git a/src/Endpoints/IdentityProviders.php b/src/Endpoints/IdentityProviders.php index 130f7d8d..2aee09f8 100644 --- a/src/Endpoints/IdentityProviders.php +++ b/src/Endpoints/IdentityProviders.php @@ -2,13 +2,13 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\OperationResponse; use AcquiaCloudApi\Response\IdentityProvidersResponse; use AcquiaCloudApi\Response\IdentityProviderResponse; /** * Class IdentityProviders + * * @package AcquiaCloudApi\CloudApi */ class IdentityProviders extends CloudApiBase implements CloudApiInterface @@ -32,7 +32,7 @@ public function getAll() /** * Returns a specific identity provider by UUID. * - * @param string $idpUuid The identity provider ID + * @param string $idpUuid The identity provider ID * @return IdentityProviderResponse */ public function get($idpUuid) @@ -48,7 +48,7 @@ public function get($idpUuid) /** * Delete a specific identity provider by UUID. * - * @param string $idpUuid + * @param string $idpUuid * @return OperationResponse */ public function delete($idpUuid) @@ -64,7 +64,7 @@ public function delete($idpUuid) /** * Disables an identity provider by UUID. * - * @param string $idpUuid + * @param string $idpUuid * @return OperationResponse */ public function disable($idpUuid) @@ -80,7 +80,7 @@ public function disable($idpUuid) /** * Enables an identity provider by UUID. * - * @param string $idpUuid + * @param string $idpUuid * @return OperationResponse */ public function enable($idpUuid) @@ -96,11 +96,11 @@ public function enable($idpUuid) /** * Updates a identity provider by UUID. * - * @param string $idpUuid - * @param string $label - * @param string $entityId - * @param string $ssoUrl - * @param string $certificate + * @param string $idpUuid + * @param string $label + * @param string $entityId + * @param string $ssoUrl + * @param string $certificate * @return OperationResponse */ public function update($idpUuid, $label, $entityId, $ssoUrl, $certificate) diff --git a/src/Endpoints/Ides.php b/src/Endpoints/Ides.php index 9914e6f1..129bad87 100644 --- a/src/Endpoints/Ides.php +++ b/src/Endpoints/Ides.php @@ -2,13 +2,13 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\IdesResponse; use AcquiaCloudApi\Response\IdeResponse; use AcquiaCloudApi\Response\OperationResponse; /** * Class Ides + * * @package AcquiaCloudApi\CloudApi */ class Ides extends CloudApiBase implements CloudApiInterface @@ -17,7 +17,7 @@ class Ides extends CloudApiBase implements CloudApiInterface /** * Returns a list of remote IDEs. * - * @param string $applicationUuid The application ID + * @param string $applicationUuid The application ID * @return IdesResponse */ public function getAll($applicationUuid) @@ -33,7 +33,7 @@ public function getAll($applicationUuid) /** * Get remote IDE info. * - * @param string $ideUuid The Remote IDE universally unique identifier. + * @param string $ideUuid The Remote IDE universally unique identifier. * @return IdeResponse */ public function get($ideUuid) @@ -49,8 +49,8 @@ public function get($ideUuid) /** * Creates a new remote IDE. * - * @param string $applicationUuid - * @param string $name + * @param string $applicationUuid + * @param string $name * @return OperationResponse */ public function create($applicationUuid, $name) @@ -70,13 +70,13 @@ public function create($applicationUuid, $name) /** * De-provisions a specific Remote IDE. * - * @param string $ideUuid + * @param string $ideUuid * @return OperationResponse */ public function delete($ideUuid) { return new OperationResponse( - $this->client->request('delete', "/ides/{ideUuid}") + $this->client->request('delete', "/ides/${ideUuid}") ); } } diff --git a/src/Endpoints/Insights.php b/src/Endpoints/Insights.php index 4eb1d4fe..4ecdc732 100644 --- a/src/Endpoints/Insights.php +++ b/src/Endpoints/Insights.php @@ -2,7 +2,6 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\InsightsResponse; use AcquiaCloudApi\Response\InsightResponse; use AcquiaCloudApi\Response\InsightAlertsResponse; @@ -12,6 +11,7 @@ /** * Class Insights + * * @package AcquiaCloudApi\CloudApi */ class Insights extends CloudApiBase implements CloudApiInterface @@ -20,7 +20,7 @@ class Insights extends CloudApiBase implements CloudApiInterface /** * Returns Insight data for all sites associated with the application by its UUID. * - * @param string $applicationUuid + * @param string $applicationUuid * @return InsightsResponse */ public function getAll($applicationUuid) @@ -36,7 +36,7 @@ public function getAll($applicationUuid) /** * Returns Insight data for all sites associated with the environment by its UUID. * - * @param string $environmentUuid + * @param string $environmentUuid * @return InsightsResponse */ public function getEnvironment($environmentUuid) @@ -52,7 +52,7 @@ public function getEnvironment($environmentUuid) /** * Returns insight data for a particular site. * - * @param string $siteId + * @param string $siteId * @return InsightResponse */ public function get($siteId) @@ -68,7 +68,7 @@ public function get($siteId) /** * Returns a list of Insight alerts for this site. * - * @param string $siteId + * @param string $siteId * @return InsightAlertsResponse */ public function getAllAlerts($siteId) @@ -84,8 +84,8 @@ public function getAllAlerts($siteId) /** * Returns a specific Insight alert for this site. * - * @param string $siteId - * @param string $alertUuid + * @param string $siteId + * @param string $alertUuid * @return InsightAlertResponse */ public function getAlert($siteId, $alertUuid) @@ -101,8 +101,8 @@ public function getAlert($siteId, $alertUuid) /** * Ignores an alert. An ignored alert will be included will not be counted in the Insight score calculation. * - * @param string $siteId - * @param string $alertUuid + * @param string $siteId + * @param string $alertUuid * @return OperationResponse */ public function ignoreAlert($siteId, $alertUuid) @@ -118,8 +118,8 @@ public function ignoreAlert($siteId, $alertUuid) /** * Restores an alert. A restored alert will be included in the calculation of the Insight score. * - * @param string $siteId - * @param string $alertUuid + * @param string $siteId + * @param string $alertUuid * @return OperationResponse */ public function restoreAlert($siteId, $alertUuid) @@ -135,7 +135,7 @@ public function restoreAlert($siteId, $alertUuid) /** * Revokes an Insight install so it can no longer submit data using the Acquia Connector module. * - * @param string $siteId + * @param string $siteId * @return OperationResponse */ public function revoke($siteId) @@ -152,7 +152,7 @@ public function revoke($siteId) * Un-revokes an Insight site so it can once again submit data using the Acquia Connector module. * Note that the site must also be unblocked using the Acquia Connector module. * - * @param string $siteId + * @param string $siteId * @return OperationResponse */ public function unrevoke($siteId) @@ -168,7 +168,7 @@ public function unrevoke($siteId) /** * Returns a list of Drupal modules for this site. * - * @param string $siteId + * @param string $siteId * @return InsightModulesResponse */ public function getModules($siteId) diff --git a/src/Endpoints/LogForwardingDestinations.php b/src/Endpoints/LogForwardingDestinations.php index d86c428e..ed96444c 100644 --- a/src/Endpoints/LogForwardingDestinations.php +++ b/src/Endpoints/LogForwardingDestinations.php @@ -2,13 +2,13 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\OperationResponse; use AcquiaCloudApi\Response\LogForwardingDestinationsResponse; use AcquiaCloudApi\Response\LogForwardingDestinationResponse; /** * Class LogForwardingDestinations + * * @package AcquiaCloudApi\CloudApi */ class LogForwardingDestinations extends CloudApiBase implements CloudApiInterface @@ -17,7 +17,7 @@ class LogForwardingDestinations extends CloudApiBase implements CloudApiInterfac /** * Returns a list of log forwarding destinations. * - * @param string $environmentUuid The environment ID + * @param string $environmentUuid The environment ID * @return LogForwardingDestinationsResponse */ public function getAll($environmentUuid) @@ -33,8 +33,8 @@ public function getAll($environmentUuid) /** * Returns a specific log forwarding destination. * - * @param string $environmentUuid The environment ID - * @param int $destinationId + * @param string $environmentUuid The environment ID + * @param int $destinationId * @return LogForwardingDestinationResponse */ public function get($environmentUuid, $destinationId) @@ -50,12 +50,12 @@ public function get($environmentUuid, $destinationId) /** * Creates a log forwarding destination. * - * @param string $environmentUuid - * @param string $label - * @param array $sources - * @param string $consumer - * @param array $credentials - * @param string $address + * @param string $environmentUuid + * @param string $label + * @param array $sources + * @param string $consumer + * @param array $credentials + * @param string $address * @return OperationResponse */ public function create($environmentUuid, $label, $sources, $consumer, $credentials, $address) @@ -79,8 +79,8 @@ public function create($environmentUuid, $label, $sources, $consumer, $credentia /** * Delete a specific log forwarding destination. * - * @param string $environmentUuid - * @param int $destId + * @param string $environmentUuid + * @param int $destId * @return OperationResponse */ public function delete($environmentUuid, $destId) @@ -93,8 +93,8 @@ public function delete($environmentUuid, $destId) /** * Disables a log forwarding destination. * - * @param string $environmentUuid - * @param int $destId + * @param string $environmentUuid + * @param int $destId * @return OperationResponse */ public function disable($environmentUuid, $destId) @@ -110,8 +110,8 @@ public function disable($environmentUuid, $destId) /** * Enables a log forwarding destination. * - * @param string $environmentUuid - * @param int $destId + * @param string $environmentUuid + * @param int $destId * @return OperationResponse */ public function enable($environmentUuid, $destId) @@ -127,13 +127,13 @@ public function enable($environmentUuid, $destId) /** * Updates a log forwarding destination. * - * @param string $environmentUuid - * @param int $destId - * @param string $label - * @param array $sources - * @param string $consumer - * @param array $creds - * @param string $address + * @param string $environmentUuid + * @param int $destId + * @param string $label + * @param array $sources + * @param string $consumer + * @param array $creds + * @param string $address * @return OperationResponse */ public function update($environmentUuid, $destId, $label, $sources, $consumer, $creds, $address) diff --git a/src/Endpoints/Logs.php b/src/Endpoints/Logs.php index b3e9a742..b0db046d 100644 --- a/src/Endpoints/Logs.php +++ b/src/Endpoints/Logs.php @@ -2,7 +2,6 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\EnvironmentResponse; use AcquiaCloudApi\Response\EnvironmentsResponse; use AcquiaCloudApi\Response\LogstreamResponse; @@ -12,6 +11,7 @@ /** * Class Logs + * * @package AcquiaCloudApi\CloudApi */ class Logs extends CloudApiBase implements CloudApiInterface @@ -20,7 +20,7 @@ class Logs extends CloudApiBase implements CloudApiInterface /** * Returns a list of log files available for download. * - * @param string $environmentUuid + * @param string $environmentUuid * @return LogsResponse */ public function getAll($environmentUuid) @@ -33,8 +33,8 @@ public function getAll($environmentUuid) /** * Downloads a log file. * - * @param string $environmentUuid - * @param string $logType + * @param string $environmentUuid + * @param string $logType * @return StreamInterface */ public function download($environmentUuid, $logType) @@ -45,8 +45,8 @@ public function download($environmentUuid, $logType) /** * Creates a log file snapshot. * - * @param string $environmentUuid - * @param string $logType + * @param string $environmentUuid + * @param string $logType * @return OperationResponse */ public function snapshot($environmentUuid, $logType) @@ -59,7 +59,7 @@ public function snapshot($environmentUuid, $logType) /** * Returns logstream WSS stream information. * - * @param string $environmentUuid + * @param string $environmentUuid * @return LogstreamResponse */ public function stream($environmentUuid) diff --git a/src/Endpoints/Metrics.php b/src/Endpoints/Metrics.php index 303b5fb6..bc6a9d9e 100644 --- a/src/Endpoints/Metrics.php +++ b/src/Endpoints/Metrics.php @@ -2,12 +2,12 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\MetricsResponse; use AcquiaCloudApi\Response\MetricResponse; /** * Class Metrics + * * @package AcquiaCloudApi\CloudApi */ class Metrics extends CloudApiBase implements CloudApiInterface @@ -17,71 +17,81 @@ class Metrics extends CloudApiBase implements CloudApiInterface * Retrieves aggregate usage data for an application. * * @return MetricsResponse - * @param string $applicationUuid + * @param string $applicationUuid */ public function getAggregateData($applicationUuid) { - return new MetricsResponse($this->client->request( - 'get', - "/applications/${applicationUuid}/metrics/usage/data" - )); + return new MetricsResponse( + $this->client->request( + 'get', + "/applications/${applicationUuid}/metrics/usage/data" + ) + ); } /** * Retrieves aggregate usage metric data for an application. * * @return MetricResponse - * @param string $applicationUuid - * @param string $usageMetric + * @param string $applicationUuid + * @param string $usageMetric */ public function getAggregateUsageMetrics($applicationUuid, $usageMetric) { - return new MetricResponse($this->client->request( - 'get', - "/applications/${applicationUuid}/metrics/usage/${usageMetric}" - )); + return new MetricResponse( + $this->client->request( + 'get', + "/applications/${applicationUuid}/metrics/usage/${usageMetric}" + ) + ); } /** * Retrieves usage data for an application, broken down by environment. * * @return MetricsResponse - * @param string $applicationUuid + * @param string $applicationUuid */ public function getDataByEnvironment($applicationUuid) { - return new MetricsResponse($this->client->request( - 'get', - "/applications/${applicationUuid}/metrics/usage/data-by-environment" - )); + return new MetricsResponse( + $this->client->request( + 'get', + "/applications/${applicationUuid}/metrics/usage/data-by-environment" + ) + ); } /** * Retrieves views data for an application, broken down by environment. * * @return MetricsResponse - * @param string $applicationUuid + * @param string $applicationUuid */ public function getViewsByEnvironment($applicationUuid) { - return new MetricsResponse($this->client->request( - 'get', - "/applications/${applicationUuid}/metrics/usage/views-by-environment" - )); + return new MetricsResponse( + $this->client->request( + 'get', + "/applications/${applicationUuid}/metrics/usage/views-by-environment" + ) + ); } /** * Retrieves visits data for an application, broken down by environment. * * @return MetricsResponse - * @param string $applicationUuid + * @param string $applicationUuid */ public function getVisitsByEnvironment($applicationUuid) { - return new MetricsResponse($this->client->request( - 'get', - "/applications/${applicationUuid}/metrics/usage/visits-by-environment" - )); + return new MetricsResponse( + $this->client->request( + 'get', + "/applications/${applicationUuid}/metrics/usage/visits-by-environment" + ) + ); } /** @@ -89,29 +99,32 @@ public function getVisitsByEnvironment($applicationUuid) * (e.g., apache-access, web-cpu). * * @return MetricsResponse - * @param string $environmentUuid + * @param string $environmentUuid */ public function getStackMetricsData($environmentUuid) { - return new MetricsResponse($this->client->request( - 'get', - "/environments/${environmentUuid}/metrics/stackmetrics/data" - )); + return new MetricsResponse( + $this->client->request( + 'get', + "/environments/${environmentUuid}/metrics/stackmetrics/data" + ) + ); } /** * Returns StackMetrics data for the metric (e.g., apache-access). * * @return MetricResponse - * @param string $environmentUuid - * @param string $metricType - * + * @param string $environmentUuid + * @param string $metricType */ public function getStackMetricsDataByMetric($environmentUuid, $metricType) { - return new MetricResponse($this->client->request( - 'get', - "/environments/${environmentUuid}/metrics/stackmetrics/${metricType}" - )); + return new MetricResponse( + $this->client->request( + 'get', + "/environments/${environmentUuid}/metrics/stackmetrics/${metricType}" + ) + ); } } diff --git a/src/Endpoints/Notifications.php b/src/Endpoints/Notifications.php index 96e3f99c..ecd62230 100644 --- a/src/Endpoints/Notifications.php +++ b/src/Endpoints/Notifications.php @@ -2,12 +2,12 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\NotificationResponse; use AcquiaCloudApi\Response\NotificationsResponse; /** * Class Notifications + * * @package AcquiaCloudApi\CloudApi */ class Notifications extends CloudApiBase implements CloudApiInterface @@ -16,7 +16,7 @@ class Notifications extends CloudApiBase implements CloudApiInterface /** * Returns details about a notification. * - * @param string $notificationUuid + * @param string $notificationUuid * @return NotificationResponse */ public function get($notificationUuid) @@ -32,7 +32,7 @@ public function get($notificationUuid) /** * Returns a list of notifications. * - * @param string $applicationUuid + * @param string $applicationUuid * @return NotificationsResponse */ public function getAll($applicationUuid) diff --git a/src/Endpoints/Organizations.php b/src/Endpoints/Organizations.php index f05e9e93..d53b7887 100644 --- a/src/Endpoints/Organizations.php +++ b/src/Endpoints/Organizations.php @@ -2,7 +2,6 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\ApplicationsResponse; use AcquiaCloudApi\Response\InvitationsResponse; use AcquiaCloudApi\Response\MembersResponse; @@ -13,6 +12,7 @@ /** * Class Organizations + * * @package AcquiaCloudApi\CloudApi */ class Organizations extends CloudApiBase implements CloudApiInterface @@ -45,7 +45,7 @@ public function getApplications($organizationUuid) /** * Show all members of an organisation. * - * @param string $organizationUuid + * @param string $organizationUuid * @return MembersResponse */ public function getMembers($organizationUuid) @@ -58,8 +58,8 @@ public function getMembers($organizationUuid) /** * Returns the user profile of this organization member. * - * @param string $organizationUuid - * @param string $memberUuid + * @param string $organizationUuid + * @param string $memberUuid * @return MemberResponse */ public function getMember($organizationUuid, $memberUuid) @@ -72,7 +72,7 @@ public function getMember($organizationUuid, $memberUuid) /** * Show all admins of an organisation. * - * @param string $organizationUuid + * @param string $organizationUuid * @return MembersResponse */ public function getAdmins($organizationUuid) @@ -85,8 +85,8 @@ public function getAdmins($organizationUuid) /** * Returns the user profile of this organization administrator. * - * @param string $organizationUuid - * @param string $memberUuid + * @param string $organizationUuid + * @param string $memberUuid * @return MemberResponse */ public function getAdmin($organizationUuid, $memberUuid) @@ -99,7 +99,7 @@ public function getAdmin($organizationUuid, $memberUuid) /** * Show all members invited to an organisation. * - * @param string $organizationUuid + * @param string $organizationUuid * @return InvitationsResponse */ public function getMemberInvitations($organizationUuid) @@ -112,8 +112,8 @@ public function getMemberInvitations($organizationUuid) /** * Delete a member from an organisation. * - * @param string $organizationUuid - * @param string $memberUuid + * @param string $organizationUuid + * @param string $memberUuid * @return OperationResponse */ public function deleteMember($organizationUuid, $memberUuid) @@ -129,7 +129,7 @@ public function deleteMember($organizationUuid, $memberUuid) /** * Show all teams in an organization. * - * @param string $organizationUuid + * @param string $organizationUuid * @return TeamsResponse */ public function getTeams($organizationUuid) @@ -142,8 +142,8 @@ public function getTeams($organizationUuid) /** * Invites a user to become admin of an organization. * - * @param string $organizationUuid - * @param string $email + * @param string $organizationUuid + * @param string $email * @return OperationResponse */ public function inviteAdmin($organizationUuid, $email) diff --git a/src/Endpoints/Permissions.php b/src/Endpoints/Permissions.php index a9cf53c3..92aa9b22 100644 --- a/src/Endpoints/Permissions.php +++ b/src/Endpoints/Permissions.php @@ -2,11 +2,11 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\PermissionsResponse; /** * Class Permissions + * * @package AcquiaCloudApi\CloudApi */ class Permissions extends CloudApiBase implements CloudApiInterface diff --git a/src/Endpoints/Roles.php b/src/Endpoints/Roles.php index de7cd3b0..5cf1a0f8 100644 --- a/src/Endpoints/Roles.php +++ b/src/Endpoints/Roles.php @@ -2,13 +2,13 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\RolesResponse; use AcquiaCloudApi\Response\RoleResponse; use AcquiaCloudApi\Response\OperationResponse; /** * Class Roles + * * @package AcquiaCloudApi\CloudApi */ class Roles extends CloudApiBase implements CloudApiInterface @@ -17,7 +17,7 @@ class Roles extends CloudApiBase implements CloudApiInterface /** * Show all roles in an organization. * - * @param string $organizationUuid + * @param string $organizationUuid * @return RolesResponse */ public function getAll($organizationUuid) @@ -30,7 +30,7 @@ public function getAll($organizationUuid) /** * Return details about a specific role. * - * @param string $roleUuid + * @param string $roleUuid * @return RoleResponse */ public function get($roleUuid) @@ -43,10 +43,10 @@ public function get($roleUuid) /** * Create a new role. * - * @param string $organizationUuid - * @param string $name - * @param array $permissions - * @param null|string $description + * @param string $organizationUuid + * @param string $name + * @param array $permissions + * @param null|string $description * @return OperationResponse */ public function create($organizationUuid, $name, array $permissions, $description = null) @@ -67,8 +67,8 @@ public function create($organizationUuid, $name, array $permissions, $descriptio /** * Update the permissions associated with a role. * - * @param string $roleUuid - * @param array $permissions + * @param string $roleUuid + * @param array $permissions * @return OperationResponse */ public function update($roleUuid, array $permissions) @@ -87,7 +87,7 @@ public function update($roleUuid, array $permissions) /** * Delete a role. * - * @param string $roleUuid + * @param string $roleUuid * @return OperationResponse */ public function delete($roleUuid) diff --git a/src/Endpoints/Servers.php b/src/Endpoints/Servers.php index 42a61f47..768f5399 100644 --- a/src/Endpoints/Servers.php +++ b/src/Endpoints/Servers.php @@ -2,13 +2,13 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\OperationResponse; use AcquiaCloudApi\Response\ServersResponse; use AcquiaCloudApi\Response\ServerResponse; /** * Class Servers + * * @package AcquiaCloudApi\CloudApi */ class Servers extends CloudApiBase implements CloudApiInterface @@ -17,8 +17,8 @@ class Servers extends CloudApiBase implements CloudApiInterface /** * Gets information about a single server. * - * @param string $environmentUuid - * @param string $serverId + * @param string $environmentUuid + * @param string $serverId * @return ServerResponse */ public function get($environmentUuid, $serverId) @@ -34,9 +34,9 @@ public function get($environmentUuid, $serverId) /** * Modifies configuration settings for a server. * - * @param string $environmentUuid - * @param string $serverId - * @param array $config + * @param string $environmentUuid + * @param string $serverId + * @param array $config * @return OperationResponse */ public function update($environmentUuid, $serverId, array $config) @@ -54,7 +54,7 @@ public function update($environmentUuid, $serverId, array $config) /** * Show all servers associated with an environment. * - * @param string $environmentUuid + * @param string $environmentUuid * @return ServersResponse */ public function getAll($environmentUuid) diff --git a/src/Endpoints/SslCertificates.php b/src/Endpoints/SslCertificates.php index 1e585b39..938492e9 100644 --- a/src/Endpoints/SslCertificates.php +++ b/src/Endpoints/SslCertificates.php @@ -2,13 +2,13 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\SslCertificatesResponse; use AcquiaCloudApi\Response\SslCertificateResponse; use AcquiaCloudApi\Response\OperationResponse; /** * Class SslCertificates + * * @package AcquiaCloudApi\CloudApi */ class SslCertificates extends CloudApiBase implements CloudApiInterface @@ -17,7 +17,7 @@ class SslCertificates extends CloudApiBase implements CloudApiInterface /** * Returns a list of SSL certificates. * - * @param string $environmentUuid The environment ID + * @param string $environmentUuid The environment ID * @return SslCertificatesResponse */ public function getAll($environmentUuid) @@ -33,8 +33,8 @@ public function getAll($environmentUuid) /** * Returns a specific certificate by certificate ID. * - * @param string $environmentUuid The environment ID - * @param int $certificateId + * @param string $environmentUuid The environment ID + * @param int $certificateId * @return SslCertificateResponse */ public function get($environmentUuid, $certificateId) @@ -50,13 +50,13 @@ public function get($environmentUuid, $certificateId) /** * Install an SSL certificate. * - * @param string $envUuid - * @param string $label - * @param string $cert - * @param string $key - * @param string $ca - * @param int $csr - * @param bool $legacy + * @param string $envUuid + * @param string $label + * @param string $cert + * @param string $key + * @param string $ca + * @param int $csr + * @param bool $legacy * @return OperationResponse */ public function create($envUuid, $label, $cert, $key, $ca = null, $csr = null, $legacy = false) @@ -81,8 +81,8 @@ public function create($envUuid, $label, $cert, $key, $ca = null, $csr = null, $ /** * Delete a specific certificate by ID. * - * @param string $environmentUuid - * @param int $certificateId + * @param string $environmentUuid + * @param int $certificateId * @return OperationResponse */ public function delete($environmentUuid, $certificateId) @@ -95,8 +95,8 @@ public function delete($environmentUuid, $certificateId) /** * Deactivates an active SSL certificate. * - * @param string $environmentUuid - * @param int $certificateId + * @param string $environmentUuid + * @param int $certificateId * @return OperationResponse */ public function disable($environmentUuid, $certificateId) @@ -112,8 +112,8 @@ public function disable($environmentUuid, $certificateId) /** * Activates an SSL certificate. * - * @param string $environmentUuid - * @param int $certificateId + * @param string $environmentUuid + * @param int $certificateId * @return OperationResponse */ public function enable($environmentUuid, $certificateId) diff --git a/src/Endpoints/Teams.php b/src/Endpoints/Teams.php index 62f80b7c..45f6f314 100644 --- a/src/Endpoints/Teams.php +++ b/src/Endpoints/Teams.php @@ -2,7 +2,6 @@ namespace AcquiaCloudApi\Endpoints; -use AcquiaCloudApi\Connector\ClientInterface; use AcquiaCloudApi\Response\ApplicationResponse; use AcquiaCloudApi\Response\ApplicationsResponse; use AcquiaCloudApi\Response\TeamsResponse; @@ -10,6 +9,7 @@ /** * Class Teams + * * @package AcquiaCloudApi\CloudApi */ class Teams extends CloudApiBase implements CloudApiInterface @@ -18,8 +18,8 @@ class Teams extends CloudApiBase implements CloudApiInterface /** * Create a new team. * - * @param string $organizationUuid - * @param string $name + * @param string $organizationUuid + * @param string $name * @return OperationResponse */ public function create($organizationUuid, $name) @@ -50,8 +50,8 @@ public function getAll() /** * Rename an existing team. * - * @param string $teamUuid - * @param string $name + * @param string $teamUuid + * @param string $name * @return OperationResponse */ public function rename($teamUuid, $name) @@ -71,7 +71,7 @@ public function rename($teamUuid, $name) /** * Delete a team. * - * @param string $teamUuid + * @param string $teamUuid * @return OperationResponse */ public function delete($teamUuid) @@ -84,8 +84,8 @@ public function delete($teamUuid) /** * Add an application to a team. * - * @param string $teamUuid - * @param string $applicationUuid + * @param string $teamUuid + * @param string $applicationUuid * @return OperationResponse */ public function addApplication($teamUuid, $applicationUuid) @@ -104,9 +104,9 @@ public function addApplication($teamUuid, $applicationUuid) /** * Invites a user to join a team. * - * @param string $teamUuid - * @param string $email - * @param array $roles + * @param string $teamUuid + * @param string $email + * @param array $roles * @return OperationResponse */ public function invite($teamUuid, $email, $roles) @@ -126,7 +126,7 @@ public function invite($teamUuid, $email, $roles) /** * Show all applications associated with a team. * - * @param string $teamUuid + * @param string $teamUuid * @return ApplicationsResponse */ public function getApplications($teamUuid) diff --git a/src/Endpoints/Variables.php b/src/Endpoints/Variables.php index d8a23858..fba59069 100644 --- a/src/Endpoints/Variables.php +++ b/src/Endpoints/Variables.php @@ -8,6 +8,7 @@ /** * Class Variables + * * @package AcquiaCloudApi\Endpoints */ class Variables extends CloudApiBase implements CloudApiInterface @@ -16,7 +17,7 @@ class Variables extends CloudApiBase implements CloudApiInterface /** * Fetches all environment variables. * - * @param string $environmentUuid + * @param string $environmentUuid * @return VariablesResponse */ public function getAll($environmentUuid) @@ -32,8 +33,8 @@ public function getAll($environmentUuid) /** * Returns details about an environment variable. * - * @param string $environmentUuid - * @param string $name + * @param string $environmentUuid + * @param string $name * @return VariableResponse */ public function get($environmentUuid, $name) @@ -49,9 +50,9 @@ public function get($environmentUuid, $name) /** * Adds an environment variable. * - * @param string $environmentUuid - * @param string $name - * @param string $value + * @param string $environmentUuid + * @param string $name + * @param string $value * @return OperationResponse */ public function create($environmentUuid, $name, $value) @@ -71,9 +72,9 @@ public function create($environmentUuid, $name, $value) /** * Updates an environment variable. * - * @param string $environmentUuid - * @param string $name - * @param string $value + * @param string $environmentUuid + * @param string $name + * @param string $value * @return OperationResponse */ public function update($environmentUuid, $name, $value) @@ -93,8 +94,8 @@ public function update($environmentUuid, $name, $value) /** * Deletes an environment variable. * - * @param string $environmentUuid - * @param string $name + * @param string $environmentUuid + * @param string $name * @return OperationResponse */ public function delete($environmentUuid, $name) diff --git a/src/Response/AccountResponse.php b/src/Response/AccountResponse.php index 6c4a80ea..1dff0fef 100644 --- a/src/Response/AccountResponse.php +++ b/src/Response/AccountResponse.php @@ -4,6 +4,7 @@ /** * Class AccountResponse + * * @package AcquiaCloudApi\Response */ class AccountResponse @@ -22,6 +23,7 @@ class AccountResponse /** * AccountResponse constructor. + * * @param object $account */ public function __construct($account) diff --git a/src/Response/ApplicationResponse.php b/src/Response/ApplicationResponse.php index 994156b1..43c581dc 100644 --- a/src/Response/ApplicationResponse.php +++ b/src/Response/ApplicationResponse.php @@ -4,6 +4,7 @@ /** * Class ApplicationResponse + * * @package AcquiaCloudApi\Response */ class ApplicationResponse @@ -22,6 +23,7 @@ class ApplicationResponse /** * ApplicationResponse constructor. + * * @param object $application */ public function __construct($application) diff --git a/src/Response/ApplicationsResponse.php b/src/Response/ApplicationsResponse.php index 19a50e0c..972ef789 100644 --- a/src/Response/ApplicationsResponse.php +++ b/src/Response/ApplicationsResponse.php @@ -4,6 +4,7 @@ /** * Class ApplicationsResponse + * * @package AcquiaCloudApi\Response */ class ApplicationsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class ApplicationsResponse extends \ArrayObject /** * ApplicationsResponse constructor. + * * @param array $applications */ public function __construct($applications) { - parent::__construct(array_map(function ($application) { - return new ApplicationResponse($application); - }, $applications), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($application) { + return new ApplicationResponse($application); + }, + $applications + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/BackupResponse.php b/src/Response/BackupResponse.php index e6033b4a..8bd2b072 100644 --- a/src/Response/BackupResponse.php +++ b/src/Response/BackupResponse.php @@ -4,6 +4,7 @@ /** * Class BackupResponse + * * @package AcquiaCloudApi\Response */ class BackupResponse @@ -20,6 +21,7 @@ class BackupResponse /** * BackupResponse constructor. + * * @param object $backup */ public function __construct($backup) diff --git a/src/Response/BackupsResponse.php b/src/Response/BackupsResponse.php index 1be107a6..7448c88b 100644 --- a/src/Response/BackupsResponse.php +++ b/src/Response/BackupsResponse.php @@ -4,6 +4,7 @@ /** * Class BackupsResponse + * * @package AcquiaCloudApi\Response */ class BackupsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class BackupsResponse extends \ArrayObject /** * BackupsResponse constructor. + * * @param array $backups */ public function __construct($backups) { - parent::__construct(array_map(function ($backup) { - return new BackupResponse($backup); - }, $backups), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($backup) { + return new BackupResponse($backup); + }, + $backups + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/BranchResponse.php b/src/Response/BranchResponse.php index cef321a8..8ac3dab8 100644 --- a/src/Response/BranchResponse.php +++ b/src/Response/BranchResponse.php @@ -4,6 +4,7 @@ /** * Class BranchResponse + * * @package AcquiaCloudApi\Response */ class BranchResponse @@ -14,6 +15,7 @@ class BranchResponse /** * BranchResponse constructor. + * * @param object $branch */ public function __construct($branch) diff --git a/src/Response/BranchesResponse.php b/src/Response/BranchesResponse.php index a88845a1..60153046 100644 --- a/src/Response/BranchesResponse.php +++ b/src/Response/BranchesResponse.php @@ -4,6 +4,7 @@ /** * Class BranchesResponse + * * @package AcquiaCloudApi\Response */ class BranchesResponse extends \ArrayObject @@ -11,12 +12,19 @@ class BranchesResponse extends \ArrayObject /** * ApplicationsResponse constructor. + * * @param array $branches */ public function __construct($branches) { - parent::__construct(array_map(function ($branch) { - return new BranchResponse($branch); - }, $branches), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($branch) { + return new BranchResponse($branch); + }, + $branches + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/CronResponse.php b/src/Response/CronResponse.php index 96a8a7ee..fa369dc0 100644 --- a/src/Response/CronResponse.php +++ b/src/Response/CronResponse.php @@ -4,6 +4,7 @@ /** * Class CronResponse + * * @package AcquiaCloudApi\Response */ class CronResponse @@ -24,6 +25,7 @@ class CronResponse /** * CronResponse constructor. + * * @param object $cron */ public function __construct($cron) diff --git a/src/Response/CronsResponse.php b/src/Response/CronsResponse.php index ac3bc9dc..6c7e8c37 100644 --- a/src/Response/CronsResponse.php +++ b/src/Response/CronsResponse.php @@ -4,6 +4,7 @@ /** * Class CronsResponse + * * @package AcquiaCloudApi\Response */ class CronsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class CronsResponse extends \ArrayObject /** * CronsResponse constructor. + * * @param array $crons */ public function __construct($crons) { - parent::__construct(array_map(function ($cron) { - return new CronResponse($cron); - }, $crons), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($cron) { + return new CronResponse($cron); + }, + $crons + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/DatabaseResponse.php b/src/Response/DatabaseResponse.php index fa4271d9..302cb8e5 100644 --- a/src/Response/DatabaseResponse.php +++ b/src/Response/DatabaseResponse.php @@ -4,6 +4,7 @@ /** * Class DatabaseResponse + * * @package AcquiaCloudApi\Response */ class DatabaseResponse @@ -13,6 +14,7 @@ class DatabaseResponse /** * DatabaseResponse constructor. + * * @param object $database */ public function __construct($database) diff --git a/src/Response/DatabasesResponse.php b/src/Response/DatabasesResponse.php index 8b829dce..2bf4ea79 100644 --- a/src/Response/DatabasesResponse.php +++ b/src/Response/DatabasesResponse.php @@ -4,6 +4,7 @@ /** * Class DatabasesResponse + * * @package AcquiaCloudApi\Response */ class DatabasesResponse extends \ArrayObject @@ -11,12 +12,19 @@ class DatabasesResponse extends \ArrayObject /** * DatabasesResponse constructor. + * * @param array $databases */ public function __construct($databases) { - parent::__construct(array_map(function ($database) { - return new DatabaseResponse($database); - }, $databases), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($database) { + return new DatabaseResponse($database); + }, + $databases + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/DomainResponse.php b/src/Response/DomainResponse.php index 4a8d8c91..39ca4849 100644 --- a/src/Response/DomainResponse.php +++ b/src/Response/DomainResponse.php @@ -4,6 +4,7 @@ /** * Class DomainResponse + * * @package AcquiaCloudApi\Response */ class DomainResponse @@ -18,6 +19,7 @@ class DomainResponse /** * DomainResponse constructor. + * * @param object $domain */ public function __construct($domain) diff --git a/src/Response/DomainsResponse.php b/src/Response/DomainsResponse.php index b44a1550..8482794e 100644 --- a/src/Response/DomainsResponse.php +++ b/src/Response/DomainsResponse.php @@ -4,6 +4,7 @@ /** * Class DomainsResponse + * * @package AcquiaCloudApi\Response */ class DomainsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class DomainsResponse extends \ArrayObject /** * DomainsResponse constructor. + * * @param array $domains */ public function __construct($domains) { - parent::__construct(array_map(function ($domain) { - return new DomainResponse($domain); - }, $domains), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($domain) { + return new DomainResponse($domain); + }, + $domains + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/EnvironmentResponse.php b/src/Response/EnvironmentResponse.php index 6e9fca45..1ace926e 100644 --- a/src/Response/EnvironmentResponse.php +++ b/src/Response/EnvironmentResponse.php @@ -4,6 +4,7 @@ /** * Class EnvironmentResponse + * * @package AcquiaCloudApi\Response */ class EnvironmentResponse @@ -24,6 +25,7 @@ class EnvironmentResponse /** * EnvironmentResponse constructor. + * * @param object $environment */ public function __construct($environment) diff --git a/src/Response/EnvironmentsResponse.php b/src/Response/EnvironmentsResponse.php index 9cf0375a..46abbf5d 100644 --- a/src/Response/EnvironmentsResponse.php +++ b/src/Response/EnvironmentsResponse.php @@ -4,6 +4,7 @@ /** * Class EnvironmentsResponse + * * @package AcquiaCloudApi\Response */ class EnvironmentsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class EnvironmentsResponse extends \ArrayObject /** * EnvironmentsResponse constructor. + * * @param array $environments */ public function __construct($environments) { - parent::__construct(array_map(function ($environment) { - return new EnvironmentResponse($environment); - }, $environments), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($environment) { + return new EnvironmentResponse($environment); + }, + $environments + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/IdeResponse.php b/src/Response/IdeResponse.php index cfc3ee92..61f1d8ae 100644 --- a/src/Response/IdeResponse.php +++ b/src/Response/IdeResponse.php @@ -4,6 +4,7 @@ /** * Class IdeResponse + * * @package AcquiaCloudApi\Response */ class IdeResponse @@ -14,6 +15,7 @@ class IdeResponse /** * IdeResponse constructor. + * * @param object $ide */ public function __construct($ide) diff --git a/src/Response/IdentityProviderResponse.php b/src/Response/IdentityProviderResponse.php index df21b659..f3bdad9e 100644 --- a/src/Response/IdentityProviderResponse.php +++ b/src/Response/IdentityProviderResponse.php @@ -4,6 +4,7 @@ /** * Class IdentityProviderResponse + * * @package AcquiaCloudApi\Response */ class IdentityProviderResponse @@ -20,6 +21,7 @@ class IdentityProviderResponse /** * IdentityProviderResponse constructor. + * * @param object $idp */ public function __construct($idp) diff --git a/src/Response/IdentityProvidersResponse.php b/src/Response/IdentityProvidersResponse.php index 9f7873d7..781bcf2e 100644 --- a/src/Response/IdentityProvidersResponse.php +++ b/src/Response/IdentityProvidersResponse.php @@ -4,6 +4,7 @@ /** * Class IdentityProvidersResponse + * * @package AcquiaCloudApi\Response */ class IdentityProvidersResponse extends \ArrayObject @@ -11,12 +12,19 @@ class IdentityProvidersResponse extends \ArrayObject /** * IdentityProvidersResponse constructor. + * * @param array $idps */ public function __construct($idps) { - parent::__construct(array_map(function ($idp) { - return new IdentityProviderResponse($idp); - }, $idps), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($idp) { + return new IdentityProviderResponse($idp); + }, + $idps + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/IdesResponse.php b/src/Response/IdesResponse.php index e507f46a..1418b869 100644 --- a/src/Response/IdesResponse.php +++ b/src/Response/IdesResponse.php @@ -4,6 +4,7 @@ /** * Class IdesResponse + * * @package AcquiaCloudApi\Response */ class IdesResponse extends \ArrayObject @@ -11,12 +12,19 @@ class IdesResponse extends \ArrayObject /** * IdesResponse constructor. + * * @param array $ides */ public function __construct($ides) { - parent::__construct(array_map(function ($ide) { - return new IdeResponse($ide); - }, $ides), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($ide) { + return new IdeResponse($ide); + }, + $ides + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/InsightAlertResponse.php b/src/Response/InsightAlertResponse.php index 87edf02b..07c4a652 100644 --- a/src/Response/InsightAlertResponse.php +++ b/src/Response/InsightAlertResponse.php @@ -4,6 +4,7 @@ /** * Class InsightAlertResponse + * * @package AcquiaCloudApi\Response */ class InsightAlertResponse @@ -24,6 +25,7 @@ class InsightAlertResponse /** * InsightAlertResponse constructor. + * * @param object $alert */ public function __construct($alert) diff --git a/src/Response/InsightAlertsResponse.php b/src/Response/InsightAlertsResponse.php index f8d73104..d1139b99 100644 --- a/src/Response/InsightAlertsResponse.php +++ b/src/Response/InsightAlertsResponse.php @@ -4,6 +4,7 @@ /** * Class InsightAlertsResponse + * * @package AcquiaCloudApi\Response */ class InsightAlertsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class InsightAlertsResponse extends \ArrayObject /** * InsightAlertsResponse constructor. + * * @param array $alerts */ public function __construct($alerts) { - parent::__construct(array_map(function ($alert) { - return new InsightAlertResponse($alert); - }, $alerts), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($alert) { + return new InsightAlertResponse($alert); + }, + $alerts + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/InsightCountResponse.php b/src/Response/InsightCountResponse.php index fcda4e78..6072eb14 100644 --- a/src/Response/InsightCountResponse.php +++ b/src/Response/InsightCountResponse.php @@ -4,6 +4,7 @@ /** * Class InsightCountResponse + * * @package AcquiaCloudApi\Response */ class InsightCountResponse @@ -18,6 +19,7 @@ class InsightCountResponse /** * InsightCountResponse constructor. + * * @param string $name * @param object $insightCount */ diff --git a/src/Response/InsightModuleResponse.php b/src/Response/InsightModuleResponse.php index ae29527d..bd6339ff 100644 --- a/src/Response/InsightModuleResponse.php +++ b/src/Response/InsightModuleResponse.php @@ -4,6 +4,7 @@ /** * Class InsightModuleResponse + * * @package AcquiaCloudApi\Response */ class InsightModuleResponse @@ -24,6 +25,7 @@ class InsightModuleResponse /** * InsightModuleResponse constructor. + * * @param object $module */ public function __construct($module) diff --git a/src/Response/InsightModulesResponse.php b/src/Response/InsightModulesResponse.php index 48906c73..2add40e0 100644 --- a/src/Response/InsightModulesResponse.php +++ b/src/Response/InsightModulesResponse.php @@ -4,6 +4,7 @@ /** * Class InsightModulesResponse + * * @package AcquiaCloudApi\Response */ class InsightModulesResponse extends \ArrayObject @@ -11,12 +12,19 @@ class InsightModulesResponse extends \ArrayObject /** * InsightModulesResponse constructor. + * * @param array $modules */ public function __construct($modules) { - parent::__construct(array_map(function ($module) { - return new InsightModuleResponse($module); - }, $modules), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($module) { + return new InsightModuleResponse($module); + }, + $modules + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/InsightResponse.php b/src/Response/InsightResponse.php index 5633bfcb..e6b2a5d7 100644 --- a/src/Response/InsightResponse.php +++ b/src/Response/InsightResponse.php @@ -2,8 +2,11 @@ namespace AcquiaCloudApi\Response; +use stdClass; + /** * Class InsightResponse + * * @package AcquiaCloudApi\Response */ class InsightResponse @@ -22,6 +25,7 @@ class InsightResponse /** * InsightResponse constructor. + * * @param object $insight */ public function __construct($insight) @@ -36,7 +40,7 @@ public function __construct($insight) $this->flags = $insight->flags; $this->links = $insight->_links; - $scores = new \stdClass(); + $scores = new stdClass(); foreach ($insight->counts as $name => $counts) { $scores->$name = new InsightCountResponse($name, $counts); } diff --git a/src/Response/InsightsResponse.php b/src/Response/InsightsResponse.php index 2658c700..2d69b183 100644 --- a/src/Response/InsightsResponse.php +++ b/src/Response/InsightsResponse.php @@ -4,6 +4,7 @@ /** * Class InsightsResponse + * * @package AcquiaCloudApi\Response */ class InsightsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class InsightsResponse extends \ArrayObject /** * InsightsResponse constructor. + * * @param array $insights */ public function __construct($insights) { - parent::__construct(array_map(function ($insight) { - return new InsightResponse($insight); - }, $insights), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($insight) { + return new InsightResponse($insight); + }, + $insights + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/InvitationResponse.php b/src/Response/InvitationResponse.php index 2e7db573..fdf67024 100644 --- a/src/Response/InvitationResponse.php +++ b/src/Response/InvitationResponse.php @@ -4,6 +4,7 @@ /** * Class InvitationResponse + * * @package AcquiaCloudApi\Response */ class InvitationResponse @@ -22,6 +23,7 @@ class InvitationResponse /** * MemberResponse constructor. + * * @param object $invitation */ public function __construct($invitation) diff --git a/src/Response/InvitationsResponse.php b/src/Response/InvitationsResponse.php index 975d5357..34ddecb9 100644 --- a/src/Response/InvitationsResponse.php +++ b/src/Response/InvitationsResponse.php @@ -4,6 +4,7 @@ /** * Class InvitationsResponse + * * @package AcquiaCloudApi\Response */ class InvitationsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class InvitationsResponse extends \ArrayObject /** * MembersResponse constructor. + * * @param array $invitations */ public function __construct($invitations) { - parent::__construct(array_map(function ($invitation) { - return new InvitationResponse($invitation); - }, $invitations), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($invitation) { + return new InvitationResponse($invitation); + }, + $invitations + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/LogForwardingDestinationResponse.php b/src/Response/LogForwardingDestinationResponse.php index 5df92d5c..05aca9d6 100644 --- a/src/Response/LogForwardingDestinationResponse.php +++ b/src/Response/LogForwardingDestinationResponse.php @@ -4,6 +4,7 @@ /** * Class LogForwardingDestinationResponse + * * @package AcquiaCloudApi\Response */ class LogForwardingDestinationResponse @@ -22,6 +23,7 @@ class LogForwardingDestinationResponse /** * LogForwardingDestinationResponse constructor. + * * @param object $destination */ public function __construct($destination) diff --git a/src/Response/LogForwardingDestinationsResponse.php b/src/Response/LogForwardingDestinationsResponse.php index ecbe04cb..35e2cdc6 100644 --- a/src/Response/LogForwardingDestinationsResponse.php +++ b/src/Response/LogForwardingDestinationsResponse.php @@ -4,6 +4,7 @@ /** * Class LogForwardingDestinationsResponse + * * @package AcquiaCloudApi\Response */ class LogForwardingDestinationsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class LogForwardingDestinationsResponse extends \ArrayObject /** * LogForwardingDestinationsResponse constructor. + * * @param array $destinations */ public function __construct($destinations) { - parent::__construct(array_map(function ($destination) { - return new LogForwardingDestinationResponse($destination); - }, $destinations), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($destination) { + return new LogForwardingDestinationResponse($destination); + }, + $destinations + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/LogResponse.php b/src/Response/LogResponse.php index eb6ae985..cf7a40ce 100644 --- a/src/Response/LogResponse.php +++ b/src/Response/LogResponse.php @@ -4,6 +4,7 @@ /** * Class LogResponse + * * @package AcquiaCloudApi\Response */ class LogResponse @@ -16,6 +17,7 @@ class LogResponse /** * LogResponse constructor. + * * @param object $log */ public function __construct($log) diff --git a/src/Response/LogsResponse.php b/src/Response/LogsResponse.php index 673998d3..b97af35f 100644 --- a/src/Response/LogsResponse.php +++ b/src/Response/LogsResponse.php @@ -4,6 +4,7 @@ /** * Class LogsResponse + * * @package AcquiaCloudApi\Response */ class LogsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class LogsResponse extends \ArrayObject /** * LogsResponse constructor. + * * @param array $logs */ public function __construct($logs) { - parent::__construct(array_map(function ($log) { - return new LogResponse($log); - }, $logs), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($log) { + return new LogResponse($log); + }, + $logs + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/LogstreamResponse.php b/src/Response/LogstreamResponse.php index 004fb4a1..59906fbb 100644 --- a/src/Response/LogstreamResponse.php +++ b/src/Response/LogstreamResponse.php @@ -4,6 +4,7 @@ /** * Class LogstreamResponse + * * @package AcquiaCloudApi\Response */ class LogstreamResponse @@ -14,6 +15,7 @@ class LogstreamResponse /** * LogstreamResponse constructor. + * * @param object $logstream */ public function __construct($logstream) diff --git a/src/Response/MemberResponse.php b/src/Response/MemberResponse.php index de7dac68..690417b0 100644 --- a/src/Response/MemberResponse.php +++ b/src/Response/MemberResponse.php @@ -4,6 +4,7 @@ /** * Class MemberResponse + * * @package AcquiaCloudApi\Response */ class MemberResponse @@ -19,6 +20,7 @@ class MemberResponse /** * MemberResponse constructor. + * * @param object $member */ public function __construct($member) diff --git a/src/Response/MembersResponse.php b/src/Response/MembersResponse.php index 6fa1881d..d6570e40 100644 --- a/src/Response/MembersResponse.php +++ b/src/Response/MembersResponse.php @@ -4,6 +4,7 @@ /** * Class MembersResponse + * * @package AcquiaCloudApi\Response */ class MembersResponse extends \ArrayObject @@ -11,12 +12,19 @@ class MembersResponse extends \ArrayObject /** * MembersResponse constructor. + * * @param array $members */ public function __construct($members) { - parent::__construct(array_map(function ($member) { - return new MemberResponse($member); - }, $members), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($member) { + return new MemberResponse($member); + }, + $members + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/MetricResponse.php b/src/Response/MetricResponse.php index 5caabaf1..f5e9c35f 100644 --- a/src/Response/MetricResponse.php +++ b/src/Response/MetricResponse.php @@ -4,6 +4,7 @@ /** * Class MetricResponse + * * @package AcquiaCloudApi\Response */ class MetricResponse @@ -16,6 +17,7 @@ class MetricResponse /** * MetricResponse constructor. + * * @param object $metric */ public function __construct($metric) diff --git a/src/Response/MetricsResponse.php b/src/Response/MetricsResponse.php index 7af236d0..94354528 100644 --- a/src/Response/MetricsResponse.php +++ b/src/Response/MetricsResponse.php @@ -4,6 +4,7 @@ /** * Class MetricsResponse + * * @package AcquiaCloudApi\Response */ class MetricsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class MetricsResponse extends \ArrayObject /** * MetricsResponse constructor. + * * @param array $metrics */ public function __construct($metrics) { - parent::__construct(array_map(function ($metric) { - return new MetricResponse($metric); - }, $metrics), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($metric) { + return new MetricResponse($metric); + }, + $metrics + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/NotificationResponse.php b/src/Response/NotificationResponse.php index 3bacc5d4..0eb18e8d 100644 --- a/src/Response/NotificationResponse.php +++ b/src/Response/NotificationResponse.php @@ -4,6 +4,7 @@ /** * Class NotificationResponse + * * @package AcquiaCloudApi\Response */ class NotificationResponse @@ -21,6 +22,7 @@ class NotificationResponse /** * MemberResponse constructor. + * * @param object $notification */ public function __construct($notification) diff --git a/src/Response/NotificationsResponse.php b/src/Response/NotificationsResponse.php index bde3cbee..1481243c 100644 --- a/src/Response/NotificationsResponse.php +++ b/src/Response/NotificationsResponse.php @@ -4,6 +4,7 @@ /** * Class NotificationsResponse + * * @package AcquiaCloudApi\Response */ class NotificationsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class NotificationsResponse extends \ArrayObject /** * MembersResponse constructor. + * * @param array $notifications */ public function __construct($notifications) { - parent::__construct(array_map(function ($notification) { - return new NotificationResponse($notification); - }, $notifications), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($notification) { + return new NotificationResponse($notification); + }, + $notifications + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/OperationResponse.php b/src/Response/OperationResponse.php index 960103ca..64a8f2cb 100644 --- a/src/Response/OperationResponse.php +++ b/src/Response/OperationResponse.php @@ -4,6 +4,7 @@ /** * Class OperationResponse + * * @package AcquiaCloudApi\Response */ class OperationResponse @@ -14,6 +15,7 @@ class OperationResponse /** * ApplicationResponse constructor. + * * @param object $operation */ public function __construct($operation) diff --git a/src/Response/OrganizationResponse.php b/src/Response/OrganizationResponse.php index 5aba8d6d..7132ec98 100644 --- a/src/Response/OrganizationResponse.php +++ b/src/Response/OrganizationResponse.php @@ -4,6 +4,7 @@ /** * Class OrganizationResponse + * * @package AcquiaCloudApi\Response */ class OrganizationResponse @@ -21,6 +22,7 @@ class OrganizationResponse /** * OrganizationResponse constructor. + * * @param object $organization */ public function __construct($organization) diff --git a/src/Response/OrganizationsResponse.php b/src/Response/OrganizationsResponse.php index d5b1dc90..6cc611b7 100644 --- a/src/Response/OrganizationsResponse.php +++ b/src/Response/OrganizationsResponse.php @@ -4,6 +4,7 @@ /** * Class OrganizationsResponse + * * @package AcquiaCloudApi\Response */ class OrganizationsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class OrganizationsResponse extends \ArrayObject /** * OrganizationsResponse constructor. + * * @param array $organizations */ public function __construct($organizations) { - parent::__construct(array_map(function ($organization) { - return new OrganizationResponse($organization); - }, $organizations), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($organization) { + return new OrganizationResponse($organization); + }, + $organizations + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/PermissionResponse.php b/src/Response/PermissionResponse.php index ebcb6cb2..401fef67 100644 --- a/src/Response/PermissionResponse.php +++ b/src/Response/PermissionResponse.php @@ -4,6 +4,7 @@ /** * Class PermissionResponse + * * @package AcquiaCloudApi\Response */ class PermissionResponse @@ -15,6 +16,7 @@ class PermissionResponse /** * PermissionResponse constructor. + * * @param object $permission */ public function __construct($permission) diff --git a/src/Response/PermissionsResponse.php b/src/Response/PermissionsResponse.php index 0e964eee..b0211e28 100644 --- a/src/Response/PermissionsResponse.php +++ b/src/Response/PermissionsResponse.php @@ -4,6 +4,7 @@ /** * Class PermissionsResponse + * * @package AcquiaCloudApi\Response */ class PermissionsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class PermissionsResponse extends \ArrayObject /** * PermissionsResponse constructor. + * * @param array $permissions */ public function __construct($permissions) { - parent::__construct(array_map(function ($permission) { - return new PermissionResponse($permission); - }, $permissions), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($permission) { + return new PermissionResponse($permission); + }, + $permissions + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/RoleResponse.php b/src/Response/RoleResponse.php index 9c9a8ecb..c676d50e 100644 --- a/src/Response/RoleResponse.php +++ b/src/Response/RoleResponse.php @@ -4,6 +4,7 @@ /** * Class RoleResponse + * * @package AcquiaCloudApi\Response */ class RoleResponse @@ -16,6 +17,7 @@ class RoleResponse /** * RoleResponse constructor. + * * @param object $role */ public function __construct($role) diff --git a/src/Response/RolesResponse.php b/src/Response/RolesResponse.php index 7138e846..c993a9cc 100644 --- a/src/Response/RolesResponse.php +++ b/src/Response/RolesResponse.php @@ -4,6 +4,7 @@ /** * Class RolesResponse + * * @package AcquiaCloudApi\Response */ class RolesResponse extends \ArrayObject @@ -11,12 +12,19 @@ class RolesResponse extends \ArrayObject /** * RolesResponse constructor. + * * @param array $roles */ public function __construct($roles) { - parent::__construct(array_map(function ($role) { - return new RoleResponse($role); - }, $roles), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($role) { + return new RoleResponse($role); + }, + $roles + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/ServerResponse.php b/src/Response/ServerResponse.php index 021e06a1..4b074c3a 100644 --- a/src/Response/ServerResponse.php +++ b/src/Response/ServerResponse.php @@ -4,6 +4,7 @@ /** * Class ServerResponse + * * @package AcquiaCloudApi\Response */ class ServerResponse @@ -22,6 +23,7 @@ class ServerResponse /** * ServerResponse constructor. + * * @param object $server */ public function __construct($server) diff --git a/src/Response/ServersResponse.php b/src/Response/ServersResponse.php index 75fe9798..dbdcf1e7 100644 --- a/src/Response/ServersResponse.php +++ b/src/Response/ServersResponse.php @@ -4,6 +4,7 @@ /** * Class ServersResponse + * * @package AcquiaCloudApi\Response */ class ServersResponse extends \ArrayObject @@ -11,12 +12,19 @@ class ServersResponse extends \ArrayObject /** * ApplicationsResponse constructor. + * * @param array $servers */ public function __construct($servers) { - parent::__construct(array_map(function ($server) { - return new ServerResponse($server); - }, $servers), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($server) { + return new ServerResponse($server); + }, + $servers + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/SslCertificateResponse.php b/src/Response/SslCertificateResponse.php index daee98a9..0d9318bb 100644 --- a/src/Response/SslCertificateResponse.php +++ b/src/Response/SslCertificateResponse.php @@ -4,6 +4,7 @@ /** * Class CertificateResponse + * * @package AcquiaCloudApi\Response */ class SslCertificateResponse @@ -22,6 +23,7 @@ class SslCertificateResponse /** * CertificateResponse constructor. + * * @param object $certificate */ public function __construct($certificate) diff --git a/src/Response/SslCertificatesResponse.php b/src/Response/SslCertificatesResponse.php index c8716741..adf50eae 100644 --- a/src/Response/SslCertificatesResponse.php +++ b/src/Response/SslCertificatesResponse.php @@ -4,6 +4,7 @@ /** * Class CertificatesResponse + * * @package AcquiaCloudApi\Response */ class SslCertificatesResponse extends \ArrayObject @@ -11,12 +12,19 @@ class SslCertificatesResponse extends \ArrayObject /** * CertificatesResponse constructor. + * * @param array $certificates */ public function __construct($certificates) { - parent::__construct(array_map(function ($certificate) { - return new SslCertificateResponse($certificate); - }, $certificates), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($certificate) { + return new SslCertificateResponse($certificate); + }, + $certificates + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/TagResponse.php b/src/Response/TagResponse.php index 486bd8ef..50b94389 100644 --- a/src/Response/TagResponse.php +++ b/src/Response/TagResponse.php @@ -4,6 +4,7 @@ /** * Class TagResponse + * * @package AcquiaCloudApi\Response */ class TagResponse @@ -16,6 +17,7 @@ class TagResponse /** * TagResponse constructor. + * * @param object $tag */ public function __construct($tag) diff --git a/src/Response/TagsResponse.php b/src/Response/TagsResponse.php index 7c2a8cca..c2b12a72 100644 --- a/src/Response/TagsResponse.php +++ b/src/Response/TagsResponse.php @@ -4,6 +4,7 @@ /** * Class TagsResponse + * * @package AcquiaCloudApi\Response */ class TagsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class TagsResponse extends \ArrayObject /** * TagsResponse constructor. + * * @param array $tags */ public function __construct($tags) { - parent::__construct(array_map(function ($tag) { - return new TagResponse($tag); - }, $tags), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($tag) { + return new TagResponse($tag); + }, + $tags + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/TeamResponse.php b/src/Response/TeamResponse.php index 2fb70519..32b12244 100644 --- a/src/Response/TeamResponse.php +++ b/src/Response/TeamResponse.php @@ -4,6 +4,7 @@ /** * Class TeamResponse + * * @package AcquiaCloudApi\Response */ class TeamResponse @@ -17,6 +18,7 @@ class TeamResponse /** * TeamResponse constructor. + * * @param object $team */ public function __construct($team) diff --git a/src/Response/TeamsResponse.php b/src/Response/TeamsResponse.php index 603ce418..72e3e59d 100644 --- a/src/Response/TeamsResponse.php +++ b/src/Response/TeamsResponse.php @@ -4,6 +4,7 @@ /** * Class TeamsResponse + * * @package AcquiaCloudApi\Response */ class TeamsResponse extends \ArrayObject @@ -11,12 +12,19 @@ class TeamsResponse extends \ArrayObject /** * TeamsResponse constructor. + * * @param array $teams */ public function __construct($teams) { - parent::__construct(array_map(function ($team) { - return new TeamResponse($team); - }, $teams), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($team) { + return new TeamResponse($team); + }, + $teams + ), + self::ARRAY_AS_PROPS + ); } } diff --git a/src/Response/VariableResponse.php b/src/Response/VariableResponse.php index 9e66f24f..04e80f46 100644 --- a/src/Response/VariableResponse.php +++ b/src/Response/VariableResponse.php @@ -4,6 +4,7 @@ /** * Class VariableResponse + * * @package AcquiaCloudApi\Response */ class VariableResponse @@ -14,6 +15,7 @@ class VariableResponse /** * VariableResponse constructor. + * * @param object $variable */ public function __construct($variable) diff --git a/src/Response/VariablesResponse.php b/src/Response/VariablesResponse.php index 0917c559..d3f620e6 100644 --- a/src/Response/VariablesResponse.php +++ b/src/Response/VariablesResponse.php @@ -4,6 +4,7 @@ /** * Class VariablesResponse + * * @package AcquiaCloudApi\Response */ class VariablesResponse extends \ArrayObject @@ -11,12 +12,19 @@ class VariablesResponse extends \ArrayObject /** * VariablesResponse constructor. + * * @param array $variables */ public function __construct($variables) { - parent::__construct(array_map(function ($variable) { - return new VariableResponse($variable); - }, $variables), self::ARRAY_AS_PROPS); + parent::__construct( + array_map( + function ($variable) { + return new VariableResponse($variable); + }, + $variables + ), + self::ARRAY_AS_PROPS + ); } }