Skip to content

Commit

Permalink
Add searches
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelOrtuno committed Jul 3, 2020
1 parent cdf724f commit f6e7dad
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Resources/Deals.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion src/Resources/Organizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/Persons.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions src/Resources/Products.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Devio\Pipedrive\Http\Response;

trait Search
trait Searches
{
/**
* @param $term
Expand Down

0 comments on commit f6e7dad

Please sign in to comment.