src/Factory.php
public static function setProperty(string $sPropertyName, $mPropertyValue, ?string $sComponentName = ''): void
    {
        $sComponentName = empty($sComponentName) ? 'nails/common' : $sComponentName;

        if (!self::$aContainers[$sComponentName]['properties']->offsetExists($sPropertyName)) {
            throw new FactoryException(
                'Property "' . $sPropertyName . '" is not provided by component "' . $sComponentName . '"',
                0
            );
        }

        self::$aContainers[$sComponentName]['properties'][$sPropertyName] = $mPropertyValue;
    }
public static function setProperty(string $sPropertyName, $mPropertyValue, ?string $sComponentName = ''): void
    {
        $sComponentName = empty($sComponentName) ? 'nails/common' : $sComponentName;

        if (!self::$aContainers[$sComponentName]['properties']->offsetExists($sPropertyName)) {
            throw new FactoryException(
                'Property "' . $sPropertyName . '" is not provided by component "' . $sComponentName . '"',
                0
            );
        }

        self::$aContainers[$sComponentName]['properties'][$sPropertyName] = $mPropertyValue;
    }
public static function setProperty ( string $ sPropertyName , $ mPropertyValue , ? string $ sComponentName = '' ) : void { $ sComponentName = empty ( $ sComponentName ) ? 'nails/common' : $ sComponentName ; if ( ! self :: $ aContainers [ $ sComponentName ] [ 'properties' ] -> offsetExists ( $ sPropertyName ) ) { throw new FactoryException ( 'Property "' . $ sPropertyName . '" is not provided by component "' . $ sComponentName . '"' , 0 ) ; } self :: $ aContainers [ $ sComponentName ] [ 'properties' ] [ $ sPropertyName ] = $ mPropertyValue ; }
Sets a new value for a property

@param string $sPropertyName  The property name
@param mixed  $mPropertyValue The new property value
@param string $sComponentName The name of the component which provides the property

@return void
@throws FactoryException
Sets a new value for a property