| Total Complexity | 6 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class BindVolume extends Volume |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $target; |
||
| 11 | /** @var bool */ |
||
| 12 | private $readOnly; |
||
| 13 | |||
| 14 | public function __construct(string $source, string $target, bool $readOnly = false, ?string $comment = null) |
||
| 15 | { |
||
| 16 | parent::__construct($source, $comment); |
||
| 17 | $this->target = $target; |
||
| 18 | $this->readOnly = $readOnly; |
||
| 19 | $this->comment = $comment; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getType(): string |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function getSource(): string |
||
| 31 | { |
||
| 32 | return $this->source; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getTarget(): string |
||
| 38 | } |
||
| 39 | |||
| 40 | public function isReadOnly(): bool |
||
| 41 | { |
||
| 42 | return $this->readOnly; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Specify data which should be serialized to JSON |
||
| 47 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
| 48 | * @return array data which can be serialized by <b>json_encode</b>, |
||
| 49 | * which is a value of any type other than a resource. |
||
| 50 | * @since 5.4.0 |
||
| 51 | */ |
||
| 52 | public function jsonSerialize(): array |
||
| 62 | }); |
||
| 63 | } |
||
| 64 | } |
||
| 65 |