<?phpnamespace Uniski\ResourceBundle\Entity;use Doctrine\ORM\Mapping as ORM;/*** @ORM\Entity* @ORM\Table("shop")*/class Shop { /** * @var integer * * @ORM\Id * @ORM\Column(name="id", type="integer") * @ORM\GeneratedValue(strategy="IDENTITY") */ protected $id; /** * @var string * @ORM\Column(name="name", type="string") */ protected $name; /** * @var RentingRate * @ORM\ManyToOne(targetEntity="RentingRate", cascade={"persist"}) */ protected $rate; /** * @var Address * @ORM\ManyToOne(targetEntity="Address", cascade={"all"}) */ protected $address; /** * @var string * @ORM\Column(name="phone", type="string", length=30, nullable=true) */ protected $phone; /** * @var string * @ORM\Column(name="comments", type="text", nullable=true) */ protected $comments; /** * @var boolean * @ORM\Column(type="boolean") */ protected $active; function __construct() { $this->active = true; } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set name * * @param string $name * * @return Shop */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set rate * * @param \Uniski\ResourceBundle\Entity\RentingRate $rate * * @return Shop */ public function setRate(\Uniski\ResourceBundle\Entity\RentingRate $rate = null) { $this->rate = $rate; return $this; } /** * Get rate * * @return \Uniski\ResourceBundle\Entity\RentingRate */ public function getRate() { return $this->rate; } /** * Set address * * @param \Uniski\ResourceBundle\Entity\Address $address * * @return Shop */ public function setAddress(\Uniski\ResourceBundle\Entity\Address $address = null) { $this->address = $address; return $this; } /** * Get address * * @return \Uniski\ResourceBundle\Entity\Address */ public function getAddress() { return $this->address; } /** * Set comments * * @param string $comments * * @return Shop */ public function setComments($comments) { $this->comments = $comments; return $this; } /** * Get comments * * @return string */ public function getComments() { return $this->comments; } /** * Gets the value of phone. * * @return string */ public function getPhone() { return $this->phone; } /** * Sets the value of phone. * * @param string $phone the phone * * @return self */ public function setPhone($phone) { $this->phone = $phone; return $this; } /** * @return boolean */ public function isActive() { return $this->active; } /** * @param boolean $active * * @return self */ public function setActive($active) { $this->active = $active; return $this; }}