| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php namespace Mascame\Artificer\Fields; |
||
| 45 | public function add($attributes = []) |
||
| 46 | { |
||
| 47 | $current_attributes = $this->all(); |
||
| 48 | |||
| 49 | if (is_array($current_attributes)) { |
||
| 50 | $this->fieldOptions->add('attributes', array_merge($current_attributes, $attributes)); |
||
| 51 | } else { |
||
| 52 | $this->fieldOptions->add('attributes', $attributes); |
||
| 53 | } |
||
| 54 | |||
| 55 | return $this->fieldOptions->all(); |
||
| 56 | } |
||
| 57 | |||
| 58 | } |