<?php

namespace App\Model\Entities\GameData\Mmorpg;

use App\Model\Entities\BaseNamedRecord;
use App\Model\Interfaces\ICommonRecord;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="boss")
 */
class Boss extends BaseNamedRecord implements ICommonRecord
{
    /**
     * @var Instance
     * @ORM\ManyToOne(targetEntity="Instance")
     */
    protected $instance;

    /**
     * @return Instance
     */
    public function getInstance() : Instance
    {
        return $this->instance;
    }

    /**
     * @param Instance $instance
     */
    public function setInstance(Instance $instance)
    {
        $this->instance = $instance;
    }
}