src/Entity/MaterialUnitTypes.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MaterialUnitTypesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @deprecated use Unit (TODO Replace Unit to UnitTypes)
  8.  * @ORM\Entity(repositoryClass=MaterialUnitTypesRepository::class)
  9.  */
  10. class MaterialUnitTypes
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      * @Groups({
  17.      *     "material.unit.type.base",
  18.      *     "material_unit_type@core"
  19.      * })
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\Column(type="string", length=65)
  24.      * @Groups({
  25.      *     "material.unit.type.base",
  26.      *     "material_unit_type@core"
  27.      * })
  28.      */
  29.     private $alias;
  30.     /**
  31.      * @ORM\Column(type="string", length=64)
  32.      * @Groups({
  33.      *     "material.unit.type.base",
  34.      *     "material_unit_type@core"
  35.      * })
  36.      */
  37.     private $name;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getAlias(): ?string
  43.     {
  44.         return $this->alias;
  45.     }
  46.     public function setAlias(string $alias): self
  47.     {
  48.         $this->alias $alias;
  49.         return $this;
  50.     }
  51.     public function getName(): ?string
  52.     {
  53.         return $this->name;
  54.     }
  55.     public function setName(string $name): self
  56.     {
  57.         $this->name $name;
  58.         return $this;
  59.     }
  60. }