destFolder = $destFolder; $this->width = $width; $this->height = $height; $this->keywords = $keywords; } /** * @return string */ public function getFolder(): string { return $this->destFolder; } /** * @return int */ public function getWidth(): int { return $this->width; } /** * @return int */ public function getHeight(): int { return $this->height; } /** * @param string $prefix * @param string $suffix * * @return string|null */ public function getKeyword(string $prefix = '', string $suffix = ''): ?string { if (count($this->keywords) === 0) { return null; } return $prefix . Arr::random($this->keywords) . $suffix; } }