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

@ -54,12 +54,14 @@ class NetherPortal extends Transparent{
/**
* @throws \InvalidArgumentException
* @return $this
*/
public function setAxis(int $axis) : void{
public function setAxis(int $axis) : self{
if($axis !== Facing::AXIS_X and $axis !== Facing::AXIS_Z){
throw new \InvalidArgumentException("Invalid axis");
}
$this->axis = $axis;
return $this;
}
public function getLightLevel() : int{