for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the core-bundle package.
*
* (c) 2019 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\CoreBundle\Icon;
/**
* Icon renderer.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\CoreBundle\Icon
class IconRenderer {
* Render a style.
* @param IconInterface $icon The icon.
* @return string Returns the rendered style in case of success, null otherwise.
public static function renderStyle(IconInterface $icon) {
return null !== $icon->getStyle() ? $icon->getStyle() : null;
}