You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Metadata/Property/PropertyMetadata.php
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@ final class PropertyMetadata
31
31
private$required;
32
32
private$iri;
33
33
private$identifier;
34
+
/**
35
+
* @deprecated since 2.6, to be removed in 3.0
36
+
*/
34
37
private$childInherited;
35
38
private$attributes;
36
39
private$subresource;
@@ -47,6 +50,9 @@ public function __construct(Type $type = null, string $description = null, bool
47
50
$this->required = $required;
48
51
$this->identifier = $identifier;
49
52
$this->iri = $iri;
53
+
if (null !== $childInherited) {
54
+
@trigger_error(sprintf('Providing a non-null value for the 10th argument ($childInherited) of the "%s" constructor is deprecated since 2.6 and will not be supported in 3.0.', __CLASS__), E_USER_DEPRECATED);
55
+
}
50
56
$this->childInherited = $childInherited;
51
57
$this->attributes = $attributes;
52
58
$this->subresource = $subresource;
@@ -258,38 +264,38 @@ public function withAttributes(array $attributes): self
258
264
}
259
265
260
266
/**
261
-
* Gets child inherited.
267
+
* @deprecated since 2.6, to be removed in 3.0
262
268
*/
263
269
publicfunctiongetChildInherited(): ?string
264
270
{
265
271
return$this->childInherited;
266
272
}
267
273
268
274
/**
269
-
* Is the property inherited from a child class?
275
+
* @deprecated since 2.6, to be removed in 3.0
270
276
*/
271
277
publicfunctionhasChildInherited(): bool
272
278
{
273
279
returnnull !== $this->childInherited;
274
280
}
275
281
276
282
/**
277
-
* Is the property inherited from a child class?
278
-
*
279
-
* @deprecated since version 2.4, to be removed in 3.0.
283
+
* @deprecated since 2.4, to be removed in 3.0
280
284
*/
281
285
publicfunctionisChildInherited(): ?string
282
286
{
283
-
@trigger_error(sprintf('The use of "%1$s::isChildInherited()" is deprecated since 2.4 and will be removed in 3.0. Use "%1$s::getChildInherited()" or "%1$s::hasChildInherited()" directly instead.', __CLASS__), E_USER_DEPRECATED);
287
+
@trigger_error(sprintf('"%s::%s" is deprecated since 2.4 and will be removed in 3.0.', __CLASS__, __METHOD__), E_USER_DEPRECATED);
284
288
285
289
return$this->getChildInherited();
286
290
}
287
291
288
292
/**
289
-
* Returns a new instance with the given child inherited class.
0 commit comments