Skip to content

Commit 69ab99e

Browse files
committed
Merge pull request #452 from wmde/sparseDocs
More specific return docs in StatementList
2 parents 0b69f50 + 86f6dc3 commit 69ab99e

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/Statement/StatementList.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getBestStatementPerProperty() {
7474
* Returns the property ids used by the statements.
7575
* The keys of the returned array hold the serializations of the property ids.
7676
*
77-
* @return PropertyId[]
77+
* @return PropertyId[] Array indexed by property id serialization.
7878
*/
7979
public function getPropertyIds() {
8080
$propertyIds = array();
@@ -127,7 +127,7 @@ public function getWithUniqueMainSnaks() {
127127
*
128128
* @param PropertyId $id
129129
*
130-
* @return StatementList
130+
* @return self
131131
*/
132132
public function getWithPropertyId( PropertyId $id ) {
133133
$statementList = new self();
@@ -146,7 +146,7 @@ public function getWithPropertyId( PropertyId $id ) {
146146
*
147147
* @param int|int[] $acceptableRanks
148148
*
149-
* @return StatementList
149+
* @return self
150150
*/
151151
public function getWithRank( $acceptableRanks ) {
152152
$acceptableRanks = array_flip( (array)$acceptableRanks );
@@ -168,7 +168,7 @@ public function getWithRank( $acceptableRanks ) {
168168
*
169169
* @since 2.4
170170
*
171-
* @return StatementList
171+
* @return self
172172
*/
173173
public function getBestStatements() {
174174
$statements = $this->getWithRank( Statement::RANK_PREFERRED );
@@ -189,7 +189,7 @@ public function getBestStatements() {
189189
*
190190
* @since 1.1
191191
*
192-
* @return Snak[]
192+
* @return Snak[] Numerically indexed (non-sparse) array.
193193
*/
194194
public function getAllSnaks() {
195195
$snaks = array();
@@ -206,7 +206,7 @@ public function getAllSnaks() {
206206
/**
207207
* @since 2.3
208208
*
209-
* @return Snak[]
209+
* @return Snak[] Numerically indexed (non-sparse) array.
210210
*/
211211
public function getMainSnaks() {
212212
$snaks = array();
@@ -234,6 +234,7 @@ public function toArray() {
234234

235235
/**
236236
* @see Countable::count
237+
*
237238
* @return int
238239
*/
239240
public function count() {

0 commit comments

Comments
 (0)