1 | <?php |
||
7 | class DevelopingFactory |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * PHP class name (FQDN) of the DevelopingInterface instance this factory produces. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | public $developing_php_class; |
||
16 | |||
17 | |||
18 | /** |
||
19 | * @param string|null $developing_php_class DevelopingInterface instance FQDN |
||
20 | * |
||
21 | * @throws InvalidArgumentException If FQDN does not implement DevelopingInterface |
||
22 | */ |
||
23 | 30 | public function __construct( string $developing_php_class = null ) |
|
32 | |||
33 | |||
34 | /** |
||
35 | * The factory method. |
||
36 | * |
||
37 | * Expects an array with at least elements "time", "densities", and "exposures". |
||
38 | * |
||
39 | * If no "exposures" are given, but "zones" numbers are instead, the zone numbers |
||
40 | * will be converted internally. |
||
41 | * |
||
42 | * @param array $developing |
||
43 | * @return DevelopingInterface |
||
44 | */ |
||
45 | 27 | public function __invoke( $developing ) |
|
72 | } |
||
73 |