| @@ 4026-4039 (lines=14) @@ | ||
| 4023 | *  | 
                                |
| 4024 | * @return bool  | 
                                |
| 4025 | */  | 
                                |
| 4026 | public function sizeIs(int $size): bool  | 
                                |
| 4027 |     { | 
                                |
| 4028 | // init  | 
                                |
| 4029 | $itemsTempCount = 0;  | 
                                |
| 4030 | ||
| 4031 |         foreach ($this->getGenerator() as $key => $value) { | 
                                |
| 4032 | ++$itemsTempCount;  | 
                                |
| 4033 |             if ($itemsTempCount > $size) { | 
                                |
| 4034 | return false;  | 
                                |
| 4035 | }  | 
                                |
| 4036 | }  | 
                                |
| 4037 | ||
| 4038 | return $itemsTempCount === $size;  | 
                                |
| 4039 | }  | 
                                |
| 4040 | ||
| 4041 | /**  | 
                                |
| 4042 | * Checks whether array has between $fromSize to $toSize items. $toSize can be  | 
                                |
| @@ 4078-4091 (lines=14) @@ | ||
| 4075 | *  | 
                                |
| 4076 | * @return bool  | 
                                |
| 4077 | */  | 
                                |
| 4078 | public function sizeIsGreaterThan(int $size): bool  | 
                                |
| 4079 |     { | 
                                |
| 4080 | // init  | 
                                |
| 4081 | $itemsTempCount = 0;  | 
                                |
| 4082 | ||
| 4083 |         foreach ($this->getGenerator() as $key => $value) { | 
                                |
| 4084 | ++$itemsTempCount;  | 
                                |
| 4085 |             if ($itemsTempCount > $size) { | 
                                |
| 4086 | return true;  | 
                                |
| 4087 | }  | 
                                |
| 4088 | }  | 
                                |
| 4089 | ||
| 4090 | return $itemsTempCount > $size;  | 
                                |
| 4091 | }  | 
                                |
| 4092 | ||
| 4093 | /**  | 
                                |
| 4094 | * Checks whether array has less than $size items.  | 
                                |
| @@ 4100-4113 (lines=14) @@ | ||
| 4097 | *  | 
                                |
| 4098 | * @return bool  | 
                                |
| 4099 | */  | 
                                |
| 4100 | public function sizeIsLessThan(int $size): bool  | 
                                |
| 4101 |     { | 
                                |
| 4102 | // init  | 
                                |
| 4103 | $itemsTempCount = 0;  | 
                                |
| 4104 | ||
| 4105 |         foreach ($this->getGenerator() as $key => $value) { | 
                                |
| 4106 | ++$itemsTempCount;  | 
                                |
| 4107 |             if ($itemsTempCount > $size) { | 
                                |
| 4108 | return false;  | 
                                |
| 4109 | }  | 
                                |
| 4110 | }  | 
                                |
| 4111 | ||
| 4112 | return $itemsTempCount < $size;  | 
                                |
| 4113 | }  | 
                                |
| 4114 | ||
| 4115 | /**  | 
                                |
| 4116 | * Counts all elements in an array, or something in an object.  | 
                                |