<?php

namespace App\Form\Model;

use App\Entity\Action;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;

class NotationIaTempCollectionModel
{
    public $action;
    public $notationModels;

    public function __construct(?Action $action)
    {
        $this->action = $action;
        $this->notationModels = new ArrayCollection();
    }

    public function getAction(): ?Action
    {
        return $this->action;
    }

    public function addNotationModel(NotationIaTempModel $notationModel): self
    {
        $this->notationModels[] = $notationModel;
        return $this;
    }

    /**
     * @return Collection|NotationIaTempModel[]
     */
    public function getNotationModels(): Collection
    {
        return $this->notationModels;
    }
}
