1 | <?php |
||
11 | class LicensePlateFactory |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $licensePlate; |
||
17 | |||
18 | /** |
||
19 | * @var AbstractDetector[] |
||
20 | */ |
||
21 | protected $detectorTypes = []; |
||
22 | |||
23 | /** |
||
24 | * @param string $licensePlate |
||
25 | */ |
||
26 | public function __construct($licensePlate) |
||
30 | |||
31 | /** |
||
32 | * @param $detectorType |
||
33 | * |
||
34 | * @throws \RuntimeException |
||
35 | */ |
||
36 | public function addDetectorType($detectorType) |
||
44 | |||
45 | /** |
||
46 | * @return LicensePlateResponse[] |
||
47 | */ |
||
48 | public function getResults() |
||
65 | |||
66 | /** |
||
67 | * @param string $licensePlate |
||
68 | * @param array $detectorTypes |
||
69 | * |
||
70 | * @throws \RuntimeException |
||
71 | * |
||
72 | * @return LicensePlateResponse[] |
||
73 | */ |
||
74 | public static function fromString($licensePlate, array $detectorTypes) |
||
95 | } |
||
96 |