Link
class Link extends AbstractType implements NodeInterface, TypeInterface, SetLoggerInterface (View source)
A type model for a Link element.
Traits
Properties
| protected LoggerInterface | $logger | A PSR-3 logger. | from LoggerTrait |
| protected DOMNode | $node | The DOMNode element to parse. | |
| protected string | $href | The link's remote location. | |
| protected string | $rel | The link's relationship to the current document. | |
| protected string | $type | The link's media type. | |
| protected string | $hreflang | The language of the link's remote location. | |
| protected string | $title | The link's title. | |
| protected int | $length | The link's length, in bytes (e.g., if it is a large file or direct download). |
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.
Alias for getLanguage().
Returns the language of the Link.
Returns the media type (née mime type) of the Link.
Returns the relationship of the Link.
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 104
__construct(DOMNode|null $node = null, LoggerInterface $logger = null)
Constructs a new instance of this class.
at line 122
string
__toString()
Converts this object into a string representation.
at line 138
string
getAlias(string $nodeName)
Finds the common internal alias for a given method name.