PHP 인터페이스 Flugg\Responder\Contracts\Transformable

저자: Alexander Tømmerås ([email protected])
파일 보기 프로젝트 열기: flugger/laravel-responder

공개 메소드들

메소드 설명
getRelations ( ) : string Get the table associated with the model.
getTable ( ) : string Get the table associated with the model.
relationLoaded ( string $key ) : boolean Determine if the given relation is loaded.
toArray ( ) : array Convert the model instance to an array.
transformer ( ) : string The path to the transformer class.

메소드 상세

getRelations() 공개 메소드

Get the table associated with the model.
public getRelations ( ) : string
리턴 string

getTable() 공개 메소드

Get the table associated with the model.
public getTable ( ) : string
리턴 string

relationLoaded() 공개 메소드

Determine if the given relation is loaded.
public relationLoaded ( string $key ) : boolean
$key string
리턴 boolean

toArray() 공개 메소드

Convert the model instance to an array.
public toArray ( ) : array
리턴 array

transformer() 공개 정적인 메소드

The path to the transformer class.
public static transformer ( ) : string
리턴 string