PhpGitHooks\Module\Configuration\Domain\Execute::__construct PHP Метод

__construct() публичный Метод

Execute constructor.
public __construct ( array $tools )
$tools array
    public function __construct(array $tools)
    {
        foreach ($tools as $tool) {
            if (!$tool instanceof ToolInterface) {
                throw new InvalidToolInterfaceException($tool);
            }
        }
        $this->tools = $tools;
    }