Person
class Person extends AbstractType implements NodeInterface, TypeInterface, SetLoggerInterface (View source)
A type model for a Person element.
Traits
Properties
protected LoggerInterface | $logger | A PSR-3 logger. | from LoggerTrait |
protected DOMNode | $node | The DOMNode element to parse. | |
protected Node | $name | The person's name. | |
protected Node | $uri | The person's URL. | |
protected Node | $url | The person's URL. | |
protected Node | The person's email address. | ||
protected Node | $avatar | The person's avatar. |
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 88
__construct(DOMNode|null $node = null, LoggerInterface $logger = null)
Constructs a new instance of this class.
at line 107
string
__toString()
Converts this object into a string representation.
at line 133
string
getAlias(string $nodeName)
Finds the common internal alias for a given method name.