Classes
BazingaHateoasModelDescriber
in package
implements
ModelDescriberInterface, ModelRegistryAwareInterface
Uses
ModelRegistryAwareTrait
Interfaces, Classes and Traits
Table of Contents
- $factory : mixed
- $JMSModelDescriber : mixed
- $modelRegistry : ModelRegistry
- __construct() : mixed
- describe() : void
- setModelRegistry() : mixed
- supports() : bool
- getHateoasMetadata() : mixed
- setAttributeProperties() : void
Properties
$factory
private
mixed
$factory
$JMSModelDescriber
private
mixed
$JMSModelDescriber
$modelRegistry
private
ModelRegistry
$modelRegistry
Methods
__construct()
public
__construct(MetadataFactoryInterface $factory, JMSModelDescriber $JMSModelDescriber) : mixed
Parameters
- $factory : MetadataFactoryInterface
- $JMSModelDescriber : JMSModelDescriber
Return values
mixed —describe()
public
describe(Model $model, Schema $schema) : void
Parameters
- $model : Model
- $schema : Schema
Return values
void —setModelRegistry()
public
setModelRegistry(ModelRegistry $modelRegistry) : mixed
Parameters
- $modelRegistry : ModelRegistry
Return values
mixed —supports()
public
supports(Model $model) : bool
Parameters
- $model : Model
Return values
bool —getHateoasMetadata()
private
getHateoasMetadata(Model $model) : mixed
Parameters
- $model : Model
Return values
mixed —setAttributeProperties()
private
setAttributeProperties(Relation $relation, Property $subProperty) : void
Parameters
- $relation : Relation
- $subProperty : Property