diff --git a/src/tabs/apiclient/Collection.php b/src/tabs/apiclient/Collection.php index 3f11876..1d2f067 100644 --- a/src/tabs/apiclient/Collection.php +++ b/src/tabs/apiclient/Collection.php @@ -90,15 +90,23 @@ public function fetch() } /** - * @inheritDoc + * @deprecated Deprecated in favour of filter() */ public function findBy(callable $fn) + { + return $this->filter($fn); + } + + /** + * @inheritDoc + */ + public function filter(callable $fn) { if (!$this->isFetched()) { $this->fetch(); } - return parent::findBy($fn); + return parent::filter($fn); } /**