Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
4 / 4
BasePlugin
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
4 / 4
 setup
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 getInterfaceList
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
declare(strict_types = 1);
namespace Siesta\GeneratorPlugin;
use Siesta\CodeGenerator\CodeGenerator;
use Siesta\Contract\Plugin;
use Siesta\Model\Entity;
abstract class BasePlugin implements Plugin
{
    /**
     * @var Entity
     */
    protected $entity;
    /**
     * @var CodeGenerator
     */
    protected $codeGenerator;
    /**
     * @param Entity $entity
     * @param CodeGenerator $codeGenerator
     */
    protected function setup(Entity $entity, CodeGenerator $codeGenerator)
    {
        $this->entity = $entity;
        $this->codeGenerator = $codeGenerator;
    }
    /**
     * @return array
     */
    public function getInterfaceList() : array
    {
        return [];
    }
}