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