PHP Class App\Ninja\Transformers\ClientTransformer

Inheritance: extends EntityTransformer
显示文件 Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$availableIncludes array
$defaultIncludes

Public Methods

Method Description
includeContacts ( Client $client ) : League\Fractal\Resource\Collection
includeCredits ( Client $client ) : League\Fractal\Resource\Collection
includeExpenses ( Client $client ) : League\Fractal\Resource\Collection
includeInvoices ( Client $client ) : League\Fractal\Resource\Collection
transform ( Client $client ) : array

Method Details

includeContacts() public method

public includeContacts ( Client $client ) : League\Fractal\Resource\Collection
$client app\models\Client
return League\Fractal\Resource\Collection

includeCredits() public method

public includeCredits ( Client $client ) : League\Fractal\Resource\Collection
$client app\models\Client
return League\Fractal\Resource\Collection

includeExpenses() public method

public includeExpenses ( Client $client ) : League\Fractal\Resource\Collection
$client app\models\Client
return League\Fractal\Resource\Collection

includeInvoices() public method

public includeInvoices ( Client $client ) : League\Fractal\Resource\Collection
$client app\models\Client
return League\Fractal\Resource\Collection

transform() public method

public transform ( Client $client ) : array
$client app\models\Client
return array

Property Details

$availableIncludes protected_oe property

protected array $availableIncludes
return array

$defaultIncludes protected_oe property

protected $defaultIncludes