| Total Complexity | 4 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class Factory |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var Watchman[] |
||
| 24 | */ |
||
| 25 | private $watchmen; |
||
| 26 | |||
| 27 | public function __construct(array $watchmen) |
||
| 28 | { |
||
| 29 | Assertion::allImplementsInterface($watchmen, Watchman::class); |
||
| 30 | $this->watchmen = $watchmen; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function factory(Profile $profile): Builder |
||
| 41 | } |
||
| 42 | } |
||
| 43 |