src/Entity/UserJob.php line 14

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.  *
  7.  * @ORM\Entity(repositoryClass="App\Repository\UserJobRepository")
  8.  * @ORM\Table(name="malys_user_job")
  9.  * @package App\Entity
  10.  */
  11. class UserJob
  12. {
  13.     /**
  14.      * @var integer
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     protected $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="label", type="string", length=255, nullable=false)
  25.      * @Assert\NotBlank
  26.      */
  27.     protected $label;
  28.     /**
  29.      * UserJob constructor.
  30.      */
  31.     public function __construct()
  32.     {
  33.     }
  34.     /**
  35.      * @return int
  36.      */
  37.     public function getId()
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * @param int $id
  43.      */
  44.     public function setId($id)
  45.     {
  46.         $this->id $id;
  47.     }
  48.     /**
  49.      * @return string
  50.      */
  51.     public function getLabel()
  52.     {
  53.         return $this->label;
  54.     }
  55.     /**
  56.      * @param string $label
  57.      */
  58.     public function setLabel($label)
  59.     {
  60.         $this->label $label;
  61.     }
  62. }