public function __toString() { $command = 'AT*' . $this->type . '=' . $this->sequence; if (count($this->args) > 0) { $command .= ',' . implode(',', $this->args); } $command .= "\r"; return $command; }