37    public function __construct(
 
   39        private int $oldHydration,
 
   40        private int $newHydration,
 
   42        parent::__construct($block);
 
   45    public function getOldHydration() : 
int{
 
   46        return $this->oldHydration;
 
   49    public function getNewHydration() : 
int{
 
   50        return $this->newHydration;
 
   53    public function setNewHydration(
int $hydration) : 
void{
 
   54        if($hydration < 0 || $hydration > Farmland::MAX_WETNESS){
 
   55            throw new \InvalidArgumentException(
"Hydration must be in range 0 ... " . Farmland::MAX_WETNESS);
 
   57        $this->newHydration = $hydration;