| 1 | <?php |
||
| 14 | abstract class AbstractFileContent implements ValueObjectInterface |
||
| 15 | { |
||
| 16 | /* |
||
| 17 | * @var ValueObjectInterface |
||
| 18 | */ |
||
| 19 | protected $content; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param Stringy $content |
||
| 23 | */ |
||
| 24 | 3 | public function __construct(Stringy $content) |
|
| 25 | { |
||
| 26 | 3 | $this->content = $content; |
|
| 27 | 3 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @return Stringy Raw content |
||
| 31 | */ |
||
| 32 | 3 | public function getValue() |
|
| 33 | { |
||
| 34 | 3 | return clone $this->content; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function __toString() |
||
| 44 | |||
| 45 | } |
||
| 46 |