src/Entity/MaterialUnitTypes.php line 12

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.  * @ORM\Entity(repositoryClass=MaterialUnitTypesRepository::class)
  8.  */
  9. class MaterialUnitTypes
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({
  16.      *       "material.unit.type.base"
  17.      *   })
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="string", length=65)
  22.      * @Groups({
  23.      *     "material.unit.type.base"
  24.      *   })
  25.      */
  26.     private $alias;
  27.     /**
  28.      * @ORM\Column(type="string", length=64)
  29.      * @Groups({
  30.      *      "material.unit.type.base"
  31.      *   })
  32.      */
  33.     private $name;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getAlias(): ?string
  39.     {
  40.         return $this->alias;
  41.     }
  42.     public function setAlias(string $alias): self
  43.     {
  44.         $this->alias $alias;
  45.         return $this;
  46.     }
  47.     public function getName(): ?string
  48.     {
  49.         return $this->name;
  50.     }
  51.     public function setName(string $name): self
  52.     {
  53.         $this->name $name;
  54.         return $this;
  55.     }
  56. }