Builds a PSR7 request from a service definition.

CloneableInstantiable
Methods
public __construct( $servicePath, $baseUri, array $resourceRoot = [])
 
    public build( $resource, $method, array $options = [])
     

    Build the request.

    • return RequestInterface
    • todo complexity high, revisit
    • todo consider validating against the schemas
    public buildUriWithQuery( $uri, array $query)
     
    • return UriInterface
    public expandUri( $uri, array $variables)
     
    • return string
    • todo look at returning UriInterface
    Properties
    private $baseUri
     
    • var string
    private $resourceRoot
     
    • var array
    private $service
     
    • var array
    private $servicePath
     
    • var string
    Methods
    private static jsonDecode( $json, $assoc = false, $depth = 512, $options = 0)
     
    • return mixed
    • throws InvalidArgumentException
    private static jsonEncode( $value, $options = 0, $depth = 512)
     
    • return string
    • throws InvalidArgumentException
    private loadServiceDefinition( $servicePath)
     
    • return array
    Methods
    private static jsonDecode( $json, $assoc = false, $depth = 512, $options = 0)
     
    • return mixed
    • throws InvalidArgumentException
    private static jsonEncode( $value, $options = 0, $depth = 512)
     
    • return string
    • throws InvalidArgumentException
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only