<?php/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespaceSymfony\Component\DomCrawler;/** * Image represents an HTML image (an HTML img tag). */classImageextendsAbstractUriElement{publicfunction__construct(\DOMElement$node,$currentUri){parent::__construct($node,$currentUri,'GET');}protectedfunctiongetRawUri(){return$this->node->getAttribute('src');}protectedfunctionsetNode(\DOMElement$node){if('img'!==$node->nodeName){thrownew\LogicException(sprintf('Unable to visualize a "%s" tag.',$node->nodeName));}$this->node=$node;}}