public function __construct(ID $id, DateTime $createdAt, DateTime $updatedAt, string $endpoint, string $title, string $description, string $url, string $image) { parent::__construct($id, $createdAt, $updatedAt); $this->endpoint = $endpoint; $this->title = $title; $this->description = $description; $this->url = $url; $this->image = $image; }
public function __construct(ID $id, DateTime $createdAt, DateTime $updatedAt, string $URLKey, string $TFLKey, string $name, string $shortName, int $displayOrder, Status $latestStatus = null) { parent::__construct($id, $createdAt, $updatedAt); $this->name = $name; $this->shortName = $shortName; $this->URLKey = $URLKey; $this->TFLKey = $TFLKey; $this->displayOrder = $displayOrder; $this->latestStatus = $latestStatus; }
public function __construct(ID $id, DateTime $createdAt, DateTime $updatedAt, bool $isDisrupted, string $shortTitle, string $title, $descriptions = null) { parent::__construct($id, $createdAt, $updatedAt); $this->isDisrupted = $isDisrupted; $this->shortTitle = $shortTitle; $this->title = $title; if (!is_null($descriptions) && !is_array($descriptions)) { $descriptions = [$descriptions]; } $this->descriptions = $descriptions; }
public function __construct(ID $id, DateTime $createdAt, DateTime $updatedAt, string $endpoint, int $day, int $startHour, int $endHour, bool $isActive, string $publicKey = null, Line $line = null) { parent::__construct($id, $createdAt, $updatedAt); $this->endpoint = $endpoint; $this->publicKey = $publicKey; $this->day = $day; $this->startHour = $startHour; $this->endHour = $endHour; $this->isActive = $isActive; $this->line = $line; }