1 | <?php |
||
8 | class FileContent { |
||
9 | |||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $content; |
||
14 | |||
15 | |||
16 | /** |
||
17 | * @var string|null |
||
18 | */ |
||
19 | private $initialContentHashSum = null; |
||
20 | |||
21 | |||
22 | /** |
||
23 | * @param string $content |
||
24 | */ |
||
25 | 74 | public function __construct($content) { |
|
29 | |||
30 | |||
31 | /** |
||
32 | * @param string $content |
||
33 | * @void |
||
34 | */ |
||
35 | 38 | public function set($content) { |
|
38 | |||
39 | |||
40 | /** |
||
41 | * @return string |
||
42 | */ |
||
43 | 74 | public function get() { |
|
46 | |||
47 | |||
48 | /** |
||
49 | * @return boolean |
||
50 | */ |
||
51 | public function isChanged() { |
||
54 | |||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | 74 | private function getContentHash() { |
|
62 | |||
63 | } |