File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 13
13
* Class to manage the references of a translation.
14
14
*
15
15
* @phpstan-consistent-constructor
16
+ *
17
+ * @phpstan-type ReferencesType array<string, list<int>>
18
+ *
19
+ * @implements IteratorAggregate<string, list<int>>
16
20
*/
17
21
class References implements JsonSerializable, Countable, IteratorAggregate
18
22
{
23
+ /**
24
+ * @var ReferencesType
25
+ */
19
26
protected $ references = [];
20
27
28
+ /**
29
+ * @param array{references: ReferencesType} $state
30
+ */
21
31
public static function __set_state (array $ state ): References
22
32
{
23
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 ;
You can’t perform that action at this time.
0 commit comments