Newscoop\Entity\UserToken::__construct PHP Method

__construct() public method

public __construct ( User $user, string $action, string $token )
$user User
$action string
$token string
    public function __construct(User $user, $action, $token)
    {
        $this->user = $user;
        $this->action = (string) $action;
        $this->token = (string) $token;
        $this->created = new \DateTime();
    }