We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
References
1 parent 317fea1 commit fcaab6eCopy full SHA for fcaab6e
src/References.php
@@ -13,11 +13,21 @@
13
* Class to manage the references of a translation.
14
*
15
* @phpstan-consistent-constructor
16
+ *
17
+ * @phpstan-type ReferencesType array<string, list<int>>
18
19
+ * @implements IteratorAggregate<string, list<int>>
20
*/
21
class References implements JsonSerializable, Countable, IteratorAggregate
22
{
23
+ /**
24
+ * @var ReferencesType
25
+ */
26
protected $references = [];
27
28
29
+ * @param array{references: ReferencesType} $state
30
31
public static function __set_state(array $state): References
32
33
$references = new static();
@@ -67,6 +77,9 @@ public function count(): int
67
77
}, 0);
68
78
}
69
79
80
81
+ * @return ReferencesType
82
70
83
public function toArray(): array
71
84
72
85
return $this->references;
0 commit comments