<?php

namespace App\Model\Entities\Components\Event;

use App\Model\Entities\BaseRecord;
use App\Model\Enums\Layouts\CalendarLayout;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="calendar")
 */
class Calendar extends BaseRecord
{
    /**
     * @var CalendarLayout
     * @ORM\Column(type="string")
     */
    protected $layout;

    /**
     * @return CalendarLayout
     */
    public function getLayout()
    {
        return new CalendarLayout($this->layout);
    }

    /**
     * @param CalendarLayout $layout
     */
    public function setLayout(CalendarLayout $layout)
    {
        $this->layout = $layout;
    }


}