public function process($paths, $absolutePaths, $attributes) { $url = url(); $attributesAsText = $this->attributesArrayToText($attributes); foreach ($paths as $path) { print "<img src=\"{$url}{$path}\" {$attributesAsText}>" . PHP_EOL; } }