DocumentDescriptor implements Descriptor uses HasName, HasDescription
FinalYes
Table of Contents
Interfaces
- Descriptor
 - Base class for descriptors containing the most used options.
 
Properties
- $description : DescriptionDescriptor|null
 - $name : string
 - $documentNode : DocumentNode
 - $file : string
 - $hash : string
 - $title : string
 
Methods
- __construct() : mixed
 - getDescription() : DescriptionDescriptor
 - Returns the description for this element.
 - getDocumentNode() : DocumentNode
 - getFile() : string
 - getHash() : string
 - getName() : string
 - Returns the local name for this element.
 - getTitle() : string
 - setDescription() : void
 - Sets a description or none to inherit from a parent.
 - setDocumentNode() : void
 
Properties
$description
        protected
            DescriptionDescriptor|null
    $description
     = null
    
    
    
    
    
$name
        protected
            string
    $name
     = ''
    
    
    
    
    
$documentNode
        private
            DocumentNode
    $documentNode
    
    
    
    
    
    
$file read-only
        private
            string
    $file
    
    
    
    
    
    
$hash read-only
        private
            string
    $hash
    
    
    
    
    
    
$title read-only
        private
            string
    $title
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(DocumentNode $documentNode, string $hash, string $file, string $title) : mixed
    Parameters
- $documentNode : DocumentNode
 - $hash : string
 - $file : string
 - $title : string
 
getDescription()
Returns the description for this element.
    public
                    getDescription() : DescriptionDescriptor
    This method will automatically attempt to inherit the parent's description if this one has none.
Return values
DescriptionDescriptorgetDocumentNode()
    public
                    getDocumentNode() : DocumentNode
    Return values
DocumentNodegetFile()
    public
                    getFile() : string
    Return values
stringgetHash()
    public
                    getHash() : string
    Return values
stringgetName()
Returns the local name for this element.
    public
                    getName() : string
    Return values
stringgetTitle()
    public
                    getTitle() : string
    Return values
stringsetDescription()
Sets a description or none to inherit from a parent.
    public
                    setDescription(DescriptionDescriptor|null $description) : void
    Parameters
- $description : DescriptionDescriptor|null
 
setDocumentNode()
    public
                    setDocumentNode(DocumentNode $documentNode) : void
    Parameters
- $documentNode : DocumentNode