Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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;
 }