| 1 | <?php |
||
| 6 | class PaymentSettings implements \JsonSerializable |
||
| 7 | { |
||
| 8 | |||
| 9 | use ValidatorTrait; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var null|string |
||
| 13 | */ |
||
| 14 | protected $privacyUrl; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var null|string |
||
| 18 | */ |
||
| 19 | protected $publicKey; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $testUsers = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $privacyUrl |
||
| 28 | * @return \Kerox\Messenger\Model\ProfileSettings\PaymentSettings |
||
| 29 | */ |
||
| 30 | 1 | public function setPrivacyUrl(string $privacyUrl): PaymentSettings |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $publicKey |
||
| 40 | * @return \Kerox\Messenger\Model\ProfileSettings\PaymentSettings |
||
| 41 | */ |
||
| 42 | 1 | public function setPublicKey(string $publicKey): PaymentSettings |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @param int $testUser |
||
| 51 | * @return \Kerox\Messenger\Model\ProfileSettings\PaymentSettings |
||
| 52 | */ |
||
| 53 | 1 | public function addTestUser(int $testUser): PaymentSettings |
|
| 59 | |||
| 60 | /** |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | 1 | public function jsonSerialize(): array |
|
| 73 | } |
||
| 74 |