/** * IncomingSMS constructor. * * @param int $opiloId * @param string $from * @param string $to * @param string $text * @param DateTime $receivedAt */ public function __construct($opiloId, $from, $to, $text, DateTime $receivedAt) { parent::__construct($from, $to, $text); $this->receivedAt = $receivedAt; $this->opiloId = $opiloId; }
/** * SMS constructor. * * @param string $from * @param string $to * @param string $text * @param string|null $userDefinedId * @param null|DateTime $sendAt */ public function __construct($from, $to, $text, $userDefinedId = null, $sendAt = null) { parent::__construct($from, $to, $text); $this->userDefinedId = $userDefinedId; $this->sendAt = $sendAt; }