<?php
namespace App\Model\Request\Login;
use Symfony\Component\Validator\Constraints as Assert;
class LoginUserRequest
{
/**
* @var string
*
* @Assert\NotBlank(message="Email should not be blank.")
* @Assert\Length(max=100, maxMessage="Email is too long. It should have {{ limit }} character or less.")
*/
private $email;
/**
* @var string
*
* @Assert\NotBlank(message="Password should not be blank.")
*/
private $password;
/**
* @return string
*/
public function getEmail(): string
{
return $this->email;
}
/**
* @param string $email
* @return LoginUserRequest
*/
public function setEmail(string $email): LoginUserRequest
{
$this->email = $email;
return $this;
}
/**
* @return string
*/
public function getPassword(): string
{
return $this->password;
}
/**
* @param string $password
* @return LoginUserRequest
*/
public function setPassword(string $password): LoginUserRequest
{
$this->password = $password;
return $this;
}
}