protected function parseContent() { $contentString = strtok($this->query, '/'); $content = []; $delim = '(),'; $tok = strtok($contentString, $delim); while ($tok !== false) { $content[] = $tok; $tok = strtok($delim); } $this->contentTypes = $content; }