for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Console;
use Symfony\Component\Console\Output\BufferedOutput;
use Symfony\Component\Console\Output\OutputInterface;
final class CommandOutput
{
/** @var int */
private $code = 0;
/** @var OutputInterface */
private $output = '';
* @param int $code
* @param OutputInterface $output
public function __construct(int $code, OutputInterface $output)
$this->code = $code;
$this->output = $output;
}
* @return int
public function getCode(): int
return $this->code;
* @return OutputInterface|BufferedOutput
public function getOutput(): OutputInterface
return $this->output;