1 | <?php |
||
19 | class CalculatedModelFieldsFactory |
||
20 | { |
||
21 | private $loader; |
||
22 | |||
23 | /** |
||
24 | * CalculatedModelFieldsFactory constructor. |
||
25 | * @param LoaderInterface $loader |
||
26 | */ |
||
27 | public function __construct(LoaderInterface $loader) |
||
31 | |||
32 | /** |
||
33 | * Creates the calculator class that corresponds to that particular model |
||
34 | * @since $VID:$ |
||
35 | * @param string $model_name |
||
36 | * @return Base |
||
37 | * @throws UnexpectedEntityException |
||
38 | */ |
||
39 | public function createFromModel($model_name) |
||
43 | |||
44 | /** |
||
45 | * Creates the calculator class that corresponds to that classname and verifies it's of the correct type |
||
46 | * @param string $calculator_classname |
||
47 | * @return Base |
||
48 | * @throws UnexpectedEntityException |
||
49 | */ |
||
50 | public function createFromClassname($calculator_classname) |
||
61 | } |
||
62 | // End of file CalculationsFactory.php |
||
64 |