Advertisement
Guest User

Answer

a guest
Nov 19th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.00 KB | None | 0 0
  1. <?php
  2.  
  3. namespace dn\AnkieterBundle\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6.  
  7. /**
  8.  * dn\AnkieterBundle\Entity\Answer
  9.  *
  10.  * @ORM\Table()
  11.  * @ORM\Entity
  12.  */
  13. class Answer
  14. {
  15.     /**
  16.      * @var integer $id
  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 $position
  26.      *
  27.      * @ORM\Column(name="position", type="integer")
  28.      */
  29.     private $position;
  30.  
  31.     /**
  32.      * @var string $content
  33.      *
  34.      * @ORM\Column(name="content", type="string", length=255)
  35.      */
  36.     private $content;
  37.  
  38.  
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity="Question", inversedBy="answers")
  41.      * @ORM\JoinColumn(name="question_id", referencedColumnName="id")
  42.      */
  43.     protected $question;
  44.  
  45.  
  46.     /**
  47.      * Get id
  48.      *
  49.      * @return integer
  50.      */
  51.     public function getId()
  52.     {
  53.         return $this->id;
  54.     }
  55.  
  56.     /**
  57.      * Set position
  58.      *
  59.      * @param integer $position
  60.      */
  61.     public function setPosition($position)
  62.     {
  63.         $this->position = $position;
  64.     }
  65.  
  66.     /**
  67.      * Get position
  68.      *
  69.      * @return integer
  70.      */
  71.     public function getPosition()
  72.     {
  73.         return $this->position;
  74.     }
  75.  
  76.     /**
  77.      * Set content
  78.      *
  79.      * @param string $content
  80.      */
  81.     public function setContent($content)
  82.     {
  83.         $this->content = $content;
  84.     }
  85.  
  86.     /**
  87.      * Get content
  88.      *
  89.      * @return string
  90.      */
  91.     public function getContent()
  92.     {
  93.         return $this->content;
  94.     }
  95.  
  96.     /**
  97.      * Set question
  98.      *
  99.      * @param dn\AnkieterBundle\Entity\Question $question
  100.      */
  101.     public function setQuestion(\dn\AnkieterBundle\Entity\Question $question)
  102.     {
  103.         $this->question = $question;
  104.     }
  105.  
  106.     /**
  107.      * Get question
  108.      *
  109.      * @return dn\AnkieterBundle\Entity\Question
  110.      */
  111.     public function getQuestion()
  112.     {
  113.         return $this->question;
  114.     }
  115. }
  116.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement