private function assembleRouteParams() : array
    {
        $params = [
            'version' => $this->version,
            'resource' => $this->resource,
        ];

        if ($this->id !== null) {
            $params['id'] = $this->id;
        }

        if ($this->relationship !== null) {
            $params['relationship'] = $this->relationship;
        }

        if ($this->relatedId !== null) {
            $params['parameter'] = $this->relatedId;
        }

        return $params;
    }
private function assembleRouteParams() : array
    {
        $params = [
            'version' => $this->version,
            'resource' => $this->resource,
        ];

        if ($this->id !== null) {
            $params['id'] = $this->id;
        }

        if ($this->relationship !== null) {
            $params['relationship'] = $this->relationship;
        }

        if ($this->relatedId !== null) {
            $params['parameter'] = $this->relatedId;
        }

        return $params;
    }
private function assembleRouteParams ( ) : array { $ params = [ 'version' => $ this -> version , 'resource' => $ this -> resource , ] ; if ( $ this -> id !== null ) { $ params [ 'id' ] = $ this -> id ; } if ( $ this -> relationship !== null ) { $ params [ 'relationship' ] = $ this -> relationship ; } if ( $ this -> relatedId !== null ) { $ params [ 'parameter' ] = $ this -> relatedId ; } return $ params ; }
assembles route params

@return array
assembles route params