for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpGitHooks\Infrastructure\Common;
use PhpGitHooks\Application\Config\HookConfigInterface;
/**
* Class PreCommitExecutor.
*/
abstract class PreCommitExecutor
{
/** @var HookConfigInterface */
protected $preCommitConfig;
* @return bool
protected function isEnabled()
return $this->preCommitConfig->isEnabled($this->commandName());
}
* @return array
protected function getMessages()
return $this->preCommitConfig->getMessages();
* @return string
abstract protected function commandName();