<?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;
use JF\JuridicusBundle\Validator\Constraints as JfAssert;
use JF\JuridicusBundle\Entity\Pruefung;
/**
* Prüfer
*
* @JfAssert\UniquePruefer
*/
class Pruefer extends InitModeEntity
{
const CLASSNAME = __CLASS__;
/**
* @var string[]
*/
private static $adel_options = array( 'von der', 'van den', 'vom', 'von', 'van', 'de' );
/**
*
* @return string[]
*/
public static function getAdelOptions()
{
return self::$adel_options;
}
/**
* @var integer
*/
private $id;
/**
* @var string
* @Assert\Length(max="63")
*/
private $vorname;
/**
* @var string
* @Assert\Length(max="12")
*/
private $adel;
/**
* @var string
* @Assert\NotBlank
* @Assert\Length(max="63")
*/
private $nachname;
/**
* @var string
*/
private $email;
/**
* @var string
*/
private $anschrift;
/**
* @var string
*/
private $strasse;
/**
* @var string
*/
private $hausnummer;
/**
* @var string
*/
private $plz;
/**
* @var string
*/
private $ort;
/**
* @var string
* @Assert\Length(max="255")
*/
private $works_at;
/**
* @var string
* @Assert\Length(max="255")
*/
private $parsed_from;
/**
* @var string
* @Assert\NotBlank
* @Assert\Length(max="6")
*/
private $quelle;
/**
* @var \DateTimeInterface|null
* @Assert\Type(\DateTimeInterface::class)
*/
private $created_at;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $aliases;
/**
* @var \JF\JuridicusBundle\Entity\Titel
*/
private $titel;
/**
* @var string
*/
private $titel_string;
/**
* @var \JF\JuridicusBundle\Entity\Dienststellung
*/
private $dienststellung;
/**
* @var string
*/
private $dienststellung_string;
/**
* @var \JF\JuridicusBundle\Entity\User
* @Assert\Valid
*/
private $creator;
/**
* @var \JF\JuridicusBundle\Entity\Pruefer
* @Assert\Valid
*/
private $alias_for;
/**
* @var integer
*/
private $ordnr;
/**
* @var string
* @Assert\Length(max="64")
*/
private $rechtsgebiete;
/**
* @var \DateTime
*/
private $protokoll_datum;
/**
* @var \DateTime
*/
private $appeared_first_at;
/**
* @var string
*/
private $slug;
/**
* @var string
*/
private $full_text = null;
/**
* @var string
*/
private $full_text_with_ort = null;
/**
* @var boolean
*/
private $pdf_need_update = true;
/**
* @var integer
*/
private $pdf_need_update_examen;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $pruefer_pruefungen;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $protokoll_infothek_pruefer;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $protokoll_html;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $emails;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $downloads;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $pruefungsaemter;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $pdf_protokoll_juridicus;
/**
* @var \Doctrine\Common\Collections\Collection
*/
private $pdf_protokollmappe_pruefer;
/**
* Constructor
*/
public function __construct()
{
$this->aliases = new \Doctrine\Common\Collections\ArrayCollection();
$this->pruefer_pruefungen = new \Doctrine\Common\Collections\ArrayCollection();
$this->protokoll_infothek_pruefer = new \Doctrine\Common\Collections\ArrayCollection();
$this->protokoll_html = new \Doctrine\Common\Collections\ArrayCollection();
$this->emails = new \Doctrine\Common\Collections\ArrayCollection();
$this->downloads = new \Doctrine\Common\Collections\ArrayCollection();
$this->pruefungsaemter = new \Doctrine\Common\Collections\ArrayCollection();
$this->pdf_protokoll_juridicus = new \Doctrine\Common\Collections\ArrayCollection();
$this->pdf_protokollmappe_pruefer = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set vorname
*
* @param string $vorname
* @return Pruefer
*/
public function setVorname($vorname)
{
$this->vorname = $vorname;
return $this;
}
/**
* Get vorname
*
* @return string
*/
public function getVorname()
{
return $this->vorname;
}
/**
* Set nachname
*
* @param string $nachname
* @return Pruefer
*/
public function setNachname($nachname)
{
$this->nachname = $nachname;
return $this;
}
/**
* Get nachname
*
* @return string
*/
public function getNachname()
{
return $this->nachname;
}
/**
* Set works_at
*
* @param string $worksAt
* @return Pruefer
*/
public function setWorksAt($worksAt)
{
$this->works_at = $worksAt;
return $this;
}
/**
* Get works_at
*
* @return string
*/
public function getWorksAt()
{
return $this->works_at;
}
/**
* Set parsed_from
*
* @param string $parsedFrom
* @return Pruefer
*/
public function setParsedFrom($parsedFrom)
{
$this->parsed_from = $parsedFrom;
return $this;
}
/**
* Get parsed_from
*
* @return string
*/
public function getParsedFrom()
{
return $this->parsed_from;
}
/**
* Set quelle
*
* @param string $quelle
* @return Pruefer
*/
public function setQuelle($quelle)
{
$this->quelle = $quelle;
return $this;
}
/**
* Get quelle
*
* @return string
*/
public function getQuelle()
{
return $this->quelle;
}
/**
* Set created_at
*
* @param \DateTime $createdAt
* @return Pruefer
*/
public function setCreatedAt($createdAt)
{
$this->created_at = $createdAt;
return $this;
}
/**
* Get created_at
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->created_at;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
if (!$this->init_mode AND !isset($this->created_at)) {
$this->setCreatedAt(new \DateTime());
}
}
/**
* Add aliase [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\Pruefer $aliases
* @return Pruefer
*/
public function addAliase(Pruefer $aliases)
{
$this->aliases[] = $aliases;
$aliases->setAliasFor($this);
return $this;
}
/**
* Remove aliases [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\Pruefer $aliases
*/
public function removeAliase(Pruefer $aliases)
{
$this->aliases->removeElement($aliases);
$aliases->setAliasFor(null);
}
/**
* Get aliases
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAliases()
{
return $this->aliases;
}
/**
* Set titel [OWNING SIDE]
*
* @param \JF\JuridicusBundle\Entity\Titel $titel
* @return Pruefer
*/
public function setTitel(Titel $titel = null)
{
$this->titel = $titel;
return $this;
}
/**
* Get titel
*
* @return \JF\JuridicusBundle\Entity\Titel
*/
public function getTitel()
{
return $this->titel;
}
/**
* Set titelString
*
* @param string
* @return Pruefer
*/
public function setTitelString($titelString)
{
$this->titel_string = $titelString;
return $this;
}
/**
* Get titelString
*
* @return string
*/
public function getTitelString()
{
return $this->titel_string;
}
/**
* Set creator [OWNING SIDE]
*
* @param \JF\JuridicusBundle\Entity\User $creator
* @return Pruefer
*/
public function setCreator(User $creator = null)
{
$this->creator = $creator;
return $this;
}
/**
* Get creator
*
* @return \JF\JuridicusBundle\Entity\User
*/
public function getCreator()
{
return $this->creator;
}
/**
* Set alias_for [OWNING SIDE]
*
* @param \JF\JuridicusBundle\Entity\Pruefer $aliasFor
* @return Pruefer
*/
public function setAliasFor(Pruefer $aliasFor = null)
{
$this->alias_for = $aliasFor;
return $this;
}
/**
* Get alias_for
*
* @return \JF\JuridicusBundle\Entity\Pruefer
*/
public function getAliasFor()
{
return $this->alias_for;
}
/**
* Set slug
*
* @param string $slug
* @return Pruefer
*/
public function setSlug($slug)
{
$this->slug = $slug;
return $this;
}
/**
* Get slug
*
* @return string
*/
public function getSlug()
{
return $this->slug;
}
/**
* Add emails [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\Email $emails
* @return Pruefer
*/
public function addEmail(Email $emails)
{
$this->emails[] = $emails;
return $this;
}
/**
* Remove emails [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\Email $emails
*/
public function removeEmail(Email $emails)
{
$this->emails->removeElement($emails);
}
/**
* Get emails
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getEmails()
{
return $this->emails;
}
/**
* Add downloads [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\Download $downloads
* @return Pruefer
*/
public function addDownload(Download $downloads)
{
$this->downloads[] = $downloads;
return $this;
}
/**
* Remove downloads [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\Download $downloads
*/
public function removeDownload(Download $downloads)
{
$this->downloads->removeElement($downloads);
}
/**
* Get downloads
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getDownloads()
{
return $this->downloads;
}
/**
* Set rechtsgebiete
*
* @param string $rechtsgebiete
* @return Pruefer
*/
public function setRechtsgebiete($rechtsgebiete)
{
$this->rechtsgebiete = $rechtsgebiete;
return $this;
}
/**
* Get rechtsgebiete
*
* @return string
*/
public function getRechtsgebiete()
{
return $this->rechtsgebiete;
}
/**
* Set appeared_first_at
*
* @param \DateTime $appearedFirstAt
* @return Pruefer
*/
public function setAppearedFirstAt(\DateTime $appearedFirstAt)
{
$this->appeared_first_at = $appearedFirstAt;
return $this;
}
/**
* Get appeared_first_at
*
* @return \DateTime
*/
public function getAppearedFirstAt()
{
return $this->appeared_first_at;
}
/**
* Checks equality
*
* @param Pruefer
* @return boolean
*/
public function equals( Pruefer $p )
{
return TRUE
AND $this->vorname == $p->vorname
AND $this->nachname == $p->nachname
AND $this->adel == $p->adel
AND $this->titel->equals( $p->titel )
AND $this->dienststellung->equals( $p->dienststellung )
;
}
/**
* Set adel
*
* @param string $adel
* @return Pruefer
*/
public function setAdel($adel)
{
$this->adel = $adel;
return $this;
}
/**
* Get adel
*
* @return string
*/
public function getAdel()
{
return $this->adel;
}
/**
* Set ordnr
*
* @param integer $ordnr
* @return Pruefer
*/
public function setOrdnr($ordnr)
{
$this->ordnr = $ordnr;
return $this;
}
/**
* Get ordnr
*
* @return integer
*/
public function getOrdnr()
{
return $this->ordnr;
}
/**
* Set protokoll_datum
*
* @param \DateTime $protokollDatum
* @return Pruefer
*/
public function setProtokollDatum($protokollDatum)
{
$this->protokoll_datum = $protokollDatum;
return $this;
}
/**
* Get protokoll_datum
*
* @return \DateTime
*/
public function getProtokollDatum()
{
return $this->protokoll_datum;
}
/**
* Add pruefer_pruefungen [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\PrueferPruefung $prueferPruefungen
* @return Pruefer
*/
public function addPrueferPruefungen(PrueferPruefung $prueferPruefungen)
{
$this->pruefer_pruefungen[] = $prueferPruefungen;
return $this;
}
/**
* Remove pruefer_pruefungen [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\PrueferPruefung $prueferPruefungen
*/
public function removePrueferPruefungen(PrueferPruefung $prueferPruefungen)
{
$this->pruefer_pruefungen->removeElement($prueferPruefungen);
}
/**
* Get pruefer_pruefungen
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPrueferPruefungen()
{
return $this->pruefer_pruefungen;
}
/**
* Add protokoll_infothek_pruefer [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\ProtokollInfothekPruefer $protokollInfothekPruefer
* @return Pruefer
*/
public function addProtokollInfothekPruefer(ProtokollInfothekPruefer $protokollInfothekPruefer)
{
$this->protokoll_infothek_pruefer[] = $protokollInfothekPruefer;
return $this;
}
/**
* Remove protokoll_infothek_pruefer [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\ProtokollInfothekPruefer $protokollInfothekPruefer
*/
public function removeProtokollInfothekPruefer(ProtokollInfothekPruefer $protokollInfothekPruefer)
{
$this->protokoll_infothek_pruefer->removeElement($protokollInfothekPruefer);
}
/**
* Get protokoll_infothek_pruefer
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getProtokollInfothekPruefer()
{
return $this->protokoll_infothek_pruefer;
}
/**
* Set dienststellung [OWNING SIDE]
*
* @param \JF\JuridicusBundle\Entity\Dienststellung $dienststellung
* @return Pruefer
*/
public function setDienststellung(Dienststellung $dienststellung = null)
{
$this->dienststellung = $dienststellung;
return $this;
}
/**
* Get dienststellung
*
* @return \JF\JuridicusBundle\Entity\Dienststellung
*/
public function getDienststellung()
{
return $this->dienststellung;
}
/**
* Set dienststellungString
*
* @param string $dienststellungString
* @return Pruefer
*/
public function setDienststellungString($dienststellungString)
{
$this->dienststellung_string = $dienststellungString;
return $this;
}
/**
* Get dienststellungString
*
* @return string
*/
public function getDienststellungString()
{
return $this->dienststellung_string;
}
/**
* Add pruefungsaemter
*
* @param \JF\JuridicusBundle\Entity\Pruefungsamt $pruefungsaemter
* @return Pruefer
*/
public function addPruefungsaemter(Pruefungsamt $pruefungsaemter)
{
$this->pruefungsaemter[] = $pruefungsaemter;
$pruefungsaemter->addPruefer($this);
return $this;
}
/**
* Remove pruefungsaemter
*
* @param \JF\JuridicusBundle\Entity\Pruefungsamt $pruefungsaemter
*/
public function removePruefungsaemter(Pruefungsamt $pruefungsaemter)
{
$this->pruefungsaemter->removeElement($pruefungsaemter);
$pruefungsaemter->removePruefer($this);
}
/**
* Get pruefungsaemter
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPruefungsaemter()
{
return $this->pruefungsaemter;
}
/**
* Add protokoll_html [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\ProtokollHtml $protokollHtml
* @return Pruefer
*/
public function addProtokollHtml(ProtokollHtml $protokollHtml)
{
$this->protokoll_html[] = $protokollHtml;
return $this;
}
/**
* Remove protokoll_html [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\ProtokollHtml $protokollHtml
*/
public function removeProtokollHtml(ProtokollHtml $protokollHtml)
{
$this->protokoll_html->removeElement($protokollHtml);
}
/**
* Get protokoll_html
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getProtokollHtml()
{
return $this->protokoll_html;
}
/**
* Add pdf_protokoll_juridicus [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\PdfProtokollJuridicus $pdfProtokollJuridicus
* @return Pruefer
*/
public function addPdfProtokollJuridicu(PdfProtokollJuridicus $pdfProtokollJuridicus)
{
$this->pdf_protokoll_juridicus[] = $pdfProtokollJuridicus;
return $this;
}
/**
* Remove pdf_protokoll_juridicus [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\PdfProtokollJuridicus $pdfProtokollJuridicus
*/
public function removePdfProtokollJuridicu(PdfProtokollJuridicus $pdfProtokollJuridicus)
{
$this->pdf_protokoll_juridicus->removeElement($pdfProtokollJuridicus);
}
/**
* Get pdf_protokoll_juridicus
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPdfProtokollJuridicus()
{
return $this->pdf_protokoll_juridicus;
}
/**
* Add pdf_protokollmappe_pruefer [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\PdfProtokollmappePruefer $pdfProtokollmappePruefer
* @return Pruefer
*/
public function addPdfProtokollmappePruefer(PdfProtokollmappePruefer $pdfProtokollmappePruefer)
{
$this->pdf_protokollmappe_pruefer[] = $pdfProtokollmappePruefer;
return $this;
}
/**
* Remove pdf_protokollmappe_pruefer [INVERSE SIDE]
*
* @param \JF\JuridicusBundle\Entity\PdfProtokollmappePruefer $pdfProtokollmappePruefer
*/
public function removePdfProtokollmappePruefer(PdfProtokollmappePruefer $pdfProtokollmappePruefer)
{
$this->pdf_protokollmappe_pruefer->removeElement($pdfProtokollmappePruefer);
}
/**
* Get pdf_protokollmappe_pruefer
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPdfProtokollmappePruefer()
{
return $this->pdf_protokollmappe_pruefer;
}
/**
* Get different representations for SEO
* @return string[]
*/
public function getSeoVariants()
{
$return = array();
if (empty($this->adel)) {
$return['adel_name'] = $this->nachname;
} else {
$return['adel_name'] = sprintf('%s %s', $this->adel, $this->nachname);
}
if (empty($this->vorname)) {
$return['vorname_adel_name'] = $return['adel_name'];
$return['adel_name,_vorname'] = $return['adel_name'];
} else {
$return['vorname_adel_name'] = sprintf('%s %s', $this->vorname,
$return['adel_name']);
$return['adel_name,_vorname'] = sprintf('%s, %s',
$return['adel_name'], $this->vorname);
}
if (empty($this->titel)) {
$return['titel_vorname_adel_name'] = $return['vorname_adel_name'];
} else {
$return['titel_vorname_adel_name'] = sprintf('%s %s',
$this->titel->getVisibleName(), $return['vorname_adel_name']);
}
if (empty($this->dienststellung)) {
$return['titel_vorname_adel_name,_dienststellung'] = $return['titel_vorname_adel_name'];
$return['titel_vorname_adel_name_dienststellung'] = $return['titel_vorname_adel_name'];
} else {
$return['titel_vorname_adel_name,_dienststellung'] = sprintf('%s, %s',
$return['titel_vorname_adel_name'],
$this->dienststellung->getVisibleName()
);
$return['titel_vorname_adel_name_dienststellung'] = sprintf('%s %s',
$return['titel_vorname_adel_name'],
$this->dienststellung->getVisibleName()
);
}
return $return;
}
/**
*
* @return string
*/
public function getCssClass()
{
if ($this->getPdfProtokollJuridicus()->count() > 0) {
return 'protokoll';
} else {
return 'no-protokoll';
}
}
/**
*
* @return string
*/
public function getFullText()
{
if (isset($this->full_text)) {
return $this->full_text;
}
$this->full_text = '';
if (!empty($this->nachname)) {
$this->full_text .= $this->nachname;
}
$this->full_text = $this->nachname;
if (!empty($this->vorname)) {
$this->full_text .= ', ' . $this->vorname;
if (!empty($this->adel)) {
$this->full_text .= ' ' . $this->adel;
}
} else if (!empty($this->adel)) {
$this->full_text .= ', ' . $this->adel;
}
if (isset($this->titel)) {
$this->full_text .= ', ' . $this->titel->getVisibleName();
}
if (isset($this->dienststellung)) {
$this->full_text .= ', ' . $this->dienststellung->getVisibleName();
}
return $this->full_text;
}
/**
*
* @return string
*/
public function getFullTextWithOrt()
{
if (isset($this->full_text_with_ort)) {
return $this->full_text_with_ort;
}
$this->full_text_with_ort = $this->nachname;
if (isset($this->adel)) {
$this->full_text_with_ort = sprintf('%s %s', $this->adel, $this->full_text_with_ort);
}
if (isset($this->vorname)) {
$this->full_text_with_ort = sprintf('%s %s', $this->vorname, $this->full_text_with_ort);
}
if (isset($this->titel)) {
$this->full_text_with_ort = sprintf('%s %s', $this->titel->getVisibleName(), $this->full_text_with_ort);
}
if (isset($this->dienststellung)) {
$this->full_text_with_ort = sprintf('%s %s', $this->dienststellung->getVisibleName(), $this->full_text_with_ort);
}
if (isset($this->works_at)) {
$this->full_text_with_ort = sprintf('%s, %s', $this->full_text_with_ort, $this->works_at);
}
return $this->full_text_with_ort;
}
/**
* getOldDyn - dynamisch erzeugter Link des alten Systems
*
* @return string
*/
public function getOldDyn()
{
$href = sprintf( '%s_%s_%s_%s_%s_pruefer_protokolle_pruefung_jura_examen',
$this->getNachname(),
$this->getVorname() ? $this->getVorname() : '',
$this->getAdel() ? $this->getAdel() : '',
$this->getTitel() ? $this->getTitel()->getName() : '',
$this->getDienststellung() ? $this->getDienststellung()->getName() : ''
);
$remove = array('.',' ','´','`','\'');
return str_replace($remove, '-', $href).'.php';
}
/**
* getProtokollCountForExamen
*
* @param integer examen
* @return integer
*/
public function getProtokollCountForExamen($examen)
{
$alias = $this->getAliasFor();
if ($alias) {
return $alias->getProtokollCountForExamen($examen);
}
foreach($this->getPdfProtokollmappePruefer() as $mappe) {
if ($mappe->getExamen() == $examen) {
return $mappe->getAnzahlProtokolle();
}
}
return 0;
}
/**
* getProtokollCount
*
* @return array
*/
public function getProtokollCount()
{
$alias = $this->getAliasFor();
if ($alias) {
return $alias->getProtokollCount();
}
$return = array('gesamt' => 0);
foreach(Pruefung::getTypKeys() as $typ) {
$return[$typ] = 0;
}
foreach($this->getPdfProtokollmappePruefer() as $mappe) {
$return[$mappe->getExamen()] = $mappe->getAnzahlProtokolle();
$return['gesamt'] += $mappe->getAnzahlProtokolle();
}
return $return;
}
/**
* String Representation
*
* @return string
*/
public function __toString()
{
$p = $this->getFullText();
return isset($p) ? $p : 'Neuer Prüfer';
}
/**
* Set pdf_need_update
*
* @param boolean $pdfNeedUpdate
* @return Pruefer
*/
public function setPdfNeedUpdate($pdfNeedUpdate)
{
$this->pdf_need_update = $pdfNeedUpdate;
return $this;
}
/**
* Get pdf_need_update
*
* @return boolean
*/
public function getPdfNeedUpdate()
{
return $this->pdf_need_update;
}
/**
* Set pdf_need_update_examen
*
* @param integer $pdfNeedUpdateExamen
* @return Pruefer
*/
public function setPdfNeedUpdateExamen($pdfNeedUpdateExamen)
{
$this->pdf_need_update_examen = $pdfNeedUpdateExamen;
return $this;
}
/**
* Get pdf_need_update_examen
*
* @return integer
*/
public function getPdfNeedUpdateExamen()
{
return $this->pdf_need_update_examen;
}
// NEU 27.02.2023
/**
* Set email
*
* @param string $email
* @return Pruefer
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Set anschrift
*
* @param string $strasse
* @return Pruefer
*/
public function setAnschrift($anschrift)
{
$this->anschrift = $anschrift;
return $this;
}
/**
* Get anschrift
*
* @return string
*/
public function getAnschrift()
{
return $this->anschrift;
}
/**
* Set strasse
*
* @param string $strasse
* @return Pruefer
*/
public function setStrasse($strasse)
{
$this->strasse = $strasse;
return $this;
}
/**
* Get strasse
*
* @return string
*/
public function getStrasse()
{
return $this->strasse;
}
/**
* Set hausnummer
*
* @param string $hausnummer
* @return Pruefer
*/
public function setHausnummer($hausnummer)
{
$this->hausnummer = $hausnummer;
return $this;
}
/**
* Get hausnummer
*
* @return string
*/
public function getHausnummer()
{
return $this->hausnummer;
}
/**
* Set ort
*
* @param string $ort
* @return Kunde
*/
public function setOrt($ort)
{
$this->ort = $ort;
return $this;
}
/**
* Get ort
*
* @return string
*/
public function getOrt()
{
return $this->ort;
}
/**
* Set plz
*
* @param string $plz
* @return Kunde
*/
public function setPlz($plz)
{
$this->plz = $plz;
return $this;
}
/**
* Get plz
*
* @return string
*/
public function getPlz()
{
return $this->plz;
}
}