vendor/theatre/core/src/Entity/ObjectContent.php line 13

Open in your IDE?
  1. <?php
  2. namespace TheatreCore\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ObjectContent
  6.  *
  7.  * @ORM\Table(name="object_content", indexes={@ORM\Index(name="range", columns={"range"}), @ORM\Index(name="idcontent", columns={"idcontent"}), @ORM\Index(name="idclassification", columns={"idclassification"})})
  8.  * @ORM\Entity(repositoryClass="TheatreCore\Repository\ObjectContentRepository")
  9.  */
  10. class ObjectContent
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="idobject", type="integer", nullable=false, options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="NONE")
  18.      */
  19.     private $idobject;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="object", type="string", length=0, nullable=false)
  24.      * @ORM\Id
  25.      * @ORM\GeneratedValue(strategy="NONE")
  26.      */
  27.     private $object;
  28.     /**
  29.      * @var int|null
  30.      *
  31.      * @ORM\Column(name="`range`", type="integer", nullable=true)
  32.      */
  33.     private $range '0';
  34.     /**
  35.      * @var \Contents
  36.      *
  37.      * @ORM\Id
  38.      * @ORM\GeneratedValue(strategy="NONE")
  39.      * @ORM\OneToOne(targetEntity="Contents")
  40.      * @ORM\JoinColumns({
  41.      *   @ORM\JoinColumn(name="idcontent", referencedColumnName="idcontent")
  42.      * })
  43.      */
  44.     private $idcontent;
  45.     /**
  46.      * @var \Classifications
  47.      *
  48.      * @ORM\ManyToOne(targetEntity="Classifications")
  49.      * @ORM\JoinColumns({
  50.      *   @ORM\JoinColumn(name="idclassification", referencedColumnName="idclassification")
  51.      * })
  52.      */
  53.     private $idclassification;
  54.     /**
  55.      * Set idobject.
  56.      *
  57.      * @param int $idobject
  58.      *
  59.      * @return ObjectContent
  60.      */
  61.     public function setIdobject($idobject)
  62.     {
  63.         $this->idobject $idobject;
  64.         return $this;
  65.     }
  66.     /**
  67.      * Get idobject.
  68.      *
  69.      * @return int
  70.      */
  71.     public function getIdobject()
  72.     {
  73.         return $this->idobject;
  74.     }
  75.     /**
  76.      * Set object.
  77.      *
  78.      * @param string $object
  79.      *
  80.      * @return ObjectContent
  81.      */
  82.     public function setObject($object)
  83.     {
  84.         $this->object $object;
  85.         return $this;
  86.     }
  87.     /**
  88.      * Get object.
  89.      *
  90.      * @return string
  91.      */
  92.     public function getObject()
  93.     {
  94.         return $this->object;
  95.     }
  96.     /**
  97.      * Set range.
  98.      *
  99.      * @param int|null $range
  100.      *
  101.      * @return ObjectContent
  102.      */
  103.     public function setRange($range null)
  104.     {
  105.         $this->range $range;
  106.         return $this;
  107.     }
  108.     /**
  109.      * Get range.
  110.      *
  111.      * @return int|null
  112.      */
  113.     public function getRange()
  114.     {
  115.         return $this->range;
  116.     }
  117.     /**
  118.      * Set idcontent.
  119.      *
  120.      * @param \Contents $idcontent
  121.      *
  122.      * @return ObjectContent
  123.      */
  124.     public function setIdcontent(Contents $idcontent)
  125.     {
  126.         $this->idcontent $idcontent;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Get idcontent.
  131.      *
  132.      * @return \Contents
  133.      */
  134.     public function getIdcontent()
  135.     {
  136.         return $this->idcontent;
  137.     }
  138.     /**
  139.      * Set idclassification.
  140.      *
  141.      * @param \Classifications|null $idclassification
  142.      *
  143.      * @return ObjectContent
  144.      */
  145.     public function setIdclassification(Classifications $idclassification null)
  146.     {
  147.         $this->idclassification $idclassification;
  148.         return $this;
  149.     }
  150.     /**
  151.      * Get idclassification.
  152.      *
  153.      * @return \Classifications|null
  154.      */
  155.     public function getIdclassification()
  156.     {
  157.         return $this->idclassification;
  158.     }
  159. }