lib/boab/cms-bundle/src/Entity/ViewCounter.php line 15

Open in your IDE?
  1. <?php
  2. namespace Boab\CmsBundle\Entity;
  3. use Boab\CmsBundle\Entity\ContentInterface;
  4. use Tchoulom\ViewCounterBundle\Entity\ViewCounter as BaseViewCounter;
  5. use Doctrine\ORM\Mapping as ORM;
  6.     
  7. /**
  8.  * ViewCounter.
  9.  *
  10.  * @ORM\Table(name="view_counter")
  11.  * @ORM\Entity()
  12.  */
  13. class ViewCounter extends BaseViewCounter
  14. {
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="Content", cascade={"persist"}, inversedBy="viewCounters")
  17.      * @ORM\JoinColumn(nullable=true)
  18.      */
  19.     private $content;
  20.     /**
  21.      * Gets Content
  22.      *
  23.      * @return Content
  24.      */
  25.     public function getContent()
  26.     {
  27.         return $this->Content;
  28.     }
  29.     /**
  30.      * Sets Content
  31.      *
  32.      * @param Content $Content
  33.      *
  34.      * @return $this
  35.      */
  36.     public function setContent(ContentInterface $Content)
  37.     {
  38.         $this->Content $Content;
  39.         return $this;
  40.     }
  41. }