Skip to content

Instantly share code, notes, and snippets.

@shizonic
Created March 13, 2015 09:08
Show Gist options
  • Save shizonic/7eceb4da690ac2527528 to your computer and use it in GitHub Desktop.
Save shizonic/7eceb4da690ac2527528 to your computer and use it in GitHub Desktop.
<?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