src/Core/Injector/Injector.php
protected function setObjectProperty($object, $name, $value)
    {
        if (ClassInfo::hasMethod($object, 'set' . $name)) {
            $object->{'set' . $name}($value);
        } else {
            $object->$name = $value;
        }
    }
protected function setObjectProperty($object, $name, $value)
    {
        if (ClassInfo::hasMethod($object, 'set' . $name)) {
            $object->{'set' . $name}($value);
        } else {
            $object->$name = $value;
        }
    }
protected function setObjectProperty ( $ object , $ name , $ value ) { if ( ClassInfo :: hasMethod ( $ object , 'set' . $ name ) ) { $ object -> { 'set' . $ name } ( $ value ) ; } else { $ object -> $ name = $ value ; } }
Helper to set a property's value

@param object $object
Set an object's property to a specific value
@param string $name
The name of the property to set
@param mixed $value
The value to set
Helper to set a property s value