<?php
namespace App\Entity;
use App\Repository\UserContentBlockHistoryRepository;
use App\Traits\CreatedUpdatedTrait;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Table(name="v_user_content_block_history")
* @ORM\Entity(repositoryClass=UserContentBlockHistoryRepository::class)
*/
class UserContentBlockHistory
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @Serializer\Exclude()
*/
private $user;
/**
* @var \App\Entity\ContentBlock
* @ORM\ManyToOne(targetEntity="App\Entity\ContentBlock")
* @Serializer\Type("Relation")
*/
private $content;
use CreatedUpdatedTrait;
public function getId(): ?int
{
return $this->id;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
*/
public function setUser($user): void
{
$this->user = $user;
}
/**
* @return ContentBlock
*/
public function getContent(): ?ContentBlock
{
return $this->content;
}
/**
* @param ContentBlock $content
*/
public function setContent(?ContentBlock $content): void
{
$this->content = $content;
}
}