src/JuridicusBundle/Entity/ProtokollGesetzBase.php line 12

Open in your IDE?
  1. <?php
  2. namespace JF\JuridicusBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * ProtokollGesetzBase
  8.  */
  9. class ProtokollGesetzBase
  10. {
  11.     const CLASSNAME __CLASS__;
  12.     
  13.     /**
  14.      * @var integer
  15.      */
  16.     protected $id;
  17.     /**
  18.      * @var integer
  19.      */
  20.     protected $sortierung 0;
  21.     /**
  22.      * @var string
  23.      * @Assert\Length(max=8)
  24.      * @Assert\Regex(pattern="/^\d+[a-z]?$/", message = "Das Format ist ungültig.")
  25.      */
  26.     protected $paragraph;
  27.     /**
  28.      * Get id
  29.      *
  30.      * @return integer
  31.      */
  32.     public function getId()
  33.     {
  34.         return $this->id;
  35.     }
  36.     /**
  37.      * Set sortierung
  38.      *
  39.      * @param integer $sortierung
  40.      * @return ProtokollGesetzBase
  41.      */
  42.     public function setSortierung($sortierung)
  43.     {
  44.         $this->sortierung $sortierung;
  45.         return $this;
  46.     }
  47.     /**
  48.      * Get sortierung
  49.      *
  50.      * @return integer
  51.      */
  52.     public function getSortierung()
  53.     {
  54.         return $this->sortierung;
  55.     }
  56.     /**
  57.      * Set paragraph
  58.      *
  59.      * @param string $paragraph
  60.      * @return ProtokollGesetzBase
  61.      */
  62.     public function setParagraph($paragraph)
  63.     {
  64.         $this->paragraph $paragraph;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Get paragraph
  69.      *
  70.      * @return string
  71.      */
  72.     public function getParagraph()
  73.     {
  74.         return $this->paragraph;
  75.     }
  76. }