File: /var/www/vhost/disk-apps/alq-cali.bikenow.co/app/Jobs/Notifications/Interfaces/SendNotification.php
<?php
declare(strict_types=1);
namespace App\Jobs\Notifications\Interfaces;
use App\Jobs\Notifications\Entities\TargetTypeEnum;
use stdClass;
class SendNotification
{
private int $notificationId;
private array $onesignalId = [];
private string $message;
private stdClass $data;
private ?string $schedule;
private string $typeTarget;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct(Int $notificationId, ?array $onesignalId, string $message, $data = null, ?string $schedule = null, string $typeTarget = TargetTypeEnum::USER)
{
$this->notificationId = $notificationId;
$this->onesignalId = $onesignalId;
$this->message = $message;
$this->data = $data;
$this->schedule = $schedule;
$this->typeTarget = $typeTarget;
}
public function getNotificationId(): int
{
return $this->notificationId;
}
public function getOnesignalId(): ?array
{
return $this->onesignalId;
}
public function getMessage(): string
{
return $this->message;
}
public function getData()
{
return $this->data;
}
public function getSchedule(): ?string
{
return $this->schedule;
}
public function getTypeTarget(): string
{
return $this->typeTarget;
}
}