<?php

namespace App\Entity;

use App\Entity\Campaign\LandingPage;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity()
 */
class CommentLandingPage extends CommentAbstract
{
    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\Campaign\LandingPage")
     * @Assert\NotBlank()
     * @ORM\JoinColumn(onDelete="CASCADE")
     */
    private $landingPage;

    public function getLandingPage(): ?LandingPage
    {
        return $this->landingPage;
    }

    public function setLandingPage(?LandingPage $landingPage): self
    {
        $this->landingPage = $landingPage;

        return $this;
    }
}
