public function __construct(Entity\Users $userEntity, Entity\Authtoken $tokenEntity) { $this->user = $userEntity; $this->token = $tokenEntity; $this->checked = time(); }