src/Resource/Balances.php
protected function populate(stdClass $response)
    {
        $balances = clone $this;
        $balances->data->unavailable = $this->getIfSet('unavailable', $response) ?: [];
        $balances->data->future = $this->getIfSet('future', $response) ?: [];
        $balances->data->current = $this->getIfSet('current', $response) ?: [];

        return $balances;
    }
protected function populate(stdClass $response)
    {
        $balances = clone $this;
        $balances->data->unavailable = $this->getIfSet('unavailable', $response) ?: [];
        $balances->data->future = $this->getIfSet('future', $response) ?: [];
        $balances->data->current = $this->getIfSet('current', $response) ?: [];

        return $balances;
    }
protected function populate ( stdClass $ response ) { $ balances = clone $ this ; $ balances -> data -> unavailable = $ this -> getIfSet ( 'unavailable' , $ response ) ? : [ ] ; $ balances -> data -> future = $ this -> getIfSet ( 'future' , $ response ) ? : [ ] ; $ balances -> data -> current = $ this -> getIfSet ( 'current' , $ response ) ? : [ ] ; return $ balances ; }
Populate this instance.

@param stdClass $response response object

@return mixed|Balances
Populate this instance .