src/Entity/BusinessType.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * Class BusinessType
  7.  *
  8.  * @ORM\Entity
  9.  * @ORM\Table(name="malys_customer_business_type")
  10.  * @ORM\HasLifecycleCallbacks()
  11.  * @package App\Entity
  12.  */
  13. class BusinessType
  14. {
  15.     /**
  16.      * @var integer
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     protected $id;
  23.     /**
  24.      * @var string
  25.      *
  26.      * @ORM\Column(name="label", type="string", length=255, nullable=false)
  27.      * @Assert\NotBlank
  28.      */
  29.     protected $label;
  30.     /**
  31.      * BusinessType constructor.
  32.      */
  33.     public function __construct()
  34.     {
  35.     }
  36.     /**
  37.      * @return int
  38.      */
  39.     public function getId()
  40.     {
  41.         return $this->id;
  42.     }
  43.     /**
  44.      * @param int $id
  45.      */
  46.     public function setId($id)
  47.     {
  48.         $this->id $id;
  49.     }
  50.     /**
  51.      * @return string
  52.      */
  53.     public function getLabel()
  54.     {
  55.         return $this->label;
  56.     }
  57.     /**
  58.      * @param string $label
  59.      */
  60.     public function setLabel($label)
  61.     {
  62.         $this->label $label;
  63.     }
  64. }