src/Entity/StaUserType.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Common\SoftDeletableEntityTrait;
  4. use App\Entity\Common\StatefulEntityTrait;
  5. use App\Entity\Common\TimestampedEntityTrait;
  6. use Doctrine\ORM\Mapping\UniqueConstraint;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. /**
  10.  * Class StaUserType
  11.  *
  12.  * @ORM\Entity(repositoryClass="App\Repository\StaUserTypeRepository")
  13.  * @ORM\Table(indexes={
  14.  *     @ORM\Index(name="IDX_updated_at", columns={"updated_at"}),
  15.  *     @ORM\Index(name="IDX_deleted_at", columns={"deleted_at"}),
  16.  *     @ORM\Index(name="IDX_is_active", columns={"is_active"})
  17.  * })
  18.  * @Gedmo\SoftDeleteable(fieldName="deletedAt")
  19.  */
  20. class StaUserType
  21. {
  22.     use SoftDeletableEntityTraitStatefulEntityTraitTimestampedEntityTrait;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Id()
  27.      * @ORM\Column(length=6)
  28.      */
  29.     private $code;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(length=100)
  34.      */
  35.     private $name;
  36.     /**
  37.      * @return string
  38.      */
  39.     public function getCode(): string
  40.     {
  41.         return $this->code;
  42.     }
  43.     /**
  44.      * @param string $code
  45.      * @return StaUserType
  46.      */
  47.     public function setCode(string $code): StaUserType
  48.     {
  49.         $this->code $code;
  50.         return $this;
  51.     }
  52.     /**
  53.      * @return string
  54.      */
  55.     public function getName(): string
  56.     {
  57.         return $this->name;
  58.     }
  59.     /**
  60.      * @param string $name
  61.      * @return StaUserType
  62.      */
  63.     public function setName(string $name): StaUserType
  64.     {
  65.         $this->name $name;
  66.         return $this;
  67.     }
  68. }