PHP Class Tobscure\JsonApi\AbstractSerializer

Author: Toby Zerner ([email protected])
Inheritance: implements Tobscure\JsonApi\SerializerInterface
Afficher le fichier Open project: tobscure/json-api Class Usage Examples

Protected Properties

Свойство Type Description
$type string The type.

Méthodes publiques

Méthode Description
getAttributes ( $model, array $fields = null )
getId ( $model )
getLinks ( $model )
getMeta ( $model )
getRelationship ( $model, $name )
getType ( $model )

Private Methods

Méthode Description
getRelationshipMethodName ( string $name ) : string Get the serializer method name for the given relationship.

Method Details

getAttributes() public méthode

public getAttributes ( $model, array $fields = null )
$fields array

getId() public méthode

public getId ( $model )

getMeta() public méthode

public getMeta ( $model )

getRelationship() public méthode

public getRelationship ( $model, $name )

getType() public méthode

public getType ( $model )

Property Details

$type protected_oe property

The type.
protected string $type
Résultat string