Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.53 KB | None | 0 0
  1. <?php
  2.  
  3. namespace GameShelf\UsersBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7.  
  8. /**
  9.  * Ownership
  10.  *
  11.  * @ORM\Table()
  12.  * @ORM\Entity(repositoryClass="GameShelf\UsersBundle\Entity\OwnershipRepository")
  13.  */
  14. class Ownership
  15. {
  16.     /**
  17.      * @var integer
  18.      *
  19.      * @ORM\Column(name="id", type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     private $id;
  24.  
  25.     /**
  26.      * @var integer
  27.      *
  28.      * @ORM\Column(name="game", type="integer")
  29.      */
  30.     private $game;
  31.  
  32.     /**
  33.      * @var integer
  34.      *
  35.      * @ORM\Column(name="user", type="integer")
  36.      */
  37.     private $user;
  38.  
  39.     /**
  40.      * @var integer
  41.      *
  42.      * @ORM\Column(name="type", type="integer")
  43.      */
  44.     private $type;
  45.  
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="userrate", type="string", length=255)
  50.      */
  51.     private $userrate;
  52.  
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="time", type="string", length=255)
  57.      */
  58.     private $time;
  59.  
  60.  
  61.     /**
  62.      * Get id
  63.      *
  64.      * @return integer
  65.      */
  66.     public function getId()
  67.     {
  68.         return $this->id;
  69.     }
  70.  
  71.     /**
  72.      * Set game
  73.      *
  74.      * @param integer $game
  75.      * @return Ownership
  76.      */
  77.     public function setGame($game)
  78.     {
  79.         $this->game = $game;
  80.    
  81.         return $this;
  82.     }
  83.  
  84.     /**
  85.      * Get game
  86.      *
  87.      * @return integer
  88.      */
  89.     public function getGame()
  90.     {
  91.         return $this->game;
  92.     }
  93.  
  94.     /**
  95.      * Set user
  96.      *
  97.      * @param integer $user
  98.      * @return Ownership
  99.      */
  100.     public function setUser($user)
  101.     {
  102.         $this->user = $user;
  103.    
  104.         return $this;
  105.     }
  106.  
  107.     /**
  108.      * Get user
  109.      *
  110.      * @return integer
  111.      */
  112.     public function getUser()
  113.     {
  114.         return $this->user;
  115.     }
  116.  
  117.     /**
  118.      * Set type
  119.      *
  120.      * @param integer $type
  121.      * @return Ownership
  122.      */
  123.     public function setType($type)
  124.     {
  125.         $this->type = $type;
  126.    
  127.         return $this;
  128.     }
  129.  
  130.     /**
  131.      * Get type
  132.      *
  133.      * @return integer
  134.      */
  135.     public function getType()
  136.     {
  137.         return $this->type;
  138.     }
  139.  
  140.     /**
  141.      * Set userrate
  142.      *
  143.      * @param string $userrate
  144.      * @return Ownership
  145.      */
  146.     public function setUserrate($userrate)
  147.     {
  148.         $this->userrate = $userrate;
  149.    
  150.         return $this;
  151.     }
  152.  
  153.     /**
  154.      * Get userrate
  155.      *
  156.      * @return string
  157.      */
  158.     public function getUserrate()
  159.     {
  160.         return $this->userrate;
  161.     }
  162.  
  163.     /**
  164.      * Set time
  165.      *
  166.      * @param string $time
  167.      * @return Ownership
  168.      */
  169.     public function setTime($time)
  170.     {
  171.         $this->time = $time;
  172.    
  173.         return $this;
  174.     }
  175.  
  176.     /**
  177.      * Get time
  178.      *
  179.      * @return string
  180.      */
  181.     public function getTime()
  182.     {
  183.         return $this->time;
  184.     }
  185.  
  186.     /**
  187.      * @ORM\OneToMany(targetEntity="Game", mappedBy="ownership")
  188.      */
  189.  
  190.     protected $games;
  191.  
  192.     public function __construct() {
  193.         $this->games = new ArrayCollection();
  194.     }
  195.     /**
  196.      * @var integer
  197.      */
  198.     private $rate;
  199.  
  200.  
  201.     /**
  202.      * Set rate
  203.      *
  204.      * @param integer $rate
  205.      * @return Ownership
  206.      */
  207.     public function setRate($rate)
  208.     {
  209.         $this->rate = $rate;
  210.    
  211.         return $this;
  212.     }
  213.  
  214.     /**
  215.      * Get rate
  216.      *
  217.      * @return integer
  218.      */
  219.     public function getRate()
  220.     {
  221.         return $this->rate;
  222.     }
  223. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement