src/ReflectableTrait.php
public function set($name, $value)
    {
        $this->checkClassObjAndReflectionProperties();

        list($reflection, $classObj) = $this->getReflectionAndClassObject();

        $property = $reflection->getProperty($name);
        $this->setAccessibleOn($property);

        $property->setValue($classObj, $value);
    }
public function set($name, $value)
    {
        $this->checkClassObjAndReflectionProperties();

        list($reflection, $classObj) = $this->getReflectionAndClassObject();

        $property = $reflection->getProperty($name);
        $this->setAccessibleOn($property);

        $property->setValue($classObj, $value);
    }
Set value of public/private/protected properties.

@param $name
@param $value

@throws NotFoundException