Category
class Category extends AbstractType implements NodeInterface, TypeInterface, SetLoggerInterface (View source)
A type model for a Category/Tag/Topic element.
Traits
Properties
protected LoggerInterface | $logger | A PSR-3 logger. | from LoggerTrait |
protected DOMNode | $node | The DOMNode element to parse. | |
protected string | $term | The category term. | |
protected string | $scheme | The category scheme URI. | |
protected string | $label | The category label. |
Methods
Proxy method which forwards requests to an underlying handler.
Gets the standard, pre-formatted message for unresolvable method calls.
Constructs a new instance of this class.
Converts this object into a string representation.
Finds the common internal alias for a given method name.
Get the correct handler for a whitelisted method name.
Details
in AbstractType at line 27
__call(string $nodeName, array $args)
Proxy method which forwards requests to an underlying handler.
in AbstractType at line 52
protected string
getUnresolvableMessage(string $nodeName)
Gets the standard, pre-formatted message for unresolvable method calls.
in LoggerTrait at line 35
LoggerTrait
setLogger(LoggerInterface $logger)
Sets the PSR-3 logger.
in LoggerTrait at line 52
LoggerInterface
getLogger()
Retrieves the PSR-3 logger.
at line 71
__construct(DOMNode|null $node = null, LoggerInterface $logger = null)
Constructs a new instance of this class.
at line 86
string
__toString()
Converts this object into a string representation.
at line 104
string
getAlias(string $nodeName)
Finds the common internal alias for a given method name.