src/Factory.php
public static function property(string $sPropertyName, ?string $sComponentName = '')
    {
        $mProperty = self::getService('properties', $sPropertyName, $sComponentName);

        if (is_callable($mProperty)) {
            return $mProperty();
        } else {
            return $mProperty;
        }
    }
public static function property(string $sPropertyName, ?string $sComponentName = '')
    {
        $mProperty = self::getService('properties', $sPropertyName, $sComponentName);

        if (is_callable($mProperty)) {
            return $mProperty();
        } else {
            return $mProperty;
        }
    }
public static function property ( string $ sPropertyName , ? string $ sComponentName = '' ) { $ mProperty = self :: getService ( 'properties' , $ sPropertyName , $ sComponentName ) ; if ( is_callable ( $ mProperty ) ) { return $ mProperty ( ) ; } else { return $ mProperty ; } }
Return a property from the container.

@param string $sPropertyName  The property name
@param string $sComponentName The name of the component which provides the property

@return mixed
@throws FactoryException
Return a property from the container .