Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
26 | final class Sha256File implements FileInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $filename; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $content; |
||
37 | |||
38 | public function __construct(string $filename, string $content) |
||
39 | { |
||
40 | $this->filename = $filename; |
||
41 | $this->content = $content; |
||
42 | } |
||
43 | |||
44 | public function getFilename(): string |
||
47 | } |
||
48 | |||
49 | public function getContent(): string |
||
50 | { |
||
51 | return $this->content; |
||
52 | } |
||
53 | |||
54 | public function getChecksum(): string |
||
57 | } |
||
58 | } |
||
59 |