PHP Interface Flugg\Responder\Contracts\Transformable

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

Public Methods

Method 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 method

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

getTable() public method

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

relationLoaded() public method

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

toArray() public method

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

transformer() public static method

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