Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#65] Deprecate "createdBy" and "lastModifiedBy" properties #74

12 changes: 12 additions & 0 deletions src/Entity/CommonEntityPropertiesAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ trait CommonEntityPropertiesAwareTrait
/**
* Email address of the organization user who created the entity.
*
* @deprecated in 2.0.4, will be removed before 3.0.0. Unsupported in Hybrid.
* @see https://github.com/apigee/apigee-client-php/issues/65
*
* @var string|null
*/
protected $createdBy;
Expand All @@ -50,6 +53,9 @@ trait CommonEntityPropertiesAwareTrait
/**
* Email address of the organization user who modified the entity last time.
*
* @deprecated in 2.0.4, will be removed before 3.0.0. Unsupported in Hybrid.
* @see https://github.com/apigee/apigee-client-php/issues/65
*
* @var string|null
*/
protected $lastModifiedBy;
Expand Down Expand Up @@ -88,6 +94,9 @@ public function getCreatedBy(): ?string
* @param string $email
* User/developer mail.
*
* @deprecated in 2.0.4, will be removed before 3.0.0. Unsupported in Hybrid.
* @see https://github.com/apigee/apigee-client-php/issues/65
*
* @internal
*/
public function setCreatedBy(string $email): void
Expand Down Expand Up @@ -130,6 +139,9 @@ public function getLastModifiedBy(): ?string
* User/developer mail.
*
* @internal
*
* @deprecated in 2.0.4, will be removed before 3.0.0. Unsupported in Hybrid.
* @see https://github.com/apigee/apigee-client-php/issues/65
*/
public function setLastModifiedBy(string $email): void
{
Expand Down
6 changes: 6 additions & 0 deletions src/Entity/CommonEntityPropertiesInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public function getCreatedAt(): ?\DateTimeImmutable;
/**
* Returns the email address of the user/developer who created the entity.
*
* @deprecated in 2.0.4, will be removed before 3.0.0. Unsupported in Hybrid.
* @see https://github.com/apigee/apigee-client-php/issues/65
*
* @return string|null Email address.
*/
public function getCreatedBy(): ?string;
Expand All @@ -52,6 +55,9 @@ public function getLastModifiedAt(): ?\DateTimeImmutable;
/**
* Returns the email address of the user/developer who modified the entity the last time.
*
* @deprecated in 2.0.4, will be removed before 3.0.0. Unsupported in Hybrid.
* @see https://github.com/apigee/apigee-client-php/issues/65
*
* @return string|null Email address.
*/
public function getLastModifiedBy(): ?string;
Expand Down