src/Tools.php
public static function runSetter(&$object, string $key, $value)
    {
        $methodName = static::getMethodName($key);
        if (method_exists($object, $methodName)) {
            $object->$methodName($value);
        }
    }
public static function runSetter(&$object, string $key, $value)
    {
        $methodName = static::getMethodName($key);
        if (method_exists($object, $methodName)) {
            $object->$methodName($value);
        }
    }
public static function runSetter ( & $ object , string $ key , $ value ) { $ methodName = static :: getMethodName ( $ key ) ; if ( method_exists ( $ object , $ methodName ) ) { $ object -> $ methodName ( $ value ) ; } }
Execute setter method
@param $object
@param string $key
@param $value
Execute setter method