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;
- /**
- * Own
- *
- * @ORM\Table(name="ownership")
- * @ORM\Entity(repositoryClass="GameShelf\UsersBundle\Entity\OwnRepository")
- */
- class Own
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /** @ORM\ManyToOne(targetEntity="OwnState") */
- private $typo;
- /** @ORM\ManyToOne(targetEntity="GameShelf\GamesBundle\Entity\Platforms") */
- private $platforms;
- /**
- * @var string
- *
- * @ORM\Column(name="updated", type="string", length=30)
- */
- private $updated;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /////////////////////
- /** @ORM\ManyToOne(targetEntity="User") */
- private $user;
- /** @ORM\ManyToOne(targetEntity="GameShelf\GamesBundle\Entity\Game") */
- private $game;
- /** @ORM\ManyToOne(targetEntity="Rates") */
- private $rate;
- /**
- * Set user
- *
- * @param \GameShelf\UsersBundle\Entity\User $user
- * @return Own
- */
- public function setUser(\GameShelf\UsersBundle\Entity\User $user = null)
- {
- $this->user = $user;
- return $this;
- }
- /**
- * Get user
- *
- * @return \GameShelf\UsersBundle\Entity\User
- */
- public function getUser()
- {
- return $this->user;
- }
- /**
- * Set game
- *
- * @param \GameShelf\GamesBundle\Entity\Game $game
- * @return Own
- */
- public function setGame(\GameShelf\GamesBundle\Entity\Game $game = null)
- {
- $this->game = $game;
- return $this;
- }
- /**
- * Get game
- *
- * @return \GameShelf\GamesBundle\Entity\Game
- */
- public function getGame()
- {
- return $this->game;
- }
- /**
- * Set rate
- *
- * @param \GameShelf\UsersBundle\Entity\Rates $rate
- * @return Own
- */
- public function setRate(\GameShelf\UsersBundle\Entity\Rates $rate = null)
- {
- $this->rate = $rate;
- return $this;
- }
- /**
- * Get rate
- *
- * @return \GameShelf\UsersBundle\Entity\Rates
- */
- public function getRate()
- {
- return $this->rate;
- }
- /**
- * Set platform
- *
- * @param integer $platform
- * @return Own
- */
- public function setPlatform($platform)
- {
- $this->platform = $platform;
- return $this;
- }
- /**
- * Get platform
- *
- * @return integer
- */
- public function getPlatform()
- {
- return $this->platform;
- }
- /**
- * Set type
- *
- * @param integer $type
- * @return Own
- */
- public function setType($type)
- {
- $this->type = $type;
- return $this;
- }
- /**
- * Get type
- *
- * @return integer
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * Constructor
- */
- public function __construct()
- {
- $this->typo = new \Doctrine\Common\Collections\ArrayCollection();
- }
- /**
- * Add typo
- *
- * @param \GameShelf\UsersBundle\Entity\OwnState $typo
- * @return Own
- */
- public function addTypo(\GameShelf\UsersBundle\Entity\OwnState $typo)
- {
- $this->typo[] = $typo;
- return $this;
- }
- /**
- * Remove typo
- *
- * @param \GameShelf\UsersBundle\Entity\OwnState $typo
- */
- public function removeTypo(\GameShelf\UsersBundle\Entity\OwnState $typo)
- {
- $this->typo->removeElement($typo);
- }
- /**
- * Get typo
- *
- * @return \Doctrine\Common\Collections\Collection
- */
- public function getTypo()
- {
- return $this->typo;
- }
- /**
- * Set typo
- *
- * @param \GameShelf\UsersBundle\Entity\OwnState $typo
- * @return Own
- */
- public function setTypo(\GameShelf\UsersBundle\Entity\OwnState $typo = null)
- {
- $this->typo = $typo;
- return $this;
- }
- /**
- * Set platforms
- *
- * @param \GameShelf\GamesBundle\Entity\Platforms $platforms
- * @return Own
- */
- public function setPlatforms(\GameShelf\GamesBundle\Entity\Platforms $platforms = null)
- {
- $this->platforms = $platforms;
- return $this;
- }
- /**
- * Get platforms
- *
- * @return \GameShelf\GamesBundle\Entity\Platforms
- */
- public function getPlatforms()
- {
- return $this->platforms;
- }
- /**
- * Set updated
- *
- * @param string $updated
- * @return Own
- */
- public function setUpdated($updated)
- {
- $this->updated = $updated;
- return $this;
- }
- /**
- * Get updated
- *
- * @return string
- */
- public function getUpdated()
- {
- return $this->updated;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement