Skip to content

Commit

Permalink
CreateMany resource Trait reused in the Tickets resource
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalii-01 committed Apr 25, 2020
1 parent c5c38ef commit 894cc5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Zendesk/API/Resources/Core/Tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Zendesk\API\Exceptions\ResponseException;
use Zendesk\API\Http;
use Zendesk\API\Resources\ResourceAbstract;
use Zendesk\API\Traits\Resource\CreateMany;
use Zendesk\API\Traits\Resource\Defaults;
use Zendesk\API\Traits\Resource\DeleteMany;
use Zendesk\API\Traits\Resource\FindMany;
Expand All @@ -30,6 +31,8 @@ class Tickets extends ResourceAbstract
update as traitUpdate;
}

use CreateMany;

use FindMany;
use UpdateMany {
UpdateMany::updateMany as bulkUpdate;
Expand Down Expand Up @@ -87,6 +90,7 @@ protected function setUpRoutes()

$this->setRoutes([
'create' => 'tickets.json',
'createMany' => 'tickets/create_many.json',
'findMany' => 'tickets/show_many.json',
'updateMany' => 'tickets/update_many.json',
'markAsSpam' => 'tickets/{id}/mark_as_spam.json',
Expand Down

0 comments on commit 894cc5f

Please sign in to comment.