From f6e7dad3649d3109ded852321aaccbfbc4b19836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Israel=20Ortu=C3=B1o?= Date: Fri, 3 Jul 2020 09:48:36 +0200 Subject: [PATCH] Add searches --- src/Resources/Deals.php | 3 ++- src/Resources/Organizations.php | 3 ++- src/Resources/Persons.php | 4 ++-- src/Resources/Products.php | 2 ++ src/Resources/Traits/{Search.php => Searches.php} | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) rename src/Resources/Traits/{Search.php => Searches.php} (96%) diff --git a/src/Resources/Deals.php b/src/Resources/Deals.php index da673ba..c99f614 100644 --- a/src/Resources/Deals.php +++ b/src/Resources/Deals.php @@ -4,12 +4,13 @@ use Devio\Pipedrive\Http\Response; use Devio\Pipedrive\Resources\Basics\Entity; +use Devio\Pipedrive\Resources\Traits\Searches; use Devio\Pipedrive\Resources\Traits\ListsProducts; use Devio\Pipedrive\Resources\Traits\ListsAttachedFiles; class Deals extends Entity { - use ListsProducts, ListsAttachedFiles; + use ListsProducts, ListsAttachedFiles, Searches; /** * Get the deals timeline. diff --git a/src/Resources/Organizations.php b/src/Resources/Organizations.php index 29cf81e..ae13863 100644 --- a/src/Resources/Organizations.php +++ b/src/Resources/Organizations.php @@ -6,10 +6,11 @@ use Devio\Pipedrive\Resources\Basics\Entity; use Devio\Pipedrive\Resources\Traits\ListsDeals; use Devio\Pipedrive\Resources\Traits\ListsAttachedFiles; +use Devio\Pipedrive\Resources\Traits\Searches; class Organizations extends Entity { - use ListsDeals, ListsAttachedFiles; + use ListsDeals, ListsAttachedFiles, Searches; /** * List the persons of a resource. diff --git a/src/Resources/Persons.php b/src/Resources/Persons.php index 313329c..f2c33e1 100644 --- a/src/Resources/Persons.php +++ b/src/Resources/Persons.php @@ -6,12 +6,12 @@ use Devio\Pipedrive\Resources\Traits\ListsDeals; use Devio\Pipedrive\Resources\Traits\ListsProducts; use Devio\Pipedrive\Resources\Traits\ListsAttachedFiles; -use Devio\Pipedrive\Resources\Traits\Search; +use Devio\Pipedrive\Resources\Traits\Searches; class Persons extends Entity { use ListsDeals, ListsProducts, ListsAttachedFiles, - Search; + Searches; } diff --git a/src/Resources/Products.php b/src/Resources/Products.php index adbe467..bd921e5 100644 --- a/src/Resources/Products.php +++ b/src/Resources/Products.php @@ -7,10 +7,12 @@ use Devio\Pipedrive\Resources\Traits\FindsByName; use Devio\Pipedrive\Resources\Traits\ListsAttachedFiles; use Devio\Pipedrive\Resources\Traits\ListsPermittedUsers; +use Devio\Pipedrive\Resources\Traits\Searches; class Products extends Resource { use FindsByName, + Searches, ListsAttachedFiles, ListsDeals, ListsPermittedUsers; diff --git a/src/Resources/Traits/Search.php b/src/Resources/Traits/Searches.php similarity index 96% rename from src/Resources/Traits/Search.php rename to src/Resources/Traits/Searches.php index 67f1af1..f9f4768 100644 --- a/src/Resources/Traits/Search.php +++ b/src/Resources/Traits/Searches.php @@ -4,7 +4,7 @@ use Devio\Pipedrive\Http\Response; -trait Search +trait Searches { /** * @param $term