<?php

declare(strict_types=1);

namespace Autogedal\LegalGuarantee\Block;

use Magento\Framework\View\Element\Template;

class Policy extends Template
{
    protected $_template = 'Autogedal_LegalGuarantee::legal-guarantee/policy.phtml';

    protected function _prepareLayout()
    {
        parent::_prepareLayout();
        $this->addChild('notice', Template::class, [
            'template' => 'Autogedal_LegalGuarantee::legal-guarantee/notice.phtml',
        ]);

        return $this;
    }
}
