Skip to content

Commit ce33eb4

Browse files
committed
Add deprecation messages for next major release 5
1 parent 46eeafb commit ce33eb4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/AbstractStructArrayBase.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ public function offsetUnset($offset)
194194
*/
195195
public function getInternArray()
196196
{
197+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
198+
197199
return $this->internArray;
198200
}
199201
/**
@@ -203,6 +205,8 @@ public function getInternArray()
203205
*/
204206
public function setInternArray($internArray)
205207
{
208+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
209+
206210
$this->internArray = $internArray;
207211
return $this;
208212
}
@@ -212,6 +216,8 @@ public function setInternArray($internArray)
212216
*/
213217
public function getInternArrayOffset()
214218
{
219+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
220+
215221
return $this->internArrayOffset;
216222
}
217223
/**
@@ -228,6 +234,8 @@ public function getInternArrayOffset()
228234
*/
229235
public function initInternArray($array = [], $internCall = false)
230236
{
237+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
238+
231239
if (is_array($array) && count($array) > 0) {
232240
$this
233241
->setInternArray($array)
@@ -245,6 +253,8 @@ public function initInternArray($array = [], $internCall = false)
245253
*/
246254
public function setInternArrayOffset($internArrayOffset)
247255
{
256+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
257+
248258
$this->internArrayOffset = $internArrayOffset;
249259
return $this;
250260
}
@@ -254,6 +264,8 @@ public function setInternArrayOffset($internArrayOffset)
254264
*/
255265
public function getInternArrayIsArray()
256266
{
267+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
268+
257269
return $this->internArrayIsArray;
258270
}
259271
/**
@@ -263,6 +275,8 @@ public function getInternArrayIsArray()
263275
*/
264276
public function setInternArrayIsArray($internArrayIsArray = false)
265277
{
278+
@trigger_error(sprintf('%s() will be private in WsdlToPhp/PackageBase 5.0.', __METHOD__), E_USER_DEPRECATED);
279+
266280
$this->internArrayIsArray = $internArrayIsArray;
267281
return $this;
268282
}

0 commit comments

Comments
 (0)