Skip to content

Instantly share code, notes, and snippets.

@Monomachus
Created January 25, 2012 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Monomachus/1675621 to your computer and use it in GitHub Desktop.
Save Monomachus/1675621 to your computer and use it in GitHub Desktop.
Entity for Faker
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
namespace Udevi\ChurchBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="person")
*/
class Person {
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="string", length=45)
*/
protected $lastName;
/**
* @ORM\Column(type="string", length=45)
*/
protected $firstName;
/**
* @ORM\Column(type="boolean")
*/
protected $active;
/**
* @ORM\Column(type="date")
*/
protected $birthDay;
/**
* @ORM\Column(type="string", length=15)
*/
protected $workPhone;
/**
* @ORM\Column(type="string", length=15)
*/
protected $cellPhone;
/**
* @ORM\Column(type="integer")
*/
protected $envelopeNumber;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set lastName
*
* @param string $lastName
*/
public function setLastName($lastName)
{
$this->lastName = $lastName;
}
/**
* Get lastName
*
* @return string
*/
public function getLastName()
{
return $this->lastName;
}
/**
* Set firstName
*
* @param string $firstName
*/
public function setFirstName($firstName)
{
$this->firstName = $firstName;
}
/**
* Get firstName
*
* @return string
*/
public function getFirstName()
{
return $this->firstName;
}
/**
* Set active
*
* @param boolean $active
*/
public function setActive($active)
{
$this->active = $active;
}
/**
* Get active
*
* @return boolean
*/
public function getActive()
{
return $this->active;
}
/**
* Set birthDay
*
* @param date $birthDay
*/
public function setBirthDay($birthDay)
{
$this->birthDay = $birthDay;
}
/**
* Get birthDay
*
* @return date
*/
public function getBirthDay()
{
return $this->birthDay;
}
/**
* Set workPhone
*
* @param string $workPhone
*/
public function setWorkPhone($workPhone)
{
$this->workPhone = $workPhone;
}
/**
* Get workPhone
*
* @return string
*/
public function getWorkPhone()
{
return $this->workPhone;
}
/**
* Set cellPhone
*
* @param string $cellPhone
*/
public function setCellPhone($cellPhone)
{
$this->cellPhone = $cellPhone;
}
/**
* Get cellPhone
*
* @return string
*/
public function getCellPhone()
{
return $this->cellPhone;
}
/**
* Set envelopeNumber
*
* @param integer $envelopeNumber
*/
public function setEnvelopeNumber($envelopeNumber)
{
$this->envelopeNumber = $envelopeNumber;
}
/**
* Get envelopeNumber
*
* @return integer
*/
public function getEnvelopeNumber()
{
return $this->envelopeNumber;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment