Private
Public Access
1
0
Files
MineSeeker/src/Entity/Gamer.php

108 lines
2.3 KiB
PHP
Raw Normal View History

<?php declare(strict_types=1);
/**
* This file is part of the SplendidBear Websites' projects.
*
* Copyright (c) 2019 @ www.splendidbear.org
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Entity;
use App\Repository\GamerRepository;
use DateTime;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
/**
* Class Gamer
*
* @package App\Entity
* @author Lang <https://www.splendidbear.org>
* @category Class
* @license https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License
* @link www.splendidbear.org
* @since 2026. 04. 09.
*/
#[Entity(repositoryClass: GamerRepository::class)]
class Gamer
{
#[Id, GeneratedValue, Column]
private ?int $id = null;
#[Column(length: 100)]
private ?string $userName = null;
#[Column(length: 20, nullable: true)]
private ?string $ip = null;
#[Column(length: 100, nullable: true)]
private ?string $country = null;
#[Column(nullable: true)]
private ?string $userAgent = null;
#[Column(type: Types::DATETIME_MUTABLE)]
private ?DateTime $connTimestamp = null;
public function getId(): ?int
{
return $this->id;
}
public function getUserName(): ?string
{
return $this->userName;
}
public function setUserName(?string $userName): void
{
$this->userName = $userName;
}
public function getIp(): ?string
{
return $this->ip;
}
public function setIp(?string $ip): void
{
$this->ip = $ip;
}
public function getCountry(): ?string
{
return $this->country;
}
public function setCountry(?string $country): void
{
$this->country = $country;
}
public function getUserAgent(): ?string
{
return $this->userAgent;
}
public function setUserAgent(?string $userAgent): void
{
$this->userAgent = $userAgent;
}
public function getConnTimestamp(): ?DateTime
{
return $this->connTimestamp;
}
public function setConnTimestamp(?DateTime $connTimestamp): void
{
$this->connTimestamp = $connTimestamp;
}
}