| Conditions | 4 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | 1 | public function getElements() |
|
| 52 | { |
||
| 53 | 1 | $elements = $this->wrapped->getElements(); |
|
| 54 | 1 | if($this->getMax()>0 || $this->getMax()===-1){ |
|
| 55 | 1 | foreach ($elements as $k => $element) { |
|
| 56 | 1 | $e = clone $element; |
|
| 57 | 1 | $e->setMax($this->getMax()); |
|
| 58 | 1 | $elements[$k] = $e; |
|
| 59 | 1 | } |
|
| 60 | 1 | } |
|
| 61 | 1 | return $elements; |
|
| 62 | } |
||
| 63 | |||
| 69 |