public function captures()
    {
        if (!isset($this->_links->captures->href)) {
            return new CaptureCollection($this->client, 0, null);
        }

        $result = $this->client->performHttpCallToFullUrl(
            MollieApiClient::HTTP_GET,
            $this->_links->captures->href
        );

        return ResourceFactory::createCursorResourceCollection(
            $this->client,
            $result->_embedded->captures,
            Capture::class,
            $result->_links
        );
    }
public function captures()
    {
        if (!isset($this->_links->captures->href)) {
            return new CaptureCollection($this->client, 0, null);
        }

        $result = $this->client->performHttpCallToFullUrl(
            MollieApiClient::HTTP_GET,
            $this->_links->captures->href
        );

        return ResourceFactory::createCursorResourceCollection(
            $this->client,
            $result->_embedded->captures,
            Capture::class,
            $result->_links
        );
    }
public function captures ( ) { if ( ! isset ( $ this -> _links -> captures -> href ) ) { return new CaptureCollection ( $ this -> client , 0 , null ) ; } $ result = $ this -> client -> performHttpCallToFullUrl ( MollieApiClient :: HTTP_GET , $ this -> _links -> captures -> href ) ; return ResourceFactory :: createCursorResourceCollection ( $ this -> client , $ result -> _embedded -> captures , Capture :: class , $ result -> _links ) ; }
Retrieves all captures associated with this payment

@return CaptureCollection
@throws ApiException
Retrieves all captures associated with this payment