<?php
namespace App\Entity;
use App\Repository\SaleTypeRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SaleTypeRepository::class)]
// ec-cube側のテーブル名を指定
#[ORM\Table(name: "mtb_sale_type")]
class SaleType
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(type: Types::SMALLINT)]
private ?int $sort_no = null;
#[ORM\Column(length: 255)]
private ?string $discriminator_type = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getSortNo(): ?int
{
return $this->sort_no;
}
public function setSortNo(int $sort_no): static
{
$this->sort_no = $sort_no;
return $this;
}
public function getDiscriminatorType(): ?string
{
return $this->discriminator_type;
}
public function setDiscriminatorType(string $discriminator_type): static
{
$this->discriminator_type = $discriminator_type;
return $this;
}
}