Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace GameShelf\UsersBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Doctrine\Common\Collections\ArrayCollection;
- /**
- * Ownership
- *
- * @ORM\Table()
- * @ORM\Entity(repositoryClass="GameShelf\UsersBundle\Entity\OwnershipRepository")
- */
- class Ownership
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var integer
- *
- * @ORM\Column(name="game", type="integer")
- */
- private $game;
- /**
- * @var integer
- *
- * @ORM\Column(name="user", type="integer")
- */
- private $user;
- /**
- * @var integer
- *
- * @ORM\Column(name="type", type="integer")
- */
- private $type;
- /**
- * @var string
- *
- * @ORM\Column(name="userrate", type="string", length=255)
- */
- private $userrate;
- /**
- * @var string
- *
- * @ORM\Column(name="time", type="string", length=255)
- */
- private $time;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set game
- *
- * @param integer $game
- * @return Ownership
- */
- public function setGame($game)
- {
- $this->game = $game;
- return $this;
- }
- /**
- * Get game
- *
- * @return integer
- */
- public function getGame()
- {
- return $this->game;
- }
- /**
- * Set user
- *
- * @param integer $user
- * @return Ownership
- */
- public function setUser($user)
- {
- $this->user = $user;
- return $this;
- }
- /**
- * Get user
- *
- * @return integer
- */
- public function getUser()
- {
- return $this->user;
- }
- /**
- * Set type
- *
- * @param integer $type
- * @return Ownership
- */
- public function setType($type)
- {
- $this->type = $type;
- return $this;
- }
- /**
- * Get type
- *
- * @return integer
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * Set userrate
- *
- * @param string $userrate
- * @return Ownership
- */
- public function setUserrate($userrate)
- {
- $this->userrate = $userrate;
- return $this;
- }
- /**
- * Get userrate
- *
- * @return string
- */
- public function getUserrate()
- {
- return $this->userrate;
- }
- /**
- * Set time
- *
- * @param string $time
- * @return Ownership
- */
- public function setTime($time)
- {
- $this->time = $time;
- return $this;
- }
- /**
- * Get time
- *
- * @return string
- */
- public function getTime()
- {
- return $this->time;
- }
- /**
- * @ORM\OneToMany(targetEntity="Game", mappedBy="ownership")
- */
- protected $games;
- public function __construct() {
- $this->games = new ArrayCollection();
- }
- /**
- * @var integer
- */
- private $rate;
- /**
- * Set rate
- *
- * @param integer $rate
- * @return Ownership
- */
- public function setRate($rate)
- {
- $this->rate = $rate;
- return $this;
- }
- /**
- * Get rate
- *
- * @return integer
- */
- public function getRate()
- {
- return $this->rate;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement