Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace GameShelf\GamesBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Game
- *
- * @ORM\Table(name="games")
- * @ORM\Entity(repositoryClass="GameShelf\GamesBundle\Entity\GameRepository")
- */
- class Game
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var integer
- *
- * @ORM\Column(name="parent_id", type="integer")
- */
- private $parent_id;
- /**
- * @var string
- *
- * @ORM\Column(name="name", type="string", length=255)
- */
- private $name;
- /**
- * @var string
- *
- * @ORM\Column(name="slug", type="string", length=255)
- */
- private $slug;
- /**
- * @var string
- *
- * @ORM\Column(name="reldate", type="string", length=15)
- */
- private $reldate;
- /**
- * @var string
- *
- * @ORM\Column(name="genres", type="string", length=255)
- */
- private $genres;
- /**
- * @var string
- *
- * @ORM\Column(name="platforms", type="string", length=255)
- */
- private $platforms;
- /**
- * @var string
- *
- * @ORM\Column(name="developers", type="string", length=255)
- */
- private $developers;
- /**
- * @var string
- *
- * @ORM\Column(name="description", type="string", length=255)
- */
- private $description;
- /**
- * @var string
- *
- * @ORM\Column(name="desc_src", type="string", length=255)
- */
- private $desc_src;
- /**
- * @var string
- *
- * @ORM\Column(name="rate", type="string", length=255)
- */
- private $rate;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set parent_id
- *
- * @param integer $parentId
- * @return Game
- */
- public function setParentId($parentId)
- {
- $this->parent_id = $parentId;
- return $this;
- }
- /**
- * Get parent_id
- *
- * @return integer
- */
- public function getParentId()
- {
- return $this->parent_id;
- }
- /**
- * Set name
- *
- * @param string $name
- * @return Game
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * Get name
- *
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Set slug
- *
- * @param string $slug
- * @return Game
- */
- public function setSlug($slug)
- {
- $this->slug = $slug;
- return $this;
- }
- /**
- * Get slug
- *
- * @return string
- */
- public function getSlug()
- {
- return $this->slug;
- }
- /**
- * Set reldate
- *
- * @param \DateTime $reldate
- * @return Game
- */
- public function setReldate($reldate)
- {
- $this->reldate = $reldate;
- return $this;
- }
- /**
- * Get reldate
- *
- * @return \DateTime
- */
- public function getReldate()
- {
- return $this->reldate;
- }
- /**
- * Set genres
- *
- * @param string $genres
- * @return Game
- */
- public function setGenres($genres)
- {
- $this->genres = $genres;
- return $this;
- }
- /**
- * Get genres
- *
- * @return string
- */
- public function getGenres()
- {
- return $this->genres;
- }
- /**
- * Set platforms
- *
- * @param string $platforms
- * @return Game
- */
- public function setPlatforms($platforms)
- {
- $this->platforms = $platforms;
- return $this;
- }
- /**
- * Get platforms
- *
- * @return string
- */
- public function getPlatforms()
- {
- return $this->platforms;
- }
- /**
- * Set developers
- *
- * @param string $developers
- * @return Game
- */
- public function setDevelopers($developers)
- {
- $this->developers = $developers;
- return $this;
- }
- /**
- * Get developers
- *
- * @return string
- */
- public function getDevelopers()
- {
- return $this->developers;
- }
- /**
- * Set description
- *
- * @param string $description
- * @return Game
- */
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- /**
- * Get description
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Set desc_src
- *
- * @param string $descSrc
- * @return Game
- */
- public function setDescSrc($descSrc)
- {
- $this->desc_src = $descSrc;
- return $this;
- }
- /**
- * Get desc_src
- *
- * @return string
- */
- public function getDescSrc()
- {
- return $this->desc_src;
- }
- /**
- * Set rate
- *
- * @param string $rate
- * @return Game
- */
- public function setRate($rate)
- {
- $this->rate = $rate;
- return $this;
- }
- /**
- * Get rate
- *
- * @return string
- */
- public function getRate()
- {
- return $this->rate;
- }
- /**
- * @ORM\ManyToOne(targetEntity="GameShelf\UsersBundle\Entity\Ownership", inversedBy="game")
- * @ORM\JoinColumn(name="id", referencedColumnName="game")
- */
- protected $ownership;
- /**
- * Set ownership
- *
- * @param \GameShelf\UsersBundle\Entity\Ownership $ownership
- * @return Game
- */
- public function setOwnership(\GameShelf\UsersBundle\Entity\Ownership $ownership = null)
- {
- $this->ownership = $ownership;
- return $this;
- }
- /**
- * Get ownership
- *
- * @return \GameShelf\UsersBundle\Entity\Ownership
- */
- public function getOwnership()
- {
- return $this->ownership;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement