Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class DetectionFactory implements DetectorFactoryContract |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | public array $detections; |
||
17 | |||
18 | /** |
||
19 | * DetectionFactory constructor. |
||
20 | * |
||
21 | * @param array $detections |
||
22 | */ |
||
23 | public function __construct(array $detections) |
||
24 | { |
||
25 | $this->detections = $detections; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param $field |
||
30 | * @param $params |
||
31 | * @param Model|null $model |
||
32 | * |
||
33 | * @return mixed|string|null |
||
34 | * @throws \ReflectionException |
||
35 | * |
||
36 | */ |
||
37 | public function buildDetections($field, $params, $model = null): ?string |
||
45 | } |
||
46 | } |
||
47 |