Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
103 | 7 | public function push($value) |
|
104 | { |
||
105 | 7 | $message = sprintf( |
|
106 | 7 | 'The type specified for this collection is %s, you cannot pass a value of type %s', |
|
107 | 7 | $this->type, gettype($value) |
|
108 | ); |
||
109 | |||
110 | 7 | Checker::valueIsOfType($value, $this->type, $message); |
|
111 | |||
112 | 7 | $this->data[] = $value; |
|
113 | |||
114 | 7 | return $value; |
|
115 | } |
||
117 |