Online.php
1 <?php 2 3 namespace App\Entity; 4 5 use App\Repository\OnlineRepository; 6 use Doctrine\DBAL\Types\Types; 7 use Doctrine\ORM\Mapping as ORM; 8 9 #[ORM\Entity(repositoryClass: OnlineRepository::class)] 10 class Online 11 { 12 #[ORM\Id] 13 #[ORM\GeneratedValue] 14 #[ORM\Column] 15 private ?int $id = null; 16 17 #[ORM\Column(type: Types::BIGINT)] 18 private ?int $crc32server = null; 19 20 #[ORM\Column(type: Types::BIGINT)] 21 private ?int $time = null; 22 23 #[ORM\Column] 24 private ?int $total = null; 25 26 #[ORM\Column] 27 private ?int $players = null; 28 29 #[ORM\Column] 30 private ?int $bots = null; 31 32 public function getId(): ?int 33 { 34 return $this->id; 35 } 36 37 public function getCrc32server(): ?int 38 { 39 return $this->crc32server; 40 } 41 42 public function setCrc32server(int $crc32server): static 43 { 44 $this->crc32server = $crc32server; 45 46 return $this; 47 } 48 49 public function getTime(): ?int 50 { 51 return $this->time; 52 } 53 54 public function setTime(int $time): static 55 { 56 $this->time = $time; 57 58 return $this; 59 } 60 61 public function getTotal(): ?int 62 { 63 return $this->total; 64 } 65 66 public function setTotal(int $total): static 67 { 68 $this->total = $total; 69 70 return $this; 71 } 72 73 public function getPlayers(): ?int 74 { 75 return $this->players; 76 } 77 78 public function setPlayers(int $players): static 79 { 80 $this->players = $players; 81 82 return $this; 83 } 84 85 public function getBots(): ?int 86 { 87 return $this->bots; 88 } 89 90 public function setBots(int $bots): static 91 { 92 $this->bots = $bots; 93 94 return $this; 95 } 96 }