| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | abstract class Volume implements \JsonSerializable |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | protected $source; |
||
| 9 | /** @var null|string */ |
||
| 10 | protected $comment; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Volume constructor. |
||
| 14 | * @param string $source |
||
| 15 | * @param null|string $comment |
||
| 16 | */ |
||
| 17 | public function __construct(string $source, ?string $comment = null) |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function getSource(): string |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return null|string |
||
| 33 | */ |
||
| 34 | public function getComment(): ?string |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | abstract public function getType(): string; |
||
| 43 | } |
||
| 44 |