Skip to content

Commit

Permalink
Refactoring recently added files..
Browse files Browse the repository at this point in the history
  • Loading branch information
plvhx committed Dec 8, 2020
1 parent 6eab390 commit 7a34533
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Gandung\Tokopedia\Auth\AuthorizationInterface;
use Gandung\Tokopedia\Service\Campaign;
use Gandung\Tokopedia\Service\Category;
use Gandung\Tokopedia\Service\Encryption;
use Gandung\Tokopedia\Service\Interaction;
use Gandung\Tokopedia\Service\Logistic;
use Gandung\Tokopedia\Service\Order;
Expand Down Expand Up @@ -50,6 +51,14 @@ public function getCategory()
return new Category($this->getAuthorization());
}

/**
* {@inheritdoc}
*/
public function getEncryption()
{
return new Encryption($this->getAuthorization());
}

/**
* {@inheritdoc}
*/
Expand Down
7 changes: 7 additions & 0 deletions src/ServiceFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ public function getCampaign();
*/
public function getCategory();

/**
* Get encryption service.
*
* @return ServiceInterface
*/
public function getEncryption();

/**
* Get interaction service.
*
Expand Down

0 comments on commit 7a34533

Please sign in to comment.