1 | <?php |
||
23 | class PHPUtil { |
||
24 | |||
25 | /** |
||
26 | * |
||
27 | * @var ILogger |
||
28 | */ |
||
29 | private $logger; |
||
30 | |||
31 | /** |
||
32 | * |
||
33 | * @var IL10N |
||
34 | */ |
||
35 | private $l10n; |
||
36 | |||
37 | 5 | public function __construct(IL10N $l10n, ILogger $logger) { |
|
41 | |||
42 | /** |
||
43 | * Wraps the php native function tempnam() |
||
44 | * |
||
45 | * @codeCoverageIgnore |
||
46 | * |
||
47 | * @param string $dir |
||
48 | * @param string $prefix |
||
49 | * @throws NotFoundException |
||
50 | * @return string |
||
51 | */ |
||
52 | public function tempnamWrapper($dir, $prefix) { |
||
60 | |||
61 | /** |
||
62 | * Wraps the php native function unlink() |
||
63 | * |
||
64 | * @codeCoverageIgnore |
||
65 | * |
||
66 | * @param string $fileName |
||
67 | * @throws NotFoundException |
||
68 | * @return boolean |
||
69 | */ |
||
70 | public function unlinkWrapper($fileName) { |
||
77 | |||
78 | /** |
||
79 | * Wraps the php native function touch() |
||
80 | * |
||
81 | * @codeCoverageIgnore |
||
82 | * |
||
83 | * @param string $fileName |
||
84 | * @throws NotFoundException |
||
85 | * @return boolean |
||
86 | */ |
||
87 | public function touchWrapper($fileName) { |
||
94 | |||
95 | /** |
||
96 | * Wraps the php native function chmod() |
||
97 | * |
||
98 | * @codeCoverageIgnore |
||
99 | * |
||
100 | * @param string $fileName |
||
101 | * @param integer $mode |
||
102 | * @throws NotFoundException |
||
103 | * @return boolean |
||
104 | */ |
||
105 | public function chmodWrapper($fileName, $mode) { |
||
112 | } |