Phue\Schedule::setCommand PHP Method

setCommand() public method

Set command
public setCommand ( Phue\Command\ActionableInterface $command ) : self
$command Phue\Command\ActionableInterface Actionable command
return self This object
    public function setCommand(ActionableInterface $command)
    {
        $x = new SetScheduleAttributes($this);
        $y = $x->command($command);
        $this->client->sendCommand($y);
        $this->attributes->command = $command->getActionableParams($this->client);
        return $this;
    }