1: <?php
2:
3: namespace mcfedr\Paypal;
4:
5: /**
6: * Class with read only vars for using paypal api's
7: */
8: class Authentication {
9:
10: private $email;
11: private $username;
12: private $password;
13: private $signature;
14: private $sandbox;
15:
16: public function __construct($email, $username, $password, $signature, $sandbox = false) {
17: $this->email = $email;
18: $this->username = $username;
19: $this->password = $password;
20: $this->signature = $signature;
21: $this->sandbox = $sandbox;
22: }
23:
24: public function getEmail() {
25: return $this->email;
26: }
27:
28: public function getUsername() {
29: return $this->username;
30: }
31:
32: public function getPassword() {
33: return $this->password;
34: }
35:
36: public function getSignature() {
37: return $this->signature;
38: }
39:
40: public function isSandbox() {
41: return $this->sandbox;
42: }
43:
44: }
45: