<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity()
 */
class CommentContent extends CommentAbstract
{
    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\Content")
     * @Assert\NotBlank()
     * @ORM\JoinColumn(onDelete="CASCADE")
     */
    private $content;

    public function getContent(): ?Content
    {
        return $this->content;
    }

    public function setContent(?Content $content): self
    {
        $this->content = $content;

        return $this;
    }
}
