src/Neutrino/HttpClient/Response.php
public function parse($parser)
    {
        if (is_string($parser)) {
            $parser = new $parser;
        }

        if ($parser instanceof Parserize) {
            $this->data = $parser->parse($this->body);

            return $this;
        }

        throw new \RuntimeException(__METHOD__ . ': $parserize must implement ' . Parserize::class);
    }
public function parse($parser)
    {
        if (is_string($parser)) {
            $parser = new $parser;
        }

        if ($parser instanceof Parserize) {
            $this->data = $parser->parse($this->body);

            return $this;
        }

        throw new \RuntimeException(__METHOD__ . ': $parserize must implement ' . Parserize::class);
    }
@param Parserize|string $parser

@return $this
@throws \RuntimeException