client, $count, $_links); } /** * @inheritDoc */ protected function getResourceObject() { return new \Mollie\Api\Resources\Payment($this->client); } public function pageForId(string $paymentLinkId, ?string $from = null, ?int $limit = null, array $filters = []) { $this->parentId = $paymentLinkId; return $this->rest_list($from, $limit, $filters); } public function pageFor(\Mollie\Api\Resources\PaymentLink $paymentLink, ?string $from = null, ?int $limit = null, array $filters = []) { return $this->pageForId($paymentLink->id, $from, $limit, $filters); } /** * Create an iterator for iterating over payments associated with the provided Payment Link id, retrieved from Mollie. * * @param string $paymentLinkId * @param string|null $from The first resource ID you want to include in your list. * @param int|null $limit * @param array $parameters * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). * * @return LazyCollection */ public function iteratorForId(string $paymentLinkId, ?string $from = null, ?int $limit = null, array $parameters = [], bool $iterateBackwards = \false) : \Mollie\Api\Resources\LazyCollection { $this->parentId = $paymentLinkId; return $this->rest_iterator($from, $limit, $parameters, $iterateBackwards); } /** * Create an iterator for iterating over payments associated with the provided Payment Link object, retrieved from Mollie. * * @param PaymentLink $paymentLink * @param string|null $from The first resource ID you want to include in your list. * @param int|null $limit * @param array $parameters * @param bool $iterateBackwards Set to true for reverse order iteration (default is false). * * @return LazyCollection */ public function iteratorFor(\Mollie\Api\Resources\PaymentLink $paymentLink, ?string $from = null, ?int $limit = null, array $parameters = [], bool $iterateBackwards = \false) : \Mollie\Api\Resources\LazyCollection { return $this->iteratorForId($paymentLink->id, $from, $limit, $parameters, $iterateBackwards); } }