for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* File:Password.php
*
* @author Maciej Sławik <[email protected]>
* @copyright Copyright (C) 2018 Lizard Media (http://lizardmedia.pl)
*/
namespace LizardMedia\PasswordMigrator\Model\Data;
use LizardMedia\PasswordMigrator\Api\Data\PasswordInterface;
* Class Password
* @package LizardMedia\PasswordMigrator\Model\Data
class Password implements PasswordInterface
{
* @var int
private $id;
private $customerId;
* @var string
private $password;
private $salt;
private $createdAt;
* Password constructor.
* @param int $customerId
* @param int $id
public function __construct(int $customerId, int $id = 0)
$this->customerId = $customerId;
$this->id = $id;
}
* @return int
public function getId(): int
return $this->id;
public function getCustomerId(): int
return $this->customerId;
* @return string
public function getPassword(): string
return $this->password;
* @param string $password
* @return void
public function setPassword(string $password): void
$this->password = $password;
public function getSalt(): string
return $this->salt;
* @param string $salt
public function setSalt(string $salt): void
$this->salt = $salt;
public function getCreatedAt(): string
return $this->createdAt;
* @param string $createdAt
public function setCreatedAt(string $createdAt): void
$this->createdAt = $createdAt;