Consistent fluency for block property setters

This commit is contained in:
Dylan K. Taylor
2020-08-06 13:46:08 +01:00
parent 3d4470ed8d
commit 7399e6944e
8 changed files with 36 additions and 12 deletions

View File

@ -90,24 +90,30 @@ class RedstoneComparator extends Flowable{
return $this->isSubtractMode;
}
public function setSubtractMode(bool $isSubtractMode) : void{
/** @return $this */
public function setSubtractMode(bool $isSubtractMode) : self{
$this->isSubtractMode = $isSubtractMode;
return $this;
}
public function isPowered() : bool{
return $this->powered;
}
public function setPowered(bool $powered) : void{
/** @return $this */
public function setPowered(bool $powered) : self{
$this->powered = $powered;
return $this;
}
public function getSignalStrength() : int{
return $this->signalStrength;
}
public function setSignalStrength(int $signalStrength) : void{
/** @return $this */
public function setSignalStrength(int $signalStrength) : self{
$this->signalStrength = $signalStrength;
return $this;
}
/**