PHP Class App\Ninja\Transformers\EntityTransformer

Inheritance: extends League\Fractal\TransformerAbstract
Mostra file Open project: hillelcoren/invoice-ninja Class Usage Examples

Protected Properties

Property Type Description
$account
$serializer

Public Methods

Method Description
__construct ( App\Models\Account $account = null, $serializer = null )
getDefaultIncludes ( )

Protected Methods

Method Description
getDefaults ( $entity )
getTimestamp ( $date )
includeCollection ( $data, $transformer, $entityType )
includeItem ( $data, $transformer, $entityType )

Method Details

__construct() public method

public __construct ( App\Models\Account $account = null, $serializer = null )
$account App\Models\Account

getDefaultIncludes() public method

public getDefaultIncludes ( )

getDefaults() protected method

protected getDefaults ( $entity )

getTimestamp() protected method

protected getTimestamp ( $date )

includeCollection() protected method

protected includeCollection ( $data, $transformer, $entityType )

includeItem() protected method

protected includeItem ( $data, $transformer, $entityType )

Property Details

$account protected_oe property

protected $account

$serializer protected_oe property

protected $serializer