| 1 | <?php |
||
| 13 | class FileInfo implements IFileInfo { |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $path; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $name; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | protected $size; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var int |
||
| 31 | */ |
||
| 32 | protected $time; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var int |
||
| 36 | */ |
||
| 37 | protected $mode; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var callable |
||
| 41 | */ |
||
| 42 | protected $aclCallback; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $path |
||
| 46 | * @param string $name |
||
| 47 | * @param int $size |
||
| 48 | * @param int $time |
||
| 49 | * @param int $mode |
||
| 50 | * @param callable $aclCallback |
||
| 51 | */ |
||
| 52 | 325 | public function __construct($path, $name, $size, $time, $mode, callable $aclCallback) { |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 315 | public function getPath() { |
|
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | 147 | public function getName() { |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @return int |
||
| 77 | */ |
||
| 78 | 87 | public function getSize() { |
|
| 81 | |||
| 82 | /** |
||
| 83 | * @return int |
||
| 84 | */ |
||
| 85 | 3 | public function getMTime() { |
|
| 88 | |||
| 89 | /** |
||
| 90 | * @return bool |
||
| 91 | */ |
||
| 92 | 285 | public function isDirectory() { |
|
| 95 | |||
| 96 | /** |
||
| 97 | * @return bool |
||
| 98 | */ |
||
| 99 | 27 | public function isReadOnly() { |
|
| 102 | |||
| 103 | /** |
||
| 104 | * @return bool |
||
| 105 | */ |
||
| 106 | 42 | public function isHidden() { |
|
| 109 | |||
| 110 | /** |
||
| 111 | * @return bool |
||
| 112 | */ |
||
| 113 | 24 | public function isSystem() { |
|
| 116 | |||
| 117 | /** |
||
| 118 | * @return bool |
||
| 119 | */ |
||
| 120 | 24 | public function isArchived() { |
|
| 123 | |||
| 124 | /** |
||
| 125 | * @return ACL[] |
||
| 126 | */ |
||
| 127 | public function getAcls(): array { |
||
| 130 | } |
||
| 131 |