PsyGit\Command\Push::__invoke PHP Метод

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

public __invoke ( string $remote, string $branch, string $option = self::PUSH_NORMAL )
$remote string
$branch string
$option string
    public function __invoke(string $remote, string $branch, string $option = self::PUSH_NORMAL)
    {
        $commandHandler = $this->commandHandler;
        $option = escapeshellarg($option);
        $remote = escapeshellarg($remote);
        $branch = escapeshellarg($branch);
        return $commandHandler("git push {$option} {$remote} {$branch}");
    }