public function setAutoDelete($flag) { $x = new SetScheduleAttributes($this); $y = $x->autodelete((bool) $flag); $this->client->sendCommand($y); $this->attributes->autodelete = (bool) $flag; return $this; }