File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ class DefaultFixture
8
8
{
9
9
private static $ data ;
10
10
11
+ /**
12
+ * @return array
13
+ */
11
14
public static function getArray ()
12
15
{
13
16
if (self ::$ data === null ) {
@@ -16,6 +19,9 @@ public static function getArray()
16
19
return self ::$ data ;
17
20
}
18
21
22
+ /**
23
+ * @return object[]
24
+ */
19
25
public static function getObjects ()
20
26
{
21
27
$ objects = [];
@@ -25,8 +31,19 @@ public static function getObjects()
25
31
return $ objects ;
26
32
}
27
33
34
+ /**
35
+ * @return ObjectCollection
36
+ */
28
37
public static function getCollection ()
29
38
{
30
39
return new ObjectCollection (self ::getObjects ());
31
40
}
41
+
42
+ /**
43
+ * @return int
44
+ */
45
+ public static function getTotalCount ()
46
+ {
47
+ return count (self ::getArray ());
48
+ }
32
49
}
You can’t perform that action at this time.
0 commit comments