public function setExclude($pattern, $flags = null) { if (is_null($flags)) { return $this->setParam('exclude', $pattern); } return $this->setParam('exclude', ['pattern' => $pattern, 'flags' => $flags]); }