for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/* @description Transformation Style Sheets - Revolutionising PHP templating *
* @author Tom Butler [email protected] *
* @copyright 2015 Tom Butler <[email protected]> | https://r.je/ *
* @license http://www.opensource.org/licenses/bsd-license.php BSD License *
* @version 0.9 */
namespace Transphporm\Property;
class Display implements \Transphporm\Property {
public function run($value, \DomElement $element, \Transphporm\Hook\Rule $rule) {
if (strtolower($value[0]) === 'none') $element->setAttribute('transphporm', 'remove');
else $element->setAttribute('transphporm', 'show');
}