<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="etr")
*/
class Etr {
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private int $id;
/**
* @ORM\Column(type="integer")
*/
private int $port;
/**
* @ORM\Column(type="string")
*/
private string $com;
/**
* @ORM\Column(type="string")
*/
private string $serialNumber;
/**
* @ORM\Column(type="string")
*/
private string $location;
/**
* @ORM\Column(type="boolean")
*/
private bool $isDefault;
/**
* @ORM\Column(type="datetime")
*/
private \DateTime $createdAt;
public function getId(): int
{
return $this->id;
}
public function getPort(): int
{
return $this->port;
}
public function setPort(int $port): void
{
$this->port = $port;
}
public function getCom(): string
{
return $this->com;
}
public function setCom(string $com): void
{
$this->com = $com;
}
public function getSerialNumber(): string
{
return $this->serialNumber;
}
public function setSerialNumber(string $serialNumber): void
{
$this->serialNumber = $serialNumber;
}
public function getLocation(): string
{
return $this->location;
}
public function setLocation(string $location): void
{
$this->location = $location;
}
public function isDefault(): bool
{
return $this->isDefault;
}
public function setIsDefault(bool $isDefault): void
{
$this->isDefault = $isDefault;
}
public function getCreatedAt(): \DateTime
{
return $this->createdAt;
}
public function setCreatedAt(\DateTime $createdAt): void
{
$this->createdAt = $createdAt;
}
}