src/Resource/Refund.php
public function getIterator()
    {
        $refunds = [];
        $response = $this->httpRequest($this->getPath(), Requests::GET);
        foreach ($response->refunds as $refund) {
            $refunds[] = $this->populate($refund);
        }

        return new ArrayIterator($refunds);
    }
public function getIterator()
    {
        $refunds = [];
        $response = $this->httpRequest($this->getPath(), Requests::GET);
        foreach ($response->refunds as $refund) {
            $refunds[] = $this->populate($refund);
        }

        return new ArrayIterator($refunds);
    }
public function getIterator ( ) { $ refunds = [ ] ; $ response = $ this -> httpRequest ( $ this -> getPath ( ) , Requests :: GET ) ; foreach ( $ response -> refunds as $ refund ) { $ refunds [ ] = $ this -> populate ( $ refund ) ; } return new ArrayIterator ( $ refunds ) ; }
Get iterator.

@return \ArrayIterator
Get iterator .