| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 5 | public function add(AttributeOption $option, string $attributecode, string $key = null): void |
|
| 21 | { |
||
| 22 | 5 | if ($key === null) { |
|
| 23 | 3 | $this->optionFixtures[] = new OptionFixture($option, $attributecode); |
|
| 24 | } else { |
||
| 25 | 2 | $this->optionFixtures[$key] = new OptionFixture($option, $attributecode); |
|
| 26 | } |
||
| 52 |