| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class BindVolume extends Volume |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | private $target; |
||
| 11 | /** @var bool */ |
||
| 12 | protected $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) |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public static function getType(): string |
||
| 33 | } |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Specify data which should be serialized to JSON |
||
| 38 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
| 39 | * @return array data which can be serialized by <b>json_encode</b>, |
||
| 40 | * which is a value of any type other than a resource. |
||
| 41 | * @since 5.4.0 |
||
| 42 | */ |
||
| 43 | public function jsonSerialize(): array |
||
| 53 |