Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
unsatisfiableness
/
core
/
lib
/
mollie
/
src
/
Resources
:
MandateCollection.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Mollie\Api\Resources; class MandateCollection extends \Mollie\Api\Resources\CursorCollection { /** * @return string */ public function getCollectionResourceName() { return "mandates"; } /** * @return BaseResource */ protected function createResourceObject() { return new \Mollie\Api\Resources\Mandate($this->client); } /** * @param string $status * @return array|\Mollie\Api\Resources\MandateCollection */ public function whereStatus($status) { $collection = new self($this->client, $this->count, $this->_links); foreach ($this as $item) { if ($item->status === $status) { $collection[] = $item; } } return $collection; } }