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
- */
- class Ownership
- {
- /**
- * @var integer
- */
- private $id;
- /**
- * @var integer
- */
- private $game;
- /**
- * @var integer
- */
- private $user;
- /**
- * @var integer
- */
- private $own;
- /**
- * @var integer
- */
- private $userrate;
- /**
- * @var \DateTime
- */
- private $time;
- /**
- * @var \DateTime
- */
- private $updated;
- /**
- * 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 own
- *
- * @param integer $own
- * @return Ownership
- */
- public function setOwn($own)
- {
- $this->own = $own;
- return $this;
- }
- /**
- * Get own
- *
- * @return integer
- */
- public function getOwn()
- {
- return $this->own;
- }
- /**
- * Set userrate
- *
- * @param integer $userrate
- * @return Ownership
- */
- public function setUserrate($userrate)
- {
- $this->userrate = $userrate;
- return $this;
- }
- /**
- * Get userrate
- *
- * @return integer
- */
- public function getUserrate()
- {
- return $this->userrate;
- }
- /**
- * Set time
- *
- * @param \DateTime $time
- * @return Ownership
- */
- public function setTime($time)
- {
- $this->time = $time;
- return $this;
- }
- /**
- * Get time
- *
- * @return \DateTime
- */
- public function getTime()
- {
- return $this->time;
- }
- /**
- * Set updated
- *
- * @param \DateTime $updated
- * @return Ownership
- */
- public function setUpdated($updated)
- {
- $this->updated = $updated;
- return $this;
- }
- /**
- * Get updated
- *
- * @return \DateTime
- */
- public function getUpdated()
- {
- return $this->updated;
- }
- /**
- * @ORM\ManyToMany(targetEntity="GameShelf\GamesBundle\Entity\Game", mappedBy="games")
- * @ORM\JoinTable(name="game")
- */
- protected $games;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement