author = $author; $this->content = $content; $this->persistent = $persistent; } /** * Return this comment's properties as list of command parameters * * @param bool $ignorePersistentFlag Whether the persistent flag should be included or not * @return array */ public function getArguments($ignorePersistentFlag = false) { if ($ignorePersistentFlag) { return array($this->author, $this->content); } else { return array($this->persistent ? '1' : '0', $this->author, $this->content); } } }