protected function resolveValue(string $setterMethodName, $value)
    {
        $reflection = new ReflectionClass($this);

        $method = $reflection->getMethod($setterMethodName);

        $parameter = $method->getParameters()[0];

        return $this->resolveParameter($parameter, $value);
    }
protected function resolveValue(string $setterMethodName, $value)
    {
        $reflection = new ReflectionClass($this);

        $method = $reflection->getMethod($setterMethodName);

        $parameter = $method->getParameters()[0];

        return $this->resolveParameter($parameter, $value);
    }
protected function resolveValue ( string $ setterMethodName , $ value ) { $ reflection = new ReflectionClass ( $ this ) ; $ method = $ reflection -> getMethod ( $ setterMethodName ) ; $ parameter = $ method -> getParameters ( ) [ 0 ] ; return $ this -> resolveParameter ( $ parameter , $ value ) ; }
Resolve and return the given value, for the given setter method

@param string $setterMethodName The setter method to be invoked
@param mixed $value The value to be passed to the setter method

@return mixed
Resolve and return the given value for the given setter method