| Total Complexity | 2 | 
| Total Lines | 23 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 7 | class TmpfsVolume extends Volume | ||
| 8 | { | ||
| 9 | /** | ||
| 10 | * BindVolume constructor. | ||
| 11 | * @param string $source | ||
| 12 | */ | ||
| 13 | public function __construct(string $source) | ||
| 14 |     { | ||
| 15 | parent::__construct(VolumeTypeEnum::TMPFS_VOLUME, $source); | ||
| 16 | } | ||
| 17 | |||
| 18 | /** | ||
| 19 | * Specify data which should be serialized to JSON | ||
| 20 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php | ||
| 21 | * @return array data which can be serialized by <b>json_encode</b>, | ||
| 22 | * which is a value of any type other than a resource. | ||
| 23 | * @since 5.4.0 | ||
| 24 | */ | ||
| 25 | public function jsonSerialize(): array | ||
| 30 | ); | ||
| 31 | } | ||
| 33 |