for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\Migrations;
use Throwable;
use function count;
/**
* @internal
*/
class VersionExecutionResult
{
/** @var string[] */
private $sql = [];
/** @var mixed[] */
private $params = [];
private $types = [];
/** @var null|float */
private $time;
private $memory;
/** @var bool */
private $skipped = false;
private $error = false;
/** @var null|Throwable */
private $exception;
* @param string[] $sql
* @param mixed[] $params
* @param mixed[] $types
public function __construct(array $sql = [], array $params = [], array $types = [])
$this->sql = $sql;
$this->params = $params;
$this->types = $types;
}
public function hasSql() : bool
return count($this->sql) !== 0;
* @return string[]
public function getSql() : array
return $this->sql;
public function setSql(array $sql) : void
* @return mixed[]
public function getParams() : array
return $this->params;
public function setParams(array $params) : void
public function getTypes() : array
return $this->types;
public function setTypes(array $types) : void
public function getTime() : ?float
return $this->time;
public function setTime(float $time) : void
$this->time = $time;
public function getMemory() : ?float
return $this->memory;
public function setMemory(float $memory) : void
$this->memory = $memory;
public function setSkipped(bool $skipped) : void
$this->skipped = $skipped;
public function isSkipped() : bool
return $this->skipped;
public function setError(bool $error) : void
$this->error = $error;
public function hasError() : bool
return $this->error;
public function setException(Throwable $exception) : void
$this->exception = $exception;
public function getException() : ?Throwable
return $this->exception;