public function getFundingData()
    {
        $funding = $this->getFunding();

        if (!$funding) {
            return array();
        }

        $data = array(
            'accountNumber' => $funding->getAccountNumber(),
            'descriptor' => $funding->getDescriptor(),
            'destination' => $funding->getDestination(),
            'email' => $funding->getEmail(),
            'mobilePhone' => $funding->getMobilePhone(),
            'routingNumber' =>  $funding->getRoutingNumber(),
        );

        // Remove null values
        $data = array_filter($data, function($value){
            return ! is_null($value);
        });

        if (empty($data)) {
            return $data;
        } else {
            return array('funding' => $data);
        }
    }
public function getFundingData()
    {
        $funding = $this->getFunding();

        if (!$funding) {
            return array();
        }

        $data = array(
            'accountNumber' => $funding->getAccountNumber(),
            'descriptor' => $funding->getDescriptor(),
            'destination' => $funding->getDestination(),
            'email' => $funding->getEmail(),
            'mobilePhone' => $funding->getMobilePhone(),
            'routingNumber' =>  $funding->getRoutingNumber(),
        );

        // Remove null values
        $data = array_filter($data, function($value){
            return ! is_null($value);
        });

        if (empty($data)) {
            return $data;
        } else {
            return array('funding' => $data);
        }
    }
public function getFundingData ( ) { $ funding = $ this -> getFunding ( ) ; if ( ! $ funding ) { return array ( ) ; } $ data = array ( 'accountNumber' => $ funding -> getAccountNumber ( ) , 'descriptor' => $ funding -> getDescriptor ( ) , 'destination' => $ funding -> getDestination ( ) , 'email' => $ funding -> getEmail ( ) , 'mobilePhone' => $ funding -> getMobilePhone ( ) , 'routingNumber' => $ funding -> getRoutingNumber ( ) , ) ; // Remove null values $ data = array_filter ( $ data , function ( $ value ) { return ! is_null ( $ value ) ; } ) ; if ( empty ( $ data ) ) { return $ data ; } else { return array ( 'funding' => $ data ) ; } }
Get the funding data.

@return array
Get the funding data .