1 | <?php |
||
27 | abstract class DiffChunkLine |
||
28 | { |
||
29 | const UNCHANGED = "unchanged"; |
||
30 | const ADDED = "added"; |
||
31 | const DELETED = "deleted"; |
||
32 | |||
33 | /** |
||
34 | * line type |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $type; |
||
39 | |||
40 | /** |
||
41 | * line content |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $content; |
||
46 | |||
47 | /** |
||
48 | * toString magic method |
||
49 | * |
||
50 | * @return string the line content |
||
51 | */ |
||
52 | public function __toString() |
||
56 | |||
57 | /** |
||
58 | * type setter |
||
59 | * |
||
60 | * @param string $type line type |
||
61 | */ |
||
62 | 2 | public function setType($type) |
|
66 | |||
67 | /** |
||
68 | * type getter |
||
69 | * |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function getType() |
||
76 | |||
77 | /** |
||
78 | * content setter |
||
79 | * |
||
80 | * @param string $content line content |
||
81 | */ |
||
82 | 2 | public function setContent($content) |
|
86 | |||
87 | /** |
||
88 | * content getter |
||
89 | * |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function getContent() |
||
96 | } |
||
97 |