Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * 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;
 }