]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/User.php
Add score and canceled field
[airbundle] / Entity / User.php
index 473fd07e894cf0efd83d0deb5c0a256a98933fe7..d521bd46e3d2e04f9e0ce2a098064490298d0eb7 100644 (file)
@@ -3,7 +3,17 @@
 // src/Rapsys/AirBundle/Entity/User.php
 namespace Rapsys\AirBundle\Entity;
 
 // src/Rapsys/AirBundle/Entity/User.php
 namespace Rapsys\AirBundle\Entity;
 
-class User extends \Rapsys\UserBundle\Entity\User {
+use Rapsys\AirBundle\Entity\Application;
+use Rapsys\AirBundle\Entity\Group;
+use Rapsys\AirBundle\Entity\Vote;
+use Rapsys\UserBundle\Entity\User as BaseUser;
+
+class User extends BaseUser {
+       /**
+        * @var string
+        */
+       protected $phone;
+
        /**
         * @var \Doctrine\Common\Collections\Collection
         */
        /**
         * @var \Doctrine\Common\Collections\Collection
         */
@@ -15,10 +25,25 @@ class User extends \Rapsys\UserBundle\Entity\User {
        private $applications;
 
        /**
        private $applications;
 
        /**
-        * Constructor
+        * Set phone
+        *
+        * @param string $phone
+        *
+        * @return User
+        */
+       public function setPhone($phone) {
+               $this->phone = $phone;
+
+               return $this;
+       }
+
+       /**
+        * Get phone
+        *
+        * @return string
         */
         */
-       public function __construct() {
-               parent::__construct();
+       public function getPhone() {
+               return $this->phone;
        }
 
        /**
        }
 
        /**
@@ -28,7 +53,7 @@ class User extends \Rapsys\UserBundle\Entity\User {
         *
         * @return User
         */
         *
         * @return User
         */
-       public function addVote(\Rapsys\AirBundle\Entity\Vote $vote) {
+       public function addVote(Vote $vote) {
                $this->votes[] = $vote;
 
                return $this;
                $this->votes[] = $vote;
 
                return $this;
@@ -39,7 +64,7 @@ class User extends \Rapsys\UserBundle\Entity\User {
         *
         * @param \Rapsys\AirBundle\Entity\Vote $vote
         */
         *
         * @param \Rapsys\AirBundle\Entity\Vote $vote
         */
-       public function removeVote(\Rapsys\AirBundle\Entity\Vote $vote) {
+       public function removeVote(Vote $vote) {
                $this->votes->removeElement($vote);
        }
 
                $this->votes->removeElement($vote);
        }
 
@@ -59,7 +84,7 @@ class User extends \Rapsys\UserBundle\Entity\User {
         *
         * @return User
         */
         *
         * @return User
         */
-       public function addApplication(\Rapsys\AirBundle\Entity\Application $application) {
+       public function addApplication(Application $application) {
                $this->applications[] = $application;
 
                return $this;
                $this->applications[] = $application;
 
                return $this;
@@ -70,7 +95,7 @@ class User extends \Rapsys\UserBundle\Entity\User {
         *
         * @param \Rapsys\AirBundle\Entity\Application $application
         */
         *
         * @param \Rapsys\AirBundle\Entity\Application $application
         */
-       public function removeApplication(\Rapsys\AirBundle\Entity\Application $application) {
+       public function removeApplication(Application $application) {
                $this->applications->removeElement($application);
        }
 
                $this->applications->removeElement($application);
        }