<?php
namespace JF\JuridicusBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* ProtokollGesetzBase
*/
class ProtokollGesetzBase
{
const CLASSNAME = __CLASS__;
/**
* @var integer
*/
protected $id;
/**
* @var integer
*/
protected $sortierung = 0;
/**
* @var string
* @Assert\Length(max=8)
* @Assert\Regex(pattern="/^\d+[a-z]?$/", message = "Das Format ist ungültig.")
*/
protected $paragraph;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set sortierung
*
* @param integer $sortierung
* @return ProtokollGesetzBase
*/
public function setSortierung($sortierung)
{
$this->sortierung = $sortierung;
return $this;
}
/**
* Get sortierung
*
* @return integer
*/
public function getSortierung()
{
return $this->sortierung;
}
/**
* Set paragraph
*
* @param string $paragraph
* @return ProtokollGesetzBase
*/
public function setParagraph($paragraph)
{
$this->paragraph = $paragraph;
return $this;
}
/**
* Get paragraph
*
* @return string
*/
public function getParagraph()
{
return $this->paragraph;
}
}