<?php 

namespace NPS\Model;

use NPS\Model\User;
use NPS\Entity\UserActivationTokenEntity;


/**
 * Represents a user account activation token model object
 * @author Lukas Korinek 
 */
final class UserActivationToken extends AbstractToken
{
    /** @var User $user */
    private $user;

    public function __construct(UserActivationTokenEntity $entity, User $user, $ttl)
    {
        $this->user = $user;
        parent::__construct($entity, $ttl);
    }

    public function getUser()
    {
        return $this->user;
    }
}

