PhpGitHooks\Module\Git\Model\PrePushOriginalExecutorInterface::execute PHP Метод

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

public execute ( string $remote, string $url ) : string | null
$remote string
$url string
Результат string | null
    public function execute($remote, $url);

Usage Example

Пример #1
0
 /**
  * @param string $remote
  * @param string $url
  * @param string $errorMessage
  *
  * @throws InvalidPushException
  */
 private function executeOriginalHook($remote, $url, $errorMessage)
 {
     $response = $this->prePushOriginalExecutor->execute($remote, $url);
     if (null != $response) {
         $this->output->writeln(BadJobLogoResponse::paint($errorMessage));
         throw new InvalidPushException();
     }
 }
PrePushOriginalExecutorInterface