Image
class Image extends AbstractType implements NodeInterface, TypeInterface, SetLoggerInterface (View source)
A type model for an Image element.
Traits
Properties
protected LoggerInterface | $logger | A PSR-3 logger. | from LoggerTrait |
protected DOMNode | $node | The DOMNode element to parse. | |
protected string | $uri | The image element's URL. | |
protected string | $title | The image element's title. | |
protected string | $link | The image element's link. | |
protected int | $width | The image element's width, in pixels. | |
protected int | $height | The image element's height, in pixels. | |
protected string | $description | The image element's description. |
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 description of the Image.
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 98
__construct(DOMNode|null $node = null, LoggerInterface $logger = null)
Constructs a new instance of this class.
at line 115
string
__toString()
Converts this object into a string representation.
at line 131
string
getAlias(string $nodeName)
Finds the common internal alias for a given method name.