Total Complexity | 10 |
Total Lines | 65 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
24 | class Registryfile |
||
25 | { |
||
26 | public $filename; // filename to manage |
||
27 | |||
28 | /** |
||
29 | * @param null $fichier |
||
|
|||
30 | */ |
||
31 | public function __construct($fichier = null) |
||
32 | { |
||
33 | $this->setfile($fichier); |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @param null $fichier |
||
38 | */ |
||
39 | public function setfile($fichier = null): void |
||
43 | } |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param null $fichier |
||
48 | * |
||
49 | * @return bool|string |
||
50 | */ |
||
51 | public function getfile($fichier = null) |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * @param $content |
||
68 | * @param null $fichier |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function savefile($content, $fichier = null) |
||
91 |