| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public static function createMultiple( |
||
| 22 | array $paths, |
||
| 23 | int $watchOnChangeFlags, |
||
| 24 | string $customName |
||
| 25 | ): self { |
||
| 26 | $collection = new self(); |
||
| 27 | |||
| 28 | foreach ($paths as $pathname) { |
||
| 29 | $collection->push(new WatchedResource($pathname, $watchOnChangeFlags, $customName)); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $collection; |
||
| 33 | } |
||
| 34 | } |