title; } /** * Setter for the title of the file mount. */ public function setTitle(string $value): void { $this->title = $value; } /** * Getter for the description of the file mount. */ public function getDescription(): string { return $this->description; } /** * Setter for the description of the file mount. */ public function setDescription(string $description): void { $this->description = $description; } /** * Setter for the readOnly property of the file mount. */ public function setReadOnly(bool $readOnly): void { $this->readOnly = $readOnly; } /** * Getter for the readOnly property of the file mount. */ public function isReadOnly(): bool { return $this->readOnly; } public function getIdentifier(): string { return $this->identifier; } public function setIdentifier(string $identifier): void { $this->identifier = $identifier; } public function isHidden(): bool { return $this->hidden; } public function setHidden(bool $hidden): void { $this->hidden = $hidden; } /** * returns the path segment of the file mount (without the storage id) */ public function getPath(): string { return explode(':/', $this->identifier)[1] ?? ''; } /** * @todo This should be part of the ORM not the model class */ public function getStorage(): ?ResourceStorage { return GeneralUtility::makeInstance(StorageRepository::class)->findByCombinedIdentifier($this->identifier); } }