Total Complexity | 5 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ExternalFileItem implements ItemInterface |
||
9 | { |
||
10 | const STATE_NEW = "new"; |
||
11 | const STATE_PROCESSING = "processing"; |
||
12 | |||
13 | const STATE_PROCESSED = "processed"; |
||
14 | |||
15 | protected string $filePath; |
||
16 | |||
17 | protected FileSystemInterface $fileSystem; |
||
18 | |||
19 | protected string $state; |
||
20 | |||
21 | public function __construct(string $filePath, FileSystemInterface $fileSystem) |
||
22 | { |
||
23 | $this->fileSystem = $fileSystem; |
||
24 | $this->filePath = $filePath; |
||
25 | $this->state = self::STATE_NEW; |
||
26 | } |
||
27 | |||
28 | public function getFileSystem(): FileSystemInterface |
||
29 | { |
||
30 | return $this->fileSystem; |
||
31 | } |
||
32 | |||
33 | public function getState(): string |
||
36 | } |
||
37 | |||
38 | public function setState(string $state): void |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getFilePath(): string |
||
49 | } |
||
50 | } |