Created
March 13, 2015 09:02
-
-
Save shizonic/cc4680c5f9d6cbd6b331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Flow\Schwabe\Domain\Model; | |
/* * | |
* This script belongs to the TYPO3 Flow package "Flow.Schwabe". * | |
* * | |
* */ | |
use TYPO3\Flow\Annotations as Flow; | |
use Doctrine\ORM\Mapping as ORM; | |
//use Flow\Schwabe\Domain\Model\Reviewer; | |
/** | |
* @Flow\Entity | |
*/ | |
class User { | |
/** | |
* @var string | |
*/ | |
protected $firstname; | |
/** | |
* @var string | |
*/ | |
protected $surname; | |
/** | |
* @var string | |
*/ | |
protected $salutation; | |
/** | |
* @var string | |
*/ | |
protected $company; | |
/** | |
* @var string | |
*/ | |
protected $street; | |
/** | |
* @var integer | |
*/ | |
protected $number; | |
/** | |
* @var integer | |
*/ | |
protected $postcode; | |
/** | |
* @var string | |
*/ | |
protected $city; | |
/** | |
* @var string | |
*/ | |
protected $country; | |
/** | |
* @var integer | |
*/ | |
protected $telephone; | |
/** | |
* @var \Doctrine\Common\Collections\Collection<\Flow\Schwabe\User\Domain\Reviewer> | |
* @ORM\ManyToOne(targetEntity="User") | |
* @ORM\JoinColumn(name="userid") | |
*/ | |
protected $reviewer; | |
/** | |
* @return integer | |
*/ | |
public function setid(){ | |
return $this->id; | |
} | |
/** | |
* @return string | |
*/ | |
public function getFirstname() { | |
return $this->firstname; | |
} | |
/** | |
* @param string $firstname | |
* @return void | |
*/ | |
public function setFirstname($firstname) { | |
$this->firstname = $firstname; | |
} | |
/** | |
* @return string | |
*/ | |
public function getSurname() { | |
return $this->surname; | |
} | |
/** | |
* @param string $surname | |
* @return void | |
*/ | |
public function setSurname($surname) { | |
$this->surname = $surname; | |
} | |
/** | |
* @return string | |
*/ | |
public function getSalutation() { | |
return $this->salutation; | |
} | |
/** | |
* @param string $salutation | |
* @return void | |
*/ | |
public function setSalutation($salutation) { | |
$this->salutation = $salutation; | |
} | |
/** | |
* @return string | |
*/ | |
public function getCompany() { | |
return $this->company; | |
} | |
/** | |
* @param string $company | |
* @return void | |
*/ | |
public function setCompany($company) { | |
$this->company = $company; | |
} | |
/** | |
* @return string | |
*/ | |
public function getStreet() { | |
return $this->street; | |
} | |
/** | |
* @param string $street | |
* @return void | |
*/ | |
public function setStreet($street) { | |
$this->street = $street; | |
} | |
/** | |
* @return integer | |
*/ | |
public function getNumber() { | |
return $this->number; | |
} | |
/** | |
* @param integer $number | |
* @return void | |
*/ | |
public function setNumber($number) { | |
$this->number = $number; | |
} | |
/** | |
* @return integer | |
*/ | |
public function getPostcode() { | |
return $this->postcode; | |
} | |
/** | |
* @param integer $postcode | |
* @return void | |
*/ | |
public function setPostcode($postcode) { | |
$this->postcode = $postcode; | |
} | |
/** | |
* @return string | |
*/ | |
public function getCity() { | |
return $this->city; | |
} | |
/** | |
* @param string $city | |
* @return void | |
*/ | |
public function setCity($city) { | |
$this->city = $city; | |
} | |
/** | |
* @return string | |
*/ | |
public function getCountry() { | |
return $this->country; | |
} | |
/** | |
* @param string $country | |
* @return void | |
*/ | |
public function setCountry($country) { | |
$this->country = $country; | |
} | |
/** | |
* @return text | |
*/ | |
public function getTelephone() { | |
return $this->telephone; | |
} | |
/** | |
* @param text $telephone | |
* @return void | |
*/ | |
public function setTelephone($telephone) { | |
$this->telephone = $telephone; | |
} | |
/** | |
* @return \Doctrine\Common\Collections\Collection | |
*/ | |
// public function getReviewer() { | |
// return $this->reviewer; | |
// } | |
/** | |
* @param \Doctrine\Common\Collections\Collection | |
$reviewer | |
* @return void | |
*/ | |
// public function setReviewer(\Doctrine\Common\Collections\Collection $reviewer) { | |
// $this->reviewer = $reviewer; | |
// } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment