Skip to content

Commit

Permalink
Add deprecation messages for next major release 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelcom committed Feb 5, 2021
1 parent 9e93bd3 commit 9ea1e6b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/AbstractStructArrayBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ public function offsetUnset($offset): self
*/
public function getInternArray(): array
{
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);

return $this->internArray;
}

Expand All @@ -203,6 +205,8 @@ public function getInternArray(): array
*/
public function setInternArray(array $internArray): self
{
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);

$this->internArray = $internArray;

return $this;
Expand All @@ -214,6 +218,8 @@ public function setInternArray(array $internArray): self
*/
public function getInternArrayOffset(): int
{
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);

return $this->internArrayOffset;
}

Expand All @@ -225,6 +231,8 @@ public function getInternArrayOffset(): int
*/
public function initInternArray(array $array = [], bool $internCall = false): self
{
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);

if (is_array($array) && count($array) > 0) {
$this
->setInternArray($array)
Expand All @@ -244,6 +252,8 @@ public function initInternArray(array $array = [], bool $internCall = false): se
*/
public function setInternArrayOffset(int $internArrayOffset): self
{
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);

$this->internArrayOffset = $internArrayOffset;

return $this;
Expand All @@ -255,6 +265,8 @@ public function setInternArrayOffset(int $internArrayOffset): self
*/
public function getInternArrayIsArray(): bool
{
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);

return $this->internArrayIsArray;
}

Expand All @@ -265,6 +277,8 @@ public function getInternArrayIsArray(): bool
*/
public function setInternArrayIsArray(bool $internArrayIsArray = false): self
{
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);

$this->internArrayIsArray = $internArrayIsArray;

return $this;
Expand Down

0 comments on commit 9ea1e6b

Please sign in to comment.