| Total Complexity | 5 | 
| Total Lines | 59 | 
| 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 | /**  | 
            ||
| 15 | * BindVolume constructor.  | 
            ||
| 16 | * @param string $source  | 
            ||
| 17 | * @param bool $readOnly  | 
            ||
| 18 | * @param string $target  | 
            ||
| 19 | */  | 
            ||
| 20 | public function __construct(string $source, string $target, bool $readOnly = false)  | 
            ||
| 21 |     { | 
            ||
| 22 | parent::__construct($source);  | 
            ||
| 23 | $this->target = $target;  | 
            ||
| 24 | $this->readOnly = $readOnly;  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * @return string  | 
            ||
| 29 | */  | 
            ||
| 30 | public function getType(): string  | 
            ||
| 31 |     { | 
            ||
| 32 | return VolumeTypeEnum::BIND_VOLUME;  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @return string  | 
            ||
| 37 | */  | 
            ||
| 38 | public function getTarget(): string  | 
            ||
| 39 |     { | 
            ||
| 40 | return $this->target;  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | /**  | 
            ||
| 44 | * @return bool  | 
            ||
| 45 | */  | 
            ||
| 46 | public function isReadOnly(): bool  | 
            ||
| 49 | }  | 
            ||
| 50 | |||
| 51 | |||
| 52 | /**  | 
            ||
| 53 | * Specify data which should be serialized to JSON  | 
            ||
| 54 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php  | 
            ||
| 55 | * @return array data which can be serialized by <b>json_encode</b>,  | 
            ||
| 56 | * which is a value of any type other than a resource.  | 
            ||
| 57 | * @since 5.4.0  | 
            ||
| 58 | */  | 
            ||
| 59 | public function jsonSerialize(): array  | 
            ||
| 69 |