mimeType = $mimeType; $this->size = $size; $this->width = $width; $this->height = $height; $this->duration = $duration; $this->url = $url; $this->name = $name; } /** * Full URL to the contents of the file * @return string */ public function getUrl(): string { return $this->url; } /** * Width of the representation in pixels or null if not applicable * @return int|null */ public function getWidth(): ?int { return $this->width; } /** * Height of the representation in pixels or null if not applicable * @return int|null */ public function getHeight(): ?int { return $this->height; } /** * Internet mime type for the representation, like "image/png" or "audio/mp3" * @return string */ public function getMimeType(): string { return $this->mimeType; } /** * Size of the representation in bytes or null if not applicable * @return int|null */ public function getSize(): ?int { return $this->size; } /** * Duration of the representation in seconds or null if not applicable * @return int|null */ public function getDuration(): ?int { return $this->duration; } /** * String that represent file indentity in storage or null * @return string|null */ public function getName(): ?string { return $this->name; } }