jeyroik/df-templates

View on GitHub
src/components/templates/contexts/Context.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace deflou\components\templates\contexts;

use deflou\interfaces\templates\contexts\IContext;
use extas\components\Item;
use extas\components\parameters\THasParams;
use extas\components\THasName;

abstract class Context extends Item implements IContext
{
    use THasName;
    use THasParams;

    public function __toString(): string
    {
        return $this->getName();
    }

    protected function getSubjectForExtension(): string
    {
        return static::SUBJECT;
    }
}