| Total Complexity | 5 | 
| Total Lines | 72 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 14 | final class Credentials implements \Promopult\Integra\CredentialsInterface | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * @var string | ||
| 18 | */ | ||
| 19 | private $hash; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @var string | ||
| 23 | */ | ||
| 24 | private $cryptKey; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @var string | ||
| 28 | */ | ||
| 29 | private $partnerPath; | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @var string | ||
| 33 | */ | ||
| 34 | private $apiHost; | ||
| 35 | |||
| 36 | /** | ||
| 37 | * Identity constructor. | ||
| 38 | * | ||
| 39 | * @param string $hash | ||
| 40 | * @param string $cryptKey | ||
| 41 | * @param string $partnerPath | ||
| 42 | * @param string $apiHost | ||
| 43 | */ | ||
| 44 | public function __construct( | ||
| 45 | string $hash, | ||
| 46 | string $cryptKey, | ||
| 47 | string $partnerPath = 'iframe', | ||
| 48 | string $apiHost = 'https://api.promopult.org' | ||
| 49 |     ) { | ||
| 50 | $this->hash = $hash; | ||
| 51 | $this->cryptKey = $cryptKey; | ||
| 52 | $this->partnerPath = $partnerPath; | ||
| 53 | $this->apiHost = $apiHost; | ||
| 54 | } | ||
| 55 | |||
| 56 | /** | ||
| 57 |      * {@inheritDoc} | ||
| 58 | */ | ||
| 59 | public function getHash(): string | ||
| 60 |     { | ||
| 61 | return $this->hash; | ||
| 62 | } | ||
| 63 | |||
| 64 | /** | ||
| 65 |      * {@inheritDoc} | ||
| 66 | */ | ||
| 67 | public function getPartnerPath(): string | ||
| 70 | } | ||
| 71 | |||
| 72 | /** | ||
| 73 |      * {@inheritDoc} | ||
| 74 | */ | ||
| 75 | public function getCryptKey(): string | ||
| 78 | } | ||
| 79 | |||
| 80 | /** | ||
| 81 |      * {@inheritDoc} | ||
| 82 | */ | ||
| 83 | public function getApiHost(): string | ||
| 86 | } | ||
| 87 | } | ||
| 88 |