public function addGetterHook(string $propertyName, Closure $hook): self
    {
        $this->propertyDefinition->addGetterHook($propertyName, $hook);
        return $this;
    }
public function addGetterHook(string $propertyName, Closure $hook): self
    {
        $this->propertyDefinition->addGetterHook($propertyName, $hook);
        return $this;
    }
public function addGetterHook ( string $ propertyName , Closure $ hook ) : self { $ this -> propertyDefinition -> addGetterHook ( $ propertyName , $ hook ) ; return $ this ; }
Add a hook for getter with first in, last out rule.

@param string  $propertyName
@param Closure $hook = function (Closure $next(): mixed) use ($this): mixed;
@return PropertyRegister
Add a hook for getter with first in last out rule .