src/main/php/Properties.php
public static function fromString(string $propertyString): self
    {
        $propertyData = @parse_ini_string($propertyString, true);
        if (false === $propertyData) {
            throw new \InvalidArgumentException(
                    'Property string contains errors and can not be parsed: '
                    . lastErrorMessage()->value()
            );
        }

        return new static($propertyData);
    }
public static function fromString(string $propertyString): self
    {
        $propertyData = @parse_ini_string($propertyString, true);
        if (false === $propertyData) {
            throw new \InvalidArgumentException(
                    'Property string contains errors and can not be parsed: '
                    . lastErrorMessage()->value()
            );
        }

        return new static($propertyData);
    }
public static function fromString ( string $ propertyString ) : self { $ propertyData = @ parse_ini_string ( $ propertyString , true ) ; if ( false === $ propertyData ) { throw new \ InvalidArgumentException ( 'Property string contains errors and can not be parsed: ' . lastErrorMessage ( ) -> value ( ) ) ; } return new static ( $ propertyData ) ; }
construct class from string

@api
@param   string  $propertyString
@return  \stubbles\values\Properties
@throws  \InvalidArgumentException
@since   2.0.0
construct class from string