PHP Class PhpGitHooks\Module\JsonLint\Service\JsonLintTool

显示文件 Open project: bruli/php-git-hooks Class Usage Examples

Public Methods

Method Description
__construct ( JsonLintToolExecutor $jsonLintToolExecutor, Bruli\EventBusBundle\QueryBus\QueryBus $queryBus ) JsonLintTool constructor.
execute ( array $files, string $errorMessage )

Private Methods

Method Description
jsonFilesExists ( array $files ) : boolean

Method Details

__construct() public method

JsonLintTool constructor.
public __construct ( JsonLintToolExecutor $jsonLintToolExecutor, Bruli\EventBusBundle\QueryBus\QueryBus $queryBus )
$jsonLintToolExecutor JsonLintToolExecutor
$queryBus Bruli\EventBusBundle\QueryBus\QueryBus

execute() public method

public execute ( array $files, string $errorMessage )
$files array
$errorMessage string