for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BestServedCold\HTMLBuilder\Html\Node;
use BestServedCold\HTMLBuilder\Html\Node;
/**
* Class Override
*
* @package BestServedCold\HTMLBuilder\Html\Node
*/
trait Override
{
* @param $type
* @param $string
* @return Node
public abstract function attribute($type, $string);
* @param string $string
* @param string|null $type
public function data($string, $type = null)
$type = $type ? 'data-' . $type : 'data';
return $this->attribute($type, $string);
}
* @param string|null $string
public function acceptcharset($string = null)
return $this->attribute('accept-charset', $string);
* @param null $value
public function contentAttribute($value = null)
return $this->attribute('content', $value);