Skip to content

Commit 228ce15

Browse files
committed
Merge pull request #436 from wmde/deprecateClaims
Deprecate all public methods in Claims
2 parents 3bebdca + 57e8c19 commit 228ce15

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/Claim/Claims.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Claims extends ArrayObject {
2424
* @see GenericArrayObject::__construct
2525
*
2626
* @since 0.3
27+
* @deprecated since 1.0, use StatementList instead.
2728
*
2829
* @param Claim[]|Traversable|null $input
2930
*
@@ -77,6 +78,7 @@ private function getClaimKey( Claim $claim ) {
7778

7879
/**
7980
* @since 0.1
81+
* @deprecated since 1.0, use StatementList::addStatement() instead.
8082
*
8183
* @param Claim $claim
8284
*
@@ -92,6 +94,7 @@ public function addClaim( Claim $claim ) {
9294

9395
/**
9496
* @since 0.1
97+
* @deprecated since 1.0, should not be needed any more.
9598
*
9699
* @param Claim $claim
97100
*
@@ -110,6 +113,7 @@ public function hasClaim( Claim $claim ) {
110113

111114
/**
112115
* @since 0.3
116+
* @deprecated since 1.0, use StatementList::getIndexByGuid() instead.
113117
*
114118
* @param string $claimGuid
115119
*
@@ -121,6 +125,7 @@ public function hasClaimWithGuid( $claimGuid ) {
121125

122126
/**
123127
* @since 0.3
128+
* @deprecated since 1.0, should not be needed any more.
124129
*
125130
* @param string $claimGuid
126131
*/
@@ -132,6 +137,7 @@ public function removeClaimWithGuid( $claimGuid ) {
132137

133138
/**
134139
* @since 0.3
140+
* @deprecated since 1.0, use StatementList::getIndexByGuid() instead.
135141
*
136142
* @param string $claimGuid
137143
*
@@ -147,6 +153,7 @@ public function getClaimWithGuid( $claimGuid ) {
147153

148154
/**
149155
* @see ArrayAccess::offsetExists
156+
* @deprecated since 1.0, should never be called.
150157
*
151158
* @param string $guid
152159
*
@@ -161,6 +168,7 @@ public function offsetExists( $guid ) {
161168

162169
/**
163170
* @see ArrayAccess::offsetGet
171+
* @deprecated since 1.0, should never be called.
164172
*
165173
* @param string $guid
166174
*
@@ -175,6 +183,7 @@ public function offsetGet( $guid ) {
175183

176184
/**
177185
* @see ArrayAccess::offsetSet
186+
* @deprecated since 1.0, should never be called.
178187
*
179188
* @param string $guid
180189
* @param Claim $claim
@@ -201,6 +210,7 @@ public function offsetSet( $guid, $claim ) {
201210

202211
/**
203212
* @see ArrayAccess::offsetUnset
213+
* @deprecated since 1.0, should never be called.
204214
*
205215
* @param string $guid
206216
*/

0 commit comments

Comments
 (0)