Skip to content

Commit 6a6edda

Browse files
committed
Add deprecation messages for next major releases 4 and 5
1 parent ce33eb4 commit 6a6edda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/AbstractStructBase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public static function __set_state(array $array)
3737
*/
3838
public function _set($name, $value)
3939
{
40+
@trigger_error(sprintf('%s() will be renamed to setPropertyValue in WsdlToPhp/PackageBase 4.0.', __METHOD__), E_USER_DEPRECATED);
41+
4042
$setMethod = 'set' . ucfirst($name);
4143
if (method_exists($this, $setMethod)) {
4244
$this->$setMethod($value);
@@ -53,6 +55,8 @@ public function _set($name, $value)
5355
*/
5456
public function _get($name)
5557
{
58+
@trigger_error(sprintf('%s() will be renamed to getPropertyValue in WsdlToPhp/PackageBase 4.0.', __METHOD__), E_USER_DEPRECATED);
59+
5660
$getMethod = 'get' . ucfirst($name);
5761
if (method_exists($this, $getMethod)) {
5862
return $this->$getMethod();

0 commit comments

Comments
 (0)