3 // src/Rapsys/AirBundle/Entity/User.php
4 namespace Rapsys\AirBundle\Entity
;
6 use Rapsys\AirBundle\Entity\Application
;
7 use Rapsys\AirBundle\Entity\Group
;
8 use Rapsys\AirBundle\Entity\Vote
;
9 use Rapsys\UserBundle\Entity\User
as BaseUser
;
11 class User
extends BaseUser
{
18 * @var \Doctrine\Common\Collections\Collection
23 * @var \Doctrine\Common\Collections\Collection
25 private $applications;
30 * @param string $phone
34 public function setPhone($phone) {
35 $this->phone
= $phone;
45 public function getPhone() {
52 * @param \Rapsys\AirBundle\Entity\Vote $vote
56 public function addVote(Vote
$vote) {
57 $this->votes
[] = $vote;
65 * @param \Rapsys\AirBundle\Entity\Vote $vote
67 public function removeVote(Vote
$vote) {
68 $this->votes
->removeElement($vote);
74 * @return \Doctrine\Common\Collections\Collection
76 public function getVotes() {
83 * @param \Rapsys\AirBundle\Entity\Application $application
87 public function addApplication(Application
$application) {
88 $this->applications
[] = $application;
96 * @param \Rapsys\AirBundle\Entity\Application $application
98 public function removeApplication(Application
$application) {
99 $this->applications
->removeElement($application);
105 * @return \Doctrine\Common\Collections\Collection
107 public function getApplications() {
108 return $this->applications
;