app/Transformers/AccountingReportConfigurationTransformer.php
/**
     * @param AccountingReportConfiguration $reportConfiguration
     *
     * @return \League\Fractal\Resource\Collection|null
     */
@param AccountingReportConfiguration $reportConfiguration
@return \League\Fractal\Resource\Collection|null
@param AccountingReportConfiguration $reportConfiguration @return \ League \ Fractal \ Resource \ Collection|null
public function includeAccounts(AccountingReportConfiguration $reportConfiguration)
    {
        $accounts = $reportConfiguration->accounts;
        if (empty($accounts)) {
            return null;
        }
        return $this->collection($accounts, new AccountingAccountTransformer(), 'account');
    }
public function includeAccounts ( AccountingReportConfiguration $ reportConfiguration ) { $ accounts = $ reportConfiguration -> accounts ; if ( empty ( $ accounts ) ) { return null ; } return $ this -> collection ( $ accounts , new AccountingAccountTransformer ( ) , 'account' ) ; }
@param AccountingReportConfiguration $reportConfiguration
 @return \League\Fractal\Resource\Collection|null
@param AccountingReportConfiguration $reportConfiguration @return \ League \ Fractal \ Resource \ Collection|null
# get the accounts