Esempio n. 1
0
 /**
  * Set time
  *
  * @param string $time Time
  *
  * @return Schedule Self object
  */
 public function setTime($time)
 {
     // Init command
     $command = new SetScheduleAttributes($this);
     // Build new time
     $time = $command->convertTimeToUtcDate($time);
     // Update the time, and set internal attribute
     $this->client->sendCommand($command->time($time));
     $this->attributes->time = $time;
     return $this;
 }
Esempio n. 2
0
 /**
  * Set time
  *
  * @param string $time
  *            Time
  *
  * @return self This object
  */
 public function setTime($time)
 {
     // $this->client->sendCommand(
     // (new SetScheduleAttributes($this))
     // ->time($time)
     // );
     $x = new SetScheduleAttributes($this);
     $y = $x->time($time);
     $this->client->sendCommand($y);
     $this->attributes->time = (string) $time;
     return $this;
 }