PHP Interface ApiPlatform\Core\Api\ResourceClassResolverInterface

Author: Kévin Dunglas ([email protected])
Show file Open project: api-platform/core

Public Methods

Method Description
getResourceClass ( mixed $value, string $resourceClass = null, boolean $strict = false ) : string Guesses the associated resource.
isResourceClass ( string $type ) : boolean Is the given class a resource class?

Method Details

getResourceClass() public method

Guesses the associated resource.
public getResourceClass ( mixed $value, string $resourceClass = null, boolean $strict = false ) : string
$value mixed
$resourceClass string
$strict boolean
return string

isResourceClass() public method

Is the given class a resource class?
public isResourceClass ( string $type ) : boolean
$type string
return boolean