<?php

namespace Diamond\Infrastructure\Models\Template;

use Diamond\Domain\Site\Contracts\SiteEntityInterface;
use Diamond\Domain\Template\Contracts\TemplateEntityInterface;
use Diamond\Infrastructure\Models\Template\Base\Template as BaseTemplate;

/**
 * Skeleton subclass for representing a row from the '_templates' table.
 *
 *
 *
 * You should add additional methods to this class to meet the
 * application requirements.  This class will only be generated as
 * long as it does not already exist in the output directory.
 */
class Template extends BaseTemplate implements TemplateEntityInterface
{
    /**
     * @return SiteEntityInterface
     * @throws \Propel\Runtime\Exception\PropelException
     */
    public function getSite(): SiteEntityInterface
    {
        return $this->getDomain();
    }

}
