Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
UploadRequest.php
1<?php
2
4
6{
7 protected string $name;
8 protected string $contentType = '';
9 protected int $size = 0;
10 protected int $width = 0;
11 protected int $height = 0;
12
13 public function __construct(string $name, string $contentType, int $size)
14 {
15 $this->name = $name;
16 $this->contentType = $contentType;
17 $this->size = $size;
18 }
19
20 public function getName(): string
21 {
22 return $this->name;
23 }
24
25 public function getContentType(): string
26 {
27 return $this->contentType;
28 }
29
30 public function getSize(): int
31 {
32 return $this->size;
33 }
34
35 public function getWidth(): int
36 {
37 return $this->width;
38 }
39
40 public function setWidth(int $width): void
41 {
42 $this->width = $width;
43 }
44
45 public function getHeight(): int
46 {
47 return $this->height;
48 }
49
50 public function setHeight(int $height): void
51 {
52 $this->height = $height;
53 }
54}
__construct(string $name, string $contentType, int $size)