Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.17 KB | None | 0 0
  1. <?php
  2.  
  3. namespace GameShelf\GamesBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * Game
  9.  *
  10.  * @ORM\Table(name="games")
  11.  * @ORM\Entity(repositoryClass="GameShelf\GamesBundle\Entity\GameRepository")
  12.  */
  13. class Game
  14. {
  15.     /**
  16.      * @var integer
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.  
  24.     /**
  25.      * @var integer
  26.      *
  27.      * @ORM\Column(name="parent_id", type="integer")
  28.      */
  29.     private $parent_id;
  30.  
  31.     /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(name="name", type="string", length=255)
  35.      */
  36.     private $name;
  37.  
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="slug", type="string", length=255)
  42.      */
  43.     private $slug;
  44.  
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="reldate", type="string", length=15)
  49.      */
  50.     private $reldate;
  51.  
  52.     /**
  53.      * @var string
  54.      *
  55.      * @ORM\Column(name="genres", type="string", length=255)
  56.      */
  57.     private $genres;
  58.  
  59.     /**
  60.      * @var string
  61.      *
  62.      * @ORM\Column(name="platforms", type="string", length=255)
  63.      */
  64.     private $platforms;
  65.  
  66.     /**
  67.      * @var string
  68.      *
  69.      * @ORM\Column(name="developers", type="string", length=255)
  70.      */
  71.     private $developers;
  72.  
  73.     /**
  74.      * @var string
  75.      *
  76.      * @ORM\Column(name="description", type="string", length=255)
  77.      */
  78.     private $description;
  79.  
  80.     /**
  81.      * @var string
  82.      *
  83.      * @ORM\Column(name="desc_src", type="string", length=255)
  84.      */
  85.     private $desc_src;
  86.  
  87.     /**
  88.      * @var string
  89.      *
  90.      * @ORM\Column(name="rate", type="string", length=255)
  91.      */
  92.     private $rate;
  93.  
  94.  
  95.     /**
  96.      * Get id
  97.      *
  98.      * @return integer
  99.      */
  100.     public function getId()
  101.     {
  102.         return $this->id;
  103.     }
  104.  
  105.     /**
  106.      * Set parent_id
  107.      *
  108.      * @param integer $parentId
  109.      * @return Game
  110.      */
  111.     public function setParentId($parentId)
  112.     {
  113.         $this->parent_id = $parentId;
  114.    
  115.         return $this;
  116.     }
  117.  
  118.     /**
  119.      * Get parent_id
  120.      *
  121.      * @return integer
  122.      */
  123.     public function getParentId()
  124.     {
  125.         return $this->parent_id;
  126.     }
  127.  
  128.     /**
  129.      * Set name
  130.      *
  131.      * @param string $name
  132.      * @return Game
  133.      */
  134.     public function setName($name)
  135.     {
  136.         $this->name = $name;
  137.    
  138.         return $this;
  139.     }
  140.  
  141.     /**
  142.      * Get name
  143.      *
  144.      * @return string
  145.      */
  146.     public function getName()
  147.     {
  148.         return $this->name;
  149.     }
  150.  
  151.     /**
  152.      * Set slug
  153.      *
  154.      * @param string $slug
  155.      * @return Game
  156.      */
  157.     public function setSlug($slug)
  158.     {
  159.         $this->slug = $slug;
  160.    
  161.         return $this;
  162.     }
  163.  
  164.     /**
  165.      * Get slug
  166.      *
  167.      * @return string
  168.      */
  169.     public function getSlug()
  170.     {
  171.         return $this->slug;
  172.     }
  173.  
  174.     /**
  175.      * Set reldate
  176.      *
  177.      * @param \DateTime $reldate
  178.      * @return Game
  179.      */
  180.     public function setReldate($reldate)
  181.     {
  182.         $this->reldate = $reldate;
  183.    
  184.         return $this;
  185.     }
  186.  
  187.     /**
  188.      * Get reldate
  189.      *
  190.      * @return \DateTime
  191.      */
  192.     public function getReldate()
  193.     {
  194.         return $this->reldate;
  195.     }
  196.  
  197.     /**
  198.      * Set genres
  199.      *
  200.      * @param string $genres
  201.      * @return Game
  202.      */
  203.     public function setGenres($genres)
  204.     {
  205.         $this->genres = $genres;
  206.    
  207.         return $this;
  208.     }
  209.  
  210.     /**
  211.      * Get genres
  212.      *
  213.      * @return string
  214.      */
  215.     public function getGenres()
  216.     {
  217.         return $this->genres;
  218.     }
  219.  
  220.     /**
  221.      * Set platforms
  222.      *
  223.      * @param string $platforms
  224.      * @return Game
  225.      */
  226.     public function setPlatforms($platforms)
  227.     {
  228.         $this->platforms = $platforms;
  229.    
  230.         return $this;
  231.     }
  232.  
  233.     /**
  234.      * Get platforms
  235.      *
  236.      * @return string
  237.      */
  238.     public function getPlatforms()
  239.     {
  240.         return $this->platforms;
  241.     }
  242.  
  243.     /**
  244.      * Set developers
  245.      *
  246.      * @param string $developers
  247.      * @return Game
  248.      */
  249.     public function setDevelopers($developers)
  250.     {
  251.         $this->developers = $developers;
  252.    
  253.         return $this;
  254.     }
  255.  
  256.     /**
  257.      * Get developers
  258.      *
  259.      * @return string
  260.      */
  261.     public function getDevelopers()
  262.     {
  263.         return $this->developers;
  264.     }
  265.  
  266.     /**
  267.      * Set description
  268.      *
  269.      * @param string $description
  270.      * @return Game
  271.      */
  272.     public function setDescription($description)
  273.     {
  274.         $this->description = $description;
  275.    
  276.         return $this;
  277.     }
  278.  
  279.     /**
  280.      * Get description
  281.      *
  282.      * @return string
  283.      */
  284.     public function getDescription()
  285.     {
  286.         return $this->description;
  287.     }
  288.  
  289.     /**
  290.      * Set desc_src
  291.      *
  292.      * @param string $descSrc
  293.      * @return Game
  294.      */
  295.     public function setDescSrc($descSrc)
  296.     {
  297.         $this->desc_src = $descSrc;
  298.    
  299.         return $this;
  300.     }
  301.  
  302.     /**
  303.      * Get desc_src
  304.      *
  305.      * @return string
  306.      */
  307.     public function getDescSrc()
  308.     {
  309.         return $this->desc_src;
  310.     }
  311.  
  312.     /**
  313.      * Set rate
  314.      *
  315.      * @param string $rate
  316.      * @return Game
  317.      */
  318.     public function setRate($rate)
  319.     {
  320.         $this->rate = $rate;
  321.    
  322.         return $this;
  323.     }
  324.  
  325.     /**
  326.      * Get rate
  327.      *
  328.      * @return string
  329.      */
  330.     public function getRate()
  331.     {
  332.         return $this->rate;
  333.     }
  334.  
  335.     /**
  336.      * @ORM\ManyToOne(targetEntity="GameShelf\UsersBundle\Entity\Ownership", inversedBy="game")
  337.      * @ORM\JoinColumn(name="id", referencedColumnName="game")
  338.      */
  339.     protected $ownership;
  340.  
  341.     /**
  342.      * Set ownership
  343.      *
  344.      * @param \GameShelf\UsersBundle\Entity\Ownership $ownership
  345.      * @return Game
  346.      */
  347.     public function setOwnership(\GameShelf\UsersBundle\Entity\Ownership $ownership = null)
  348.     {
  349.         $this->ownership = $ownership;
  350.    
  351.         return $this;
  352.     }
  353.  
  354.     /**
  355.      * Get ownership
  356.      *
  357.      * @return \GameShelf\UsersBundle\Entity\Ownership
  358.      */
  359.     public function getOwnership()
  360.     {
  361.         return $this->ownership;
  362.     }
  363. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement