imageId = $imageId; $this->altText = $altText; $this->provider = $provider; $this->timestamp = time(); } /** * Get the image ID. * * @return int */ public function getImageId(): int { return $this->imageId; } /** * Get the generated alt text. * * @return string */ public function getAltText(): string { return $this->altText; } /** * Get the provider name. * * @return string */ public function getProvider(): string { return $this->provider; } /** * Get the timestamp when the event occurred. * * @return int Unix timestamp */ public function getTimestamp(): int { return $this->timestamp; } /** * Get the length of the generated alt text. * * @return int Character count */ public function getAltTextLength(): int { return mb_strlen($this->altText); } }