private function set($operand, $value)
    {
        $reflector = $this->getReflector();

        if (!$reflector->hasProperty($operand)) {
            throw new RuntimeException('Trying to access undefined property in reflection context: ' . $operand);
        }

        $reflectionProperty = $reflector->getProperty($operand);
        if ($reflectionProperty->isPrivate()) {
            throw new RuntimeException(
                'Private properties are not accessible by default in the reflection context.' . $operand
            );
        }

        $reflectionProperty->setAccessible(true);
        $reflectionProperty->setValue(
            $this,
            $value
        );

        return $this;
    }
private function set($operand, $value)
    {
        $reflector = $this->getReflector();

        if (!$reflector->hasProperty($operand)) {
            throw new RuntimeException('Trying to access undefined property in reflection context: ' . $operand);
        }

        $reflectionProperty = $reflector->getProperty($operand);
        if ($reflectionProperty->isPrivate()) {
            throw new RuntimeException(
                'Private properties are not accessible by default in the reflection context.' . $operand
            );
        }

        $reflectionProperty->setAccessible(true);
        $reflectionProperty->setValue(
            $this,
            $value
        );

        return $this;
    }
private function set ( $ operand , $ value ) { $ reflector = $ this -> getReflector ( ) ; if ( ! $ reflector -> hasProperty ( $ operand ) ) { throw new RuntimeException ( 'Trying to access undefined property in reflection context: ' . $ operand ) ; } $ reflectionProperty = $ reflector -> getProperty ( $ operand ) ; if ( $ reflectionProperty -> isPrivate ( ) ) { throw new RuntimeException ( 'Private properties are not accessible by default in the reflection context.' . $ operand ) ; } $ reflectionProperty -> setAccessible ( true ) ; $ reflectionProperty -> setValue ( $ this , $ value ) ; return $ this ; }
Reflection property setter.
@param string property subject.
@param mixed property value.
@return $this
Reflection property setter .