Generator
class Generator extends AbstractType implements NodeInterface, TypeInterface, SetLoggerInterface (View source)
A type model for a Generator element.
Traits
Properties
protected LoggerInterface | $logger | A PSR-3 logger. | from LoggerTrait |
protected DOMNode | $node | The DOMNode element to parse. | |
protected string | $name | The generator name. | |
protected string | $uri | The generator URI. | |
protected string | $version | The generator version. |
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.
Returns the version of the Generator.
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 69
__construct(DOMNode|null $node = null, LoggerInterface $logger = null)
Constructs a new instance of this class.
at line 85
string
__toString()
Converts this object into a string representation.
at line 101
string
getAlias(string $nodeName)
Finds the common internal alias for a given method name.