. */ namespace SP\Domain\File\Ports; use Directory; use SP\Domain\Core\Exceptions\CheckException; /** * Interface DirectoryHandlerService */ interface DirectoryHandlerService { /** * @throws CheckException */ public function checkOrCreate(): void; public function isDir(): bool; public function create(int $permissions = 0750): bool; public function isWritable(): bool; /** * @throws CheckException */ public function getDir(): Directory; public function getPath(): string; }