ManifestDocument
in package
Table of Contents
Constants
- XMLNS = 'https://phar.io/xml/manifest/1.0'
Properties
- $dom : DOMDocument
Methods
- fromFile() : ManifestDocument
- fromString() : ManifestDocument
- getBundlesElement() : BundlesElement
- getContainsElement() : ContainsElement
- getCopyrightElement() : CopyrightElement
- getRequiresElement() : RequiresElement
- hasBundlesElement() : bool
- __construct() : mixed
- ensureCorrectDocumentType() : void
- fetchElementByName() : DOMElement
Constants
XMLNS
public
mixed
XMLNS
= 'https://phar.io/xml/manifest/1.0'
Properties
$dom
private
DOMDocument
$dom
Methods
fromFile()
public
static fromFile(string $filename) : ManifestDocument
Parameters
- $filename : string
Return values
ManifestDocumentfromString()
public
static fromString(string $xmlString) : ManifestDocument
Parameters
- $xmlString : string
Return values
ManifestDocumentgetBundlesElement()
public
getBundlesElement() : BundlesElement
Return values
BundlesElementgetContainsElement()
public
getContainsElement() : ContainsElement
Return values
ContainsElementgetCopyrightElement()
public
getCopyrightElement() : CopyrightElement
Return values
CopyrightElementgetRequiresElement()
public
getRequiresElement() : RequiresElement
Return values
RequiresElementhasBundlesElement()
public
hasBundlesElement() : bool
Return values
bool__construct()
private
__construct(DOMDocument $dom) : mixed
Parameters
- $dom : DOMDocument
ensureCorrectDocumentType()
private
ensureCorrectDocumentType(DOMDocument $dom) : void
Parameters
- $dom : DOMDocument
fetchElementByName()
private
fetchElementByName(string $elementName) : DOMElement
Parameters
- $elementName : string