Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
chore: PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cawolf committed Mar 13, 2020
1 parent 9a5a3c5 commit e24056b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 49 deletions.
2 changes: 1 addition & 1 deletion src/ClientGuzzle.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use GuzzleHttp\RequestOptions;
use RuntimeException;

class ClientGuzzle implements Client
final class ClientGuzzle implements Client
{
private $apiToken;
private $client;
Expand Down
2 changes: 1 addition & 1 deletion src/ClientPSR.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Psr\Http\Message\UriFactoryInterface;
use RuntimeException;

class ClientPSR implements Client
final class ClientPSR implements Client
{
private $apiUri;
private $apiToken;
Expand Down
49 changes: 2 additions & 47 deletions src/MonitoringData.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use JsonSerializable;
use RuntimeException;

class MonitoringData implements JsonSerializable
final class MonitoringData implements JsonSerializable
{
public const STATUS_OK = 'ok';
public const STATUS_ERROR = 'error';
Expand Down Expand Up @@ -56,52 +56,7 @@ public function setTileExpansionGrowthExpression(string $tileExpansionGrowthExpr
$this->tileExpansionGrowthExpression = $tileExpansionGrowthExpression;
}

public function getId(): string
{
return $this->id;
}

public function getStatus(): string
{
return $this->status;
}

public function getPayload(): string
{
return $this->payload;
}

public function getIdleTimeoutInSeconds(): int
{
return $this->idleTimeoutInSeconds;
}

public function getPriority(): int
{
return $this->priority;
}

public function getDate(): string
{
return $this->date;
}

public function getPath(): ?string
{
return $this->path;
}

public function getTileExpansionIntervalCount(): ?int
{
return $this->tileExpansionIntervalCount;
}

public function getTileExpansionGrowthExpression(): ?string
{
return $this->tileExpansionGrowthExpression;
}

public function jsonSerialize() {
public function jsonSerialize(): array {
return get_object_vars($this);
}
}

0 comments on commit e24056b

Please sign in to comment.