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