Skip to content

Commit

Permalink
rotation factor entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Huxinator committed Sep 7, 2023
1 parent 6fef586 commit 7d82a35
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/Orm/Entity/ColonyClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ class ColonyClass implements ColonyClassInterface
*/
private bool $allow_start = false;

/**
* @Column(type="integer", nullable=true)
*
*/
private ?int $min_rot = null;

/**
* @Column(type="integer", nullable=true)
*
*/
private ?int $max_rot = null;

/**
* @var DatabaseEntryInterface|null
*
Expand Down Expand Up @@ -204,4 +216,28 @@ public function hasRing(): bool
{
return $this->getSpecialId() == ColonyEnum::COLONY_CLASS_SPECIAL_RING;
}

public function getMinRot(): ?int
{
return $this->min_rot;
}

public function setMinROt(?int $min_rot): ColonyClassInterface
{
$this->min_rot = $min_rot;

return $this;
}

public function getMaxRot(): ?int
{
return $this->max_rot;
}

public function setMaxROt(?int $max_rot): ColonyClassInterface
{
$this->max_rot = $max_rot;

return $this;
}
}
8 changes: 8 additions & 0 deletions src/Orm/Entity/ColonyClassInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,12 @@ public function setAllowStart(bool $allowStart): ColonyClassInterface;
public function getColonyClassDeposits(): Collection;

public function hasRing(): bool;

public function getMinRot(): ?int;

public function setMinROt(?int $min_rot): ColonyClassInterface;

public function getMaxRot(): ?int;

public function setMaxROt(?int $max_rot): ColonyClassInterface;
}

0 comments on commit 7d82a35

Please sign in to comment.