/** * @return string */ public function linkCSS() { $output = ""; foreach ($this->cssFiles as $cssFile) { $mediaString = ''; if ($cssFile->mediaQuery) { $mediaString = " media='" . $cssFile->mediaQuery . "' "; } $output .= sprintf("<link rel='stylesheet' type='text/css' %s href='/css/%s.css?%s' />\n", $mediaString, $cssFile->file, $this->scriptVersion->getValue()); } return $output; }
public function __construct(ScriptVersion $scriptVersion) { $this->scriptVersion = $scriptVersion->getValue(); }