price = $price; $this->priceThreshold = $priceThreshold; $this->stock = $stock; $this->stockThreshold = $stockThreshold; $this->link = $link; $this->setBody($this->generateBody()); } private function generateBody() { return new EldoradoRobuxPriceNotificationBody($this->price, $this->priceThreshold, $this->stock, $this->stockThreshold, $this->link); } public function getTitle(): Stringifiable { return new StringifiableSimpleText("Alerte Robux Eldorado 🤑"); } /** * @inheritDoc */ public function getImageProjectPath(): string|null { return null; } /** * @inheritDoc */ public function getLinkURL(): string|null { return $this->link; } }