for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace phpDocumentor\Guides\RestructuredText\Directives;
use phpDocumentor\Guides\Nodes\ImageNode;
use phpDocumentor\Guides\Nodes\Node;
use phpDocumentor\Guides\RestructuredText\Parser;
/**
* Renders an image, example :
*
* .. image:: image.jpg
* :width: 100
* :title: An image
*/
class Image extends Directive
{
public function getName() : string
return 'image';
}
* @param string[] $options
public function processNode(
Parser $parser,
string $variable,
string $data,
array $options
) : Node {
return new ImageNode($parser->getEnvironment()->relativeUrl($data));