src/AtechNet/CoreBundle/Entity/SurveyMedia.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\AtechNet\CoreBundle\Entity;
  3. use App\AtechNet\CoreBundle\Repository\SurveyMediaRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping\Column;
  6. use Doctrine\ORM\Mapping\Entity;
  7. use Doctrine\ORM\Mapping\JoinColumn;
  8. use Doctrine\ORM\Mapping\ManyToOne;
  9. use Doctrine\ORM\Mapping\OneToMany;
  10. use Doctrine\ORM\Mapping\Table as Table;
  11. /**
  12.  * @Table(name="survey_medias")
  13.  * @Entity(repositoryClass=SurveyMediaRepository::class)
  14.  */
  15. class SurveyMedia extends AbstractEntity
  16. {
  17.     /**
  18.      * @var SurveyQuestion
  19.      *
  20.      * @ManyToOne(targetEntity="SurveyQuestion", inversedBy="medias")
  21.      * @JoinColumn(name="survey_question_id", referencedColumnName="id", nullable=true)
  22.      */
  23.     private $question;
  24.     /**
  25.      * @var Order
  26.      *
  27.      * @ManyToOne(targetEntity="Order")
  28.      * @JoinColumn(name="order_id", referencedColumnName="id", nullable=true)
  29.      */
  30.     private $order;
  31.     /**
  32.      * @var Domain
  33.      *
  34.      * @ManyToOne(targetEntity="Domain")
  35.      * @JoinColumn(name="domain_id", referencedColumnName="id")
  36.      */
  37.     private $domain;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @Column(name="directory", type="text")
  42.      */
  43.     private $directory;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @Column(name="filename", type="text")
  48.      */
  49.     private $filename;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @Column(name="mime_type", type="text")
  54.      */
  55.     private $mimeType;
  56.     /**
  57.      * @var ArrayCollection
  58.      *
  59.      * @OneToMany(targetEntity="ReviewSurveyMedia", mappedBy="surveyMedia")
  60.      **/
  61.     private $reviews;
  62.     /**
  63.      * @return SurveyQuestion
  64.      */
  65.     public function getQuestion()
  66.     {
  67.         return $this->question;
  68.     }
  69.     /**
  70.      * @param SurveyQuestion $question
  71.      */
  72.     public function setQuestion($question)
  73.     {
  74.         $this->question = $question;
  75.     }
  76.     /**
  77.      * @return Order
  78.      */
  79.     public function getOrder()
  80.     {
  81.         return $this->order;
  82.     }
  83.     /**
  84.      * @param Order $order
  85.      */
  86.     public function setOrder($order)
  87.     {
  88.         $this->order = $order;
  89.     }
  90.     /**
  91.      * @return Domain
  92.      */
  93.     public function getDomain()
  94.     {
  95.         return $this->domain;
  96.     }
  97.     /**
  98.      * @param Domain $domain
  99.      */
  100.     public function setDomain($domain)
  101.     {
  102.         $this->domain = $domain;
  103.     }
  104.     /**
  105.      * @return string
  106.      */
  107.     public function getDirectory()
  108.     {
  109.         return $this->directory;
  110.     }
  111.     /**
  112.      * @param string $directory
  113.      */
  114.     public function setDirectory($directory)
  115.     {
  116.         $this->directory = $directory;
  117.     }
  118.     /**
  119.      * @return string
  120.      */
  121.     public function getFilename()
  122.     {
  123.         return $this->filename;
  124.     }
  125.     /**
  126.      * @param string $filename
  127.      */
  128.     public function setFilename($filename)
  129.     {
  130.         $this->filename = $filename;
  131.     }
  132.     /**
  133.      * @return string
  134.      */
  135.     public function getMimeType()
  136.     {
  137.         return $this->mimeType;
  138.     }
  139.     /**
  140.      * @param string $mimeType
  141.      */
  142.     public function setMimeType($mimeType)
  143.     {
  144.         $this->mimeType = $mimeType;
  145.     }
  146.     /**
  147.      * @return ArrayCollection
  148.      */
  149.     public function getReviews()
  150.     {
  151.         return $this->reviews;
  152.     }
  153. }