1 | <?php |
||
7 | class FileInfo extends Model |
||
8 | { |
||
9 | /** |
||
10 | * The unique identifier for this file. |
||
11 | */ |
||
12 | public function getId(): string |
||
16 | |||
17 | /** |
||
18 | * The ID of the user that uploaded this file. |
||
19 | */ |
||
20 | public function getUserIdd(): string |
||
24 | |||
25 | /** |
||
26 | * If this file is attached to a post, the ID of that post. |
||
27 | */ |
||
28 | public function getPostId(): string |
||
32 | |||
33 | public function getCreateAt(): integer |
||
37 | |||
38 | public function getUpdateAt(): integer |
||
42 | |||
43 | public function getDeleteAt(): integer |
||
47 | |||
48 | /** |
||
49 | * The name of the file. |
||
50 | */ |
||
51 | public function getName(): string |
||
55 | |||
56 | /** |
||
57 | * The extension at the end of the file name. |
||
58 | */ |
||
59 | public function getExtension(): string |
||
63 | |||
64 | /** |
||
65 | * The size of the file in bytes. |
||
66 | */ |
||
67 | public function getSize(): integer |
||
71 | |||
72 | /** |
||
73 | * The MIME type of the file. |
||
74 | */ |
||
75 | public function getMimeType(): string |
||
79 | |||
80 | /** |
||
81 | * If this file is an image, the width of the file. |
||
82 | */ |
||
83 | public function getWidth(): integer |
||
87 | |||
88 | /** |
||
89 | * If this file is an image, the height of the file. |
||
90 | */ |
||
91 | public function getHeight(): integer |
||
95 | |||
96 | /** |
||
97 | * If this file is an image, whether or not it has a preview-sized version. |
||
98 | */ |
||
99 | public function getHasPreviewImage(): boolean |
||
103 | |||
104 | /** |
||
105 | * {@inheritdoc} |
||
106 | */ |
||
107 | protected static function getFields() |
||
125 | } |
||
126 |