| 1 | <?php |
||
| 19 | class Password implements PasswordInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private $id; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | private $customerId; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $password; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | private $salt; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var string |
||
| 43 | */ |
||
| 44 | private $createdAt; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Password constructor. |
||
| 48 | * @param int $customerId |
||
| 49 | * @param int $id |
||
| 50 | */ |
||
| 51 | public function __construct(int $customerId, int $id = 0) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return int |
||
| 59 | */ |
||
| 60 | public function getId(): int |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return int |
||
| 67 | */ |
||
| 68 | public function getCustomerId(): int |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | public function getPassword(): string |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @param string $password |
||
| 83 | * @return void |
||
| 84 | */ |
||
| 85 | public function setPassword(string $password): void |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @return string |
||
| 92 | */ |
||
| 93 | public function getSalt(): string |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @param string $salt |
||
| 100 | * @return void |
||
| 101 | */ |
||
| 102 | public function setSalt(string $salt): void |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @return string |
||
| 109 | */ |
||
| 110 | public function getCreatedAt(): string |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @param string $createdAt |
||
| 117 | * @return void |
||
| 118 | */ |
||
| 119 | public function setCreatedAt(string $createdAt): void |
||
| 123 | } |
||
| 124 |