<?phpnamespace JF\JuridicusBundle\Entity;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;/** * Download */class Download{ const CLASSNAME = __CLASS__; /** * @var integer */ private $id; /** * @var integer * @Assert\NotBlank * @Assert\Range(min="1") */ private $anzahl_protokolle; /** * @var \DateTime * @Assert\Type(\DateTimeInterface::class) */ private $created_at; /** * @var \DateTime * @Assert\Type(\DateTimeInterface::class) */ private $updated_at; /** * @var \JF\JuridicusBundle\Entity\Kunde * @Assert\Valid */ private $kunde; /** * @var \JF\JuridicusBundle\Entity\Pruefer * @Assert\Valid */ private $pruefer; /** * @var integer */ private $examen; /** * @var \JF\JuridicusBundle\Entity\KundePruefung */ private $buchung; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set anzahl_protokolle * * @param integer $anzahlProtokolle * @return Download */ public function setAnzahlProtokolle($anzahlProtokolle) { $this->anzahl_protokolle = $anzahlProtokolle; return $this; } /** * Get anzahl_protokolle * * @return integer */ public function getAnzahlProtokolle() { return $this->anzahl_protokolle; } /** * Set created_at * * @param \DateTime $createdAt * @return Download */ public function setCreatedAt($createdAt) { $this->created_at = $createdAt; return $this; } /** * Get created_at * * @return \DateTime */ public function getCreatedAt() { return $this->created_at; } /** * Set updated_at * * @param \DateTime $updatedAt * @return Download */ public function setUpdatedAt($updatedAt) { $this->updated_at = $updatedAt; return $this; } /** * Get updated_at * * @return \DateTime */ public function getUpdatedAt() { return $this->updated_at; } /** * Set examen * * @param integer $examen * @return Download */ public function setExamen($examen) { $this->examen = $examen; return $this; } /** * Get examen * * @return integer */ public function getExamen() { return $this->examen; } /** * Set kunde [OWNING SIDE] * * @param \JF\JuridicusBundle\Entity\Kunde $kunde * @return Download */ public function setKunde(\JF\JuridicusBundle\Entity\Kunde $kunde = null) { $this->kunde = $kunde; return $this; } /** * Get kunde * * @return \JF\JuridicusBundle\Entity\Kunde */ public function getKunde() { return $this->kunde; } /** * Set pruefer [OWNING SIDE] * * @param \JF\JuridicusBundle\Entity\Pruefer $pruefer * @return Download */ public function setPruefer(\JF\JuridicusBundle\Entity\Pruefer $pruefer = null) { $this->pruefer = $pruefer; return $this; } /** * Get pruefer * * @return \JF\JuridicusBundle\Entity\Pruefer */ public function getPruefer() { return $this->pruefer; } /** * String Representation * * @return string */ public function __toString() { return sprintf( '%s %s', $this->created_at->format('d.m.Y H:i:s'), $this->pruefer->getFullText()); } /** * Set buchung * * @param \JF\JuridicusBundle\Entity\KundePruefung $buchung * @return Download */ public function setBuchung(\JF\JuridicusBundle\Entity\KundePruefung $buchung = null) { $this->buchung = $buchung; return $this; } /** * Get buchung * * @return \JF\JuridicusBundle\Entity\KundePruefung */ public function getBuchung() { return $this->buchung; }}