Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
directoryentry.php
1<?php
2
3declare(strict_types=1);
4
6
7final class DirectoryEntry implements EntryInterface
8{
9 private const DIRECTORY_PATH = '@directory';
10 private string $path;
11
12 private function __construct(string $path)
13 {
14 $this->path = $path;
15 }
16
17 public static function createEmptyDirectory(string $path): self
18 {
19 return new self($path);
20 }
21
22 public function getPath(): string
23 {
24 return $this->path;
25 }
26
27 public function getSize(): int
28 {
29 return 0;
30 }
31
32 public function getServerRelativeUrl(): string
33 {
34 return self::DIRECTORY_PATH;
35 }
36
37 public function getCrc32(): string
38 {
39 return '0';
40 }
41}
getPath()
getServerRelativeUrl()
getCrc32()
getSize()
static createEmptyDirectory(string $path)