| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | abstract class Volume implements \JsonSerializable |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | protected $type; |
||
| 9 | /** @var string */ |
||
| 10 | protected $source; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Volume constructor. |
||
| 14 | * @param string $type |
||
| 15 | * @param string $source |
||
| 16 | */ |
||
| 17 | public function __construct(string $type, string $source) |
||
| 18 | { |
||
| 19 | $this->type = $type; |
||
| 20 | $this->source = $source; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function getType(): string |
||
| 27 | { |
||
| 28 | return $this->type; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $type |
||
| 33 | */ |
||
| 34 | public function setType(string $type): void |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getSource(): string |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $source |
||
| 49 | */ |
||
| 50 | public function setSource(string $source): void |
||
| 53 | } |
||
| 54 | } |
||
| 55 |