PHP Класс Tobscure\JsonApi\AbstractSerializer

Автор: Toby Zerner ([email protected])
Наследование: implements Tobscure\JsonApi\SerializerInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$type string The type.

Открытые методы

Метод Описание
getAttributes ( $model, array $fields = null )
getId ( $model )
getLinks ( $model )
getMeta ( $model )
getRelationship ( $model, $name )
getType ( $model )

Приватные методы

Метод Описание
getRelationshipMethodName ( string $name ) : string Get the serializer method name for the given relationship.

Описание методов

getAttributes() публичный Метод

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

getId() публичный Метод

public getId ( $model )

getMeta() публичный Метод

public getMeta ( $model )

getRelationship() публичный Метод

public getRelationship ( $model, $name )

getType() публичный Метод

public getType ( $model )

Описание свойств

$type защищенное свойство

The type.
protected string $type
Результат string