| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class BucketInfo implements BucketInfoInterface |
||
| 18 | { |
||
| 19 | use OptionsTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $name; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | public $server; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var FileSystemInfoInterface|null |
||
| 33 | */ |
||
| 34 | protected $fileSystemInfo = null; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $name |
||
| 38 | * @param string $server |
||
| 39 | * @param array $info |
||
| 40 | */ |
||
| 41 | public function __construct(string $name, string $server, array $info = []) |
||
| 42 | { |
||
| 43 | $this->name = $name; |
||
| 44 | $this->server = $server; |
||
| 45 | |||
| 46 | if (array_key_exists(static::OPTIONS_KEY, $info)) { |
||
| 47 | $this->options = $info[static::OPTIONS_KEY]; |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @inheritDoc |
||
| 53 | */ |
||
| 54 | public function getServer(): string |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @inheritDoc |
||
| 61 | */ |
||
| 62 | public function setFileSystemInfo(FileSystemInfoInterface $fileSystemInfo): BucketInfoInterface |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @inheritDoc |
||
| 71 | */ |
||
| 72 | public function getFileSystemInfo(): ?FileSystemInfoInterface |
||
| 77 |