Skip to content

Commit

Permalink
Fix ProjectionDetails (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag authored and prolic committed Jan 14, 2020
1 parent 70ed381 commit 8efa651
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Projections/ProjectionDetails.php
Expand Up @@ -31,7 +31,7 @@ final class ProjectionDetails
private $partitionsCached;
/** @var string */
private $status;
/** @var string */
/** @var string|null */
private $stateReason;
/** @var string */
private $name;
Expand All @@ -41,7 +41,7 @@ final class ProjectionDetails
private $position;
/** @var float */
private $progress;
/** @var string */
/** @var string|null */
private $lastCheckpoint;
/** @var int */
private $eventsProcessedAfterRestart;
Expand All @@ -57,7 +57,7 @@ final class ProjectionDetails
private $enableCommandUrl;
/** @var string */
private $disableCommandUrl;
/** @var string */
/** @var string|null */
private $checkpointStatus;
/** @var int */
private $bufferedEvents;
Expand All @@ -75,20 +75,20 @@ public function __construct(
int $readsInProgress,
int $partitionsCached,
string $status,
string $stateReason,
?string $stateReason,
string $name,
string $mode,
string $position,
float $progress,
string $lastCheckpoint,
?string $lastCheckpoint,
int $eventsProcessedAfterRestart,
string $statusUrl,
string $stateUrl,
string $resultUrl,
string $queryUrl,
string $enableCommandUrl,
string $disableCommandUrl,
string $checkpointStatus,
?string $checkpointStatus,
int $bufferedEvents,
int $writePendingEventsBeforeCheckpoint,
int $writePendingEventsAfterCheckpoint
Expand Down Expand Up @@ -160,7 +160,7 @@ public function status(): string
return $this->status;
}

public function stateReason(): string
public function stateReason(): ?string
{
return $this->stateReason;
}
Expand All @@ -185,7 +185,7 @@ public function progress(): float
return $this->progress;
}

public function lastCheckpoint(): string
public function lastCheckpoint(): ?string
{
return $this->lastCheckpoint;
}
Expand Down Expand Up @@ -225,7 +225,7 @@ public function disableCommandUrl(): string
return $this->disableCommandUrl;
}

public function checkpointStatus(): string
public function checkpointStatus(): ?string
{
return $this->checkpointStatus;
}
Expand Down

0 comments on commit 8efa651

Please sign in to comment.