Notification Eldorado
All checks were successful
Push image to registry / build-image (push) Successful in 4m2s
All checks were successful
Push image to registry / build-image (push) Successful in 4m2s
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Browser\Jobs\HellcaseBattles;
|
||||
|
||||
use App\Notification\NotificationBody;
|
||||
|
||||
class EldoradoRobuxPriceNotificationBody extends NotificationBody {
|
||||
|
||||
private float $price;
|
||||
private float $threshold;
|
||||
private string $link;
|
||||
|
||||
public function __construct(float $price, float $threshold, string $link) {
|
||||
parent::__construct();
|
||||
|
||||
$this->price = $price;
|
||||
$this->threshold = $threshold;
|
||||
$this->link = $link;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function toMarkdownString(): string {
|
||||
return "Le prix des Robux sur Eldorado est actuellement de **" . number_format($this->price, 7, ",", " ") . " €**/Robux, ce qui est inférieur ou égal au seuil de **" . number_format($this->threshold, 5, ",", " ") . " €**.\n\n[Voir l'offre sur Eldorado]( " . $this->link . " )";
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function toString(): string {
|
||||
return "Le prix des Robux sur Eldorado est actuellement de " . number_format($this->price, 7, ",", " ") . " €/Robux, ce qui est inférieur ou égal au seuil de " . number_format($this->threshold, 5, ",", " ") . " €.\n\nVoir l'offre sur Eldorado : " . $this->link;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user