1 | <?php |
||
10 | class ModelManager |
||
11 | { |
||
12 | /** |
||
13 | * @param Estimator $estimator |
||
14 | * @param string $filepath |
||
15 | * @throws FileException |
||
16 | * @throws SerializeException |
||
17 | */ |
||
18 | public function saveToFile(Estimator $estimator, string $filepath) |
||
34 | |||
35 | /** |
||
36 | * @param string $filepath |
||
37 | * @return Estimator |
||
38 | * @throws FileException |
||
39 | * @throws SerializeException |
||
40 | */ |
||
41 | public function restoreFromFile(string $filepath) : Estimator |
||
54 | } |
||
55 |