Server.php
1 <?php 2 3 namespace App\Entity; 4 5 use App\Repository\ServerRepository; 6 use Doctrine\DBAL\Types\Types; 7 use Doctrine\ORM\Mapping as ORM; 8 9 #[ORM\Entity(repositoryClass: ServerRepository::class)] 10 class Server 11 { 12 #[ORM\Id] 13 #[ORM\GeneratedValue] 14 #[ORM\Column] 15 private ?int $id = null; 16 17 #[ORM\Column(type: Types::BIGINT)] 18 private ?string $crc32server = null; 19 20 #[ORM\Column(type: Types::BIGINT)] 21 private ?string $added = null; 22 23 #[ORM\Column(type: Types::BIGINT)] 24 private ?string $updated = null; 25 26 #[ORM\Column(type: Types::BIGINT)] 27 private ?string $online = null; 28 29 #[ORM\Column(length: 255)] 30 private ?string $host = null; 31 32 #[ORM\Column(type: Types::INTEGER)] 33 private ?int $port = null; 34 35 #[ORM\Column(length: 255, nullable: true)] 36 private ?string $name = null; 37 38 public function getId(): ?int 39 { 40 return $this->id; 41 } 42 43 public function getCrc32server(): ?string 44 { 45 return $this->crc32server; 46 } 47 48 public function setCrc32server(string $crc32server): static 49 { 50 $this->crc32server = $crc32server; 51 52 return $this; 53 } 54 55 public function getAdded(): ?int 56 { 57 return $this->added; 58 } 59 60 public function setAdded(int $added): static 61 { 62 $this->added = $added; 63 64 return $this; 65 } 66 67 public function getUpdated(): ?int 68 { 69 return $this->updated; 70 } 71 72 public function setUpdated(int $updated): static 73 { 74 $this->updated = $updated; 75 76 return $this; 77 } 78 79 public function getOnline(): ?int 80 { 81 return $this->online; 82 } 83 84 public function setOnline(int $online): static 85 { 86 $this->online = $online; 87 88 return $this; 89 } 90 91 public function getHost(): ?string 92 { 93 return $this->host; 94 } 95 96 public function setHost(string $host): static 97 { 98 $this->host = $host; 99 100 return $this; 101 } 102 103 public function getPort(): ?int 104 { 105 return $this->port; 106 } 107 108 public function setPort(int $port): static 109 { 110 $this->port = $port; 111 112 return $this; 113 } 114 115 public function getName(): ?string 116 { 117 return $this->name; 118 } 119 120 public function setName(?string $name): static 121 { 122 $this->name = $name; 123 124 return $this; 125 } 126 }