public function setResponse(iterable $response): ResponseSelector
    {
        if (!$response instanceof Collection) {
            $response = new Collection($response);
        }

        $this->response = $response;

        return $this;
    }
public function setResponse(iterable $response): ResponseSelector
    {
        if (!$response instanceof Collection) {
            $response = new Collection($response);
        }

        $this->response = $response;

        return $this;
    }
public function setResponse ( iterable $ response ) : ResponseSelector { if ( ! $ response instanceof Collection ) { $ response = new Collection ( $ response ) ; } $ this -> response = $ response ; return $ this ; }
Sets the current response array

@param iterable $response
@return $this
Sets the current response array