Parser

Parser which parse and store XML files with a dependency structure.

package

Default

Methods

Initialize the parser object.

__construct(string|null $fileName = null) 
Throws
\Dotpay\Exception\Loader\XmlNotFoundException

Thrown when XML file is not found

Arguments

$fileName

string|null

Name of an XML file with dependency structure. If null then the default di.xml will be used

Return an array with Object elements created after parsing the XML file.

getObjects() : array

Response

array

Parse the XML file and build a list of Object elements.

parse() 

Properties

An object which represents XML preparsed file

xml : \SimpleXMLElement
var

An object which represents XML preparsed file

Type(s)

\SimpleXMLElement

An array of Object elements which represent parsed object nodes

objects : array
var

An array of Object elements which represent parsed object nodes

Type(s)

array