<?phpnamespace App\Entity;use App\Repository\SubdeliveryRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SubdeliveryRepository::class)]class Subdelivery implements EntityInterface{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(type: 'integer')] private int $delivery = 0; #[ORM\Column(length: 255)] private ?string $name = null; #[ORM\Column(length: 255)] private ?string $code = null; #[ORM\Column] private ?int $fields = null; #[ORM\Column] private ?bool $visible = null; #[ORM\Column(type: Types::SMALLINT)] private ?int $prior = null; public function getId(): ?int { return $this->id; } public function getDelivery(): ?int { return $this->delivery; } public function setDelivery(int $delivery): self { $this->delivery = $delivery; return $this; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getCode(): ?string { return $this->code; } public function setCode(string $code): self { $this->code = $code; return $this; } public function getFields(): ?int { return $this->fields; } public function setFields(int $fields): self { $this->fields = $fields; return $this; } public function isVisible(): ?bool { return $this->visible; } public function setVisible(bool $visible): self { $this->visible = $visible; return $this; } public function getPrior(): ?int { return $this->prior; } public function setPrior(int $prior): self { $this->prior = $prior; return $this; }}