src/Request/Api/BaseRequest.php
public function requestOptions(): array
    {
        /**
         * Don't set any JSON if it's a get request
         */
        if ($this->requestType()->is(RequestType::HTTP_GET())) {
            return [];
        }
        $options = [
            RequestOptions::JSON => $this->toArray(),
        ];

        return $options;
    }
public function requestOptions(): array
    {
        /**
         * Don't set any JSON if it's a get request
         */
        if ($this->requestType()->is(RequestType::HTTP_GET())) {
            return [];
        }
        $options = [
            RequestOptions::JSON => $this->toArray(),
        ];

        return $options;
    }
public function requestOptions ( ) : array { /**
         * Don't set any JSON if it's a get request
         */ if ( $ this -> requestType ( ) -> is ( RequestType :: HTTP_GET ( ) ) ) { return [ ] ; } $ options = [ RequestOptions :: JSON => $ this -> toArray ( ) , ] ; return $ options ; }
Options for this request to be used by the client.

@throws \ReflectionException

@return array
Options for this request to be used by the client .