/
Config.php
57 lines (47 loc) · 964 Bytes
/
Config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
namespace Wearesho\Bobra\Platon;
class Config implements ConfigInterface
{
use LanguageConfigTrait;
protected string $key;
protected string $pass;
protected string $payment;
public function __construct(string $key, string $pass, string $payment)
{
$this->key = $key;
$this->pass = $pass;
$this->payment = $payment;
}
/**
* URL for sending form on front-end
*
* @return string
*/
public function getBaseUrl(): string
{
return static::PAYMENT_URL;
}
/**
* Public key for Platon
*/
public function getKey(): string
{
return $this->key;
}
/**
* Private key for signing data
*
* @return string
*/
public function getPass(): string
{
return $this->pass;
}
/**
* @return string
*/
public function getPayment(): string
{
return $this->payment;
}
}