-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileNavigator.php
More file actions
52 lines (43 loc) · 798 Bytes
/
FileNavigator.php
File metadata and controls
52 lines (43 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
namespace Grinderspro\Navigator;
use Grinderspro\Navigator\Reader\IReader;
use Grinderspro\Navigator\Factory\ReaderFactory;
/**
* Navigator class
*
* @author <grinderspro@gmail.com>
* @updated: 06.03.17
*/
class FileNavigator
{
/**
* @var IReader
*/
private $reader;
private $writer;
/**
* Set reader type
*
* @param string $type
*/
public function setReader($type)
{
$this->reader = ReaderFactory::create($type);
}
/**
* @param string $fileName
*/
public function getContent($fileName)
{
return $this->reader->read($fileName);
}
public function delFile($fileName)
{
}
public function moveFile($from, $to)
{
}
public function infoFile()
{
}
}