diff --git a/src/Api/Management/Controller/CompanyController.php b/src/Api/Management/Controller/CompanyController.php index ef2ec549..ccff87dc 100644 --- a/src/Api/Management/Controller/CompanyController.php +++ b/src/Api/Management/Controller/CompanyController.php @@ -50,11 +50,12 @@ class CompanyController extends PaginatedEntityController implements CompanyCont * @param string $organization * @param \Apigee\Edge\ClientInterface $client * @param \Apigee\Edge\Serializer\EntitySerializerInterface|null $entitySerializer + * @param \Apigee\Edge\Api\Management\Controller\OrganizationControllerInterface|null $organizationController */ - public function __construct(string $organization, ClientInterface $client, ?EntitySerializerInterface $entitySerializer = null) + public function __construct(string $organization, ClientInterface $client, ?EntitySerializerInterface $entitySerializer = null, ?OrganizationControllerInterface $organizationController = null) { $entitySerializer = $entitySerializer ?? new CompanySerializer(); - parent::__construct($organization, $client, $entitySerializer); + parent::__construct($organization, $client, $entitySerializer, $organizationController); } /** diff --git a/src/Api/Management/Controller/CompanyMembersControllerInterface.php b/src/Api/Management/Controller/CompanyMembersControllerInterface.php index 88509cbb..983f1f37 100644 --- a/src/Api/Management/Controller/CompanyMembersControllerInterface.php +++ b/src/Api/Management/Controller/CompanyMembersControllerInterface.php @@ -38,19 +38,17 @@ public function getMembers(): CompanyMembership; /** * Set (add/update/remove) members of a company. * - * Warning! If you pass en empty membership object you remove all developers + * WARNING! If you pass en empty membership object you remove all developers * from the company. * - * The return array only contains the changes, it does not contain all - * members. Use getMembers() to retrieve it. - * * @param \Apigee\Edge\Api\Management\Structure\CompanyMembership $members - * Array of developers with their optional roles in the company. + * Membership object with the changes to be applied. * * @return \Apigee\Edge\Api\Management\Structure\CompanyMembership - * Array of developers with their optional roles in the company. + * Membership object with the applied changes, it does not contain all + * members. Use getMembers() to retrieve them. */ - public function setMembers(CompanyMembership $members): CompanyMembership; + public function setMembers(CompanyMembership $members); /** * Removes a developer from a company. diff --git a/src/Api/Management/Controller/DeveloperController.php b/src/Api/Management/Controller/DeveloperController.php index 83c807eb..3dc4e620 100644 --- a/src/Api/Management/Controller/DeveloperController.php +++ b/src/Api/Management/Controller/DeveloperController.php @@ -57,12 +57,8 @@ class DeveloperController extends PaginatedEntityController implements Developer * @param \Apigee\Edge\Serializer\EntitySerializerInterface|null $entitySerializer * @param OrganizationControllerInterface|null $organizationController */ - public function __construct( - string $organization, - ClientInterface $client, - ?EntitySerializerInterface $entitySerializer = null, - ?OrganizationControllerInterface $organizationController = null - ) { + public function __construct(string $organization, ClientInterface $client, ?EntitySerializerInterface $entitySerializer = null, ?OrganizationControllerInterface $organizationController = null) + { $entitySerializer = $entitySerializer ?? new DeveloperSerializer(); parent::__construct($organization, $client, $entitySerializer, $organizationController); } diff --git a/src/Controller/StatusAwareEntityControllerInterface.php b/src/Controller/StatusAwareEntityControllerInterface.php index e8752cbd..350cda7c 100644 --- a/src/Controller/StatusAwareEntityControllerInterface.php +++ b/src/Controller/StatusAwareEntityControllerInterface.php @@ -21,8 +21,9 @@ /** * Interface StatusAwareEntityControllerInterface. * - * Entity controller for those entities that has "status" property and the value of that property (and with that the - * status of the entity itself) can be changed only with an additional API call. + * Entity controller for those entities that has "status" property and the value + * of that property (and with that the status of the entity itself) can be + * changed only with an additional API call. * * @see https://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/developers/%7Bdeveloper_email_or_id%7D * @see https://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/developers/%7Bdeveloper_email_or_id%7D/apps/%7Bapp_name%7D @@ -30,5 +31,13 @@ */ interface StatusAwareEntityControllerInterface { + /** + * Changes the status of an entity in Apigee Edge. + * + * @param string $entityId + * Id of an entity. + * @param string $status + * New status to be set. + */ public function setStatus(string $entityId, string $status): void; }