src/ParameterSetter.php
private function setParameter($subject, string $key, $value)
    {
        $setter = 'set' . $this->snakeToCamelCase($key);
        if (is_callable([$subject, $setter])) {
            call_user_func([$subject, $setter], $value);
        }
    }
private function setParameter($subject, string $key, $value)
    {
        $setter = 'set' . $this->snakeToCamelCase($key);
        if (is_callable([$subject, $setter])) {
            call_user_func([$subject, $setter], $value);
        }
    }
private function setParameter ( $ subject , string $ key , $ value ) { $ setter = 'set' . $ this -> snakeToCamelCase ( $ key ) ; if ( is_callable ( [ $ subject , $ setter ] ) ) { call_user_func ( [ $ subject , $ setter ] , $ value ) ; } }
Set a parameter on a subject.

@param mixed  $subject
@param string $key
@param mixed  $value

@return void
Set a parameter on a subject .