PHP Class WsdlToPhp\PackageGenerator\ConfigurationReader\AbstractYamlReader

Show file Open project: wsdltophp/packagegenerator Class Usage Examples

Protected Properties

Property Type Description
$filename string Path to file to parse

Public Methods

Method Description
instance ( $filename = null ) : AbstractYamlReader
resetInstances ( ) For tests purpose only!

Protected Methods

Method Description
__construct ( $filename ) Use singleton, instead of calling new Options(), use Options::instance()
loadYaml ( string $filename ) : mixed
parseSimpleArray ( string $filename, string $mainKey ) : array

Method Details

__construct() abstract protected method

Use singleton, instead of calling new Options(), use Options::instance()
abstract protected __construct ( $filename )

instance() public static method

public static instance ( $filename = null ) : AbstractYamlReader
return AbstractYamlReader

loadYaml() protected method

protected loadYaml ( string $filename ) : mixed
$filename string
return mixed

parseSimpleArray() protected method

protected parseSimpleArray ( string $filename, string $mainKey ) : array
$filename string
$mainKey string
return array

resetInstances() public static method

For tests purpose only!
public static resetInstances ( )

Property Details

$filename protected property

Path to file to parse
protected string $filename
return string