| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class ItemBagFactory |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @param array $items |
||
| 18 | * @return ItemBagInterface |
||
| 19 | */ |
||
| 20 | 1 | public static function createUnique(array $items): ItemBagInterface |
|
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param array $items |
||
| 27 | * @return ItemBagInterface |
||
| 28 | */ |
||
| 29 | 1 | public static function createDuplicated(array $items): ItemBagInterface |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array $items |
||
| 36 | * @param bool $acceptDuplicate |
||
| 37 | * @return ItemBagInterface |
||
| 38 | */ |
||
| 39 | 2 | protected static function create(array $items, bool $acceptDuplicate): ItemBagInterface |
|
| 53 |