1 | <?php |
||
18 | class File implements Streamable |
||
19 | { |
||
20 | /** |
||
21 | * Use better the local TMP dir or dir with mod 777 |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $storageDir; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $fileName; |
||
30 | |||
31 | /** |
||
32 | * Specifies the type of access you require to the stream |
||
33 | * @see http://php.net/manual/en/function.fopen.php#mode |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $mode; |
||
37 | |||
38 | /** |
||
39 | * @param string $storageDir |
||
40 | * @param string $fileName |
||
41 | * @param string $mode |
||
42 | */ |
||
43 | public function __construct($storageDir, $fileName = "pimf-logs.txt", $mode = "at+") |
||
49 | |||
50 | /* @inheritdoc */ |
||
51 | public function open() |
||
61 | } |
||
62 |