private function composeResult(EAccount $acc)
    {
        /** define local working data */
        $accId = $acc->getId();
        $custId = $acc->getCustomerId();
        $balance = $acc->getBalance();
        $typeId = $acc->getAssetTypeId();

        /** compose result */
        $result = new AResponse();
        $result->setId($accId);
        $result->setCustomerId($custId);
        $result->setBalance($balance);
        $result->setAssetTypeId($typeId);
        return $result;
    }
private function composeResult(EAccount $acc)
    {
        /** define local working data */
        $accId = $acc->getId();
        $custId = $acc->getCustomerId();
        $balance = $acc->getBalance();
        $typeId = $acc->getAssetTypeId();

        /** compose result */
        $result = new AResponse();
        $result->setId($accId);
        $result->setCustomerId($custId);
        $result->setBalance($balance);
        $result->setAssetTypeId($typeId);
        return $result;
    }
private function composeResult ( EAccount $ acc ) { /** define local working data */ $ accId = $ acc -> getId ( ) ; $ custId = $ acc -> getCustomerId ( ) ; $ balance = $ acc -> getBalance ( ) ; $ typeId = $ acc -> getAssetTypeId ( ) ; /** compose result */ $ result = new AResponse ( ) ; $ result -> setId ( $ accId ) ; $ result -> setCustomerId ( $ custId ) ; $ result -> setBalance ( $ balance ) ; $ result -> setAssetTypeId ( $ typeId ) ; return $ result ; }
Perform DB to API data conversion directly.

@param \Praxigento\Accounting\Repo\Data\Account $acc
@return \Praxigento\Accounting\Api\Service\Account\Get\Response
Perform DB to API data conversion directly .