PHP 인터페이스 Tobscure\JsonApi\SerializerInterface

저자: Toby Zerner ([email protected])
파일 보기 프로젝트 열기: tobscure/json-api 0 사용 예제들

공개 메소드들

메소드 설명
getAttributes ( mixed $model, array $fields = null ) : array Get the attributes array.
getId ( mixed $model ) : string Get the id.
getLinks ( mixed $model ) : array Get the links array.
getMeta ( mixed $model ) : array Get the meta.
getRelationship ( mixed $model, string $name ) : Relationship | null Get a relationship.
getType ( mixed $model ) : string Get the type.

메소드 상세

getAttributes() 공개 메소드

Get the attributes array.
public getAttributes ( mixed $model, array $fields = null ) : array
$model mixed
$fields array
리턴 array

getId() 공개 메소드

Get the id.
public getId ( mixed $model ) : string
$model mixed
리턴 string

getMeta() 공개 메소드

Get the meta.
public getMeta ( mixed $model ) : array
$model mixed
리턴 array

getRelationship() 공개 메소드

Get a relationship.
public getRelationship ( mixed $model, string $name ) : Relationship | null
$model mixed
$name string
리턴 Relationship | null

getType() 공개 메소드

Get the type.
public getType ( mixed $model ) : string
$model mixed
리턴 string