src/Entity/ProductStatus.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductStatusRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassProductStatusRepository::class)]
  7. #[ORM\Table(name"mtb_product_status")]
  8. class ProductStatus
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $name null;
  16.     #[ORM\Column(typeTypes::SMALLINT)]
  17.     private ?int $sort_no null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $discriminator_type 'productstatus';
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getName(): ?string
  25.     {
  26.         return $this->name;
  27.     }
  28.     public function setName(string $name): static
  29.     {
  30.         $this->name $name;
  31.         return $this;
  32.     }
  33.     public function getSortNo(): ?int
  34.     {
  35.         return $this->sort_no;
  36.     }
  37.     public function setSortNo(int $sort_no): static
  38.     {
  39.         $this->sort_no $sort_no;
  40.         return $this;
  41.     }
  42.     public function getDiscriminatorType(): ?string
  43.     {
  44.         return $this->discriminator_type;
  45.     }
  46.     public function setDiscriminatorType(string $discriminator_type): static
  47.     {
  48.         $this->discriminator_type $discriminator_type;
  49.         return $this;
  50.     }
  51. }