for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Triadev\EsMigration\Models;
class MigrationStep
{
/** @var int */
private $id;
/** @var string */
private $type;
private $status;
private $error;
/** @var array */
private $params;
private $priority;
/** @var bool */
private $stopOnFailure;
/** @var \DateTime */
private $createdAt;
private $updatedAt;
/**
* MigrationStep constructor.
* @param int $id
* @param string $type
* @param int $status
* @param null|string $error
* @param array $params
* @param int $priority
* @param bool $stopOnFailure
* @param \DateTime $createdAt
* @param \DateTime $updatedAt
*/
public function __construct(
int $id,
string $type,
int $status,
?string $error,
array $params,
int $priority,
bool $stopOnFailure,
\DateTime $createdAt,
\DateTime $updatedAt
) {
$this->id = $id;
$this->type = $type;
$this->status = $status;
$this->error = $error;
$this->params = $params;
$this->priority = $priority;
$this->stopOnFailure = $stopOnFailure;
$this->createdAt = $createdAt;
$this->updatedAt = $updatedAt;
}
* @return int
public function getId(): int
return $this->id;
* @return string
public function getType(): string
return $this->type;
public function getStatus(): int
return $this->status;
public function getError(): string
return $this->error;
* @return array
public function getParams(): array
return $this->params;
* @return \DateTime
public function getCreatedAt(): \DateTime
return $this->createdAt;
public function getUpdatedAt(): \DateTime
return $this->updatedAt;
public function getPriority(): int
return $this->priority;
* @return bool
public function isStopOnFailure(): bool
return $this->stopOnFailure;