<?php

namespace App\Entity;

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

/**
 * @ORM\Entity()
 */
class FileAssociationNegotiationMessage extends FileAssociationAbstract
{
    /**
     * @ORM\ManyToOne(targetEntity="App\Entity\NegotiationMessage", inversedBy="attachments")
     * @ORM\JoinColumn(onDelete="CASCADE")
     * @Assert\NotBlank()
     */
    private $negotiationMessage;

    public function getNegotiationMessage(): ?NegotiationMessage
    {
        return $this->negotiationMessage;
    }

    public function setNegotiationMessage(?NegotiationMessage $negotiationMessage): self
    {
        $this->negotiationMessage = $negotiationMessage;

        return $this;
    }
}
