<?php
namespace Boab\CmsBundle\Entity;
use Boab\CmsBundle\Entity\ContentInterface;
use Tchoulom\ViewCounterBundle\Entity\ViewCounter as BaseViewCounter;
use Doctrine\ORM\Mapping as ORM;
/**
* ViewCounter.
*
* @ORM\Table(name="view_counter")
* @ORM\Entity()
*/
class ViewCounter extends BaseViewCounter
{
/**
* @ORM\ManyToOne(targetEntity="Content", cascade={"persist"}, inversedBy="viewCounters")
* @ORM\JoinColumn(nullable=true)
*/
private $content;
/**
* Gets Content
*
* @return Content
*/
public function getContent()
{
return $this->Content;
}
/**
* Sets Content
*
* @param Content $Content
*
* @return $this
*/
public function setContent(ContentInterface $Content)
{
$this->Content = $Content;
return $this;
}
}