Make state setters fluent, clean up some BlockFactory noise

This commit is contained in:
Dylan K. Taylor
2018-12-05 15:03:59 +00:00
parent ceef3110d7
commit 2014ebccd8
7 changed files with 49 additions and 32 deletions

View File

@ -137,8 +137,14 @@ abstract class Liquid extends Transparent{
return $this->still;
}
public function setStill(bool $still = true) : void{
/**
* @param bool $still
*
* @return $this
*/
public function setStill(bool $still = true) : self{
$this->still = $still;
return $this;
}
protected function getEffectiveFlowDecay(Block $block) : int{