PHP Interface Flugg\Responder\Contracts\Transformable

Author: Alexander Tømmerås ([email protected])
Afficher le fichier Open project: flugger/laravel-responder

Méthodes publiques

Méthode Description
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.

Method Details

getRelations() public méthode

Get the table associated with the model.
public getRelations ( ) : string
Résultat string

getTable() public méthode

Get the table associated with the model.
public getTable ( ) : string
Résultat string

relationLoaded() public méthode

Determine if the given relation is loaded.
public relationLoaded ( string $key ) : boolean
$key string
Résultat boolean

toArray() public méthode

Convert the model instance to an array.
public toArray ( ) : array
Résultat array

transformer() public static méthode

The path to the transformer class.
public static transformer ( ) : string
Résultat string