PHP 8.2.31
Preview: ProcessSignaledException.php Size: 1.02 KB
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/symfony/process/Exception/ProcessSignaledException.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace RectorPrefix202411\Symfony\Component\Process\Exception;

use RectorPrefix202411\Symfony\Component\Process\Process;
/**
 * Exception that is thrown when a process has been signaled.
 *
 * @author Sullivan Senechal <soullivaneuh@gmail.com>
 */
final class ProcessSignaledException extends RuntimeException
{
    /**
     * @var \Symfony\Component\Process\Process
     */
    private $process;
    public function __construct(Process $process)
    {
        $this->process = $process;
        parent::__construct(\sprintf('The process has been signaled with signal "%s".', $process->getTermSignal()));
    }
    public function getProcess() : Process
    {
        return $this->process;
    }
    public function getSignal() : int
    {
        return $this->getProcess()->getTermSignal();
    }
}

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
468 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
514 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
484 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.42 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.02 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.83 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
842 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
499 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).