for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Groundskeeper\Tokens\ElementTypes;
use Groundskeeper\Tokens\Element;
use Groundskeeper\Tokens\Token;
abstract class ClosedElement extends Element
{
/**
* Reimplement appendChild so that no children can be added.
*/
public function appendChild(Token $token)
return $this;
}
* Reimplement prependChild so that no children can be added.
public function prependChild(Token $token)
* Required by the Token interface.
public function toHtml(string $prefix, string $suffix) : string
return $this->buildStartTag($prefix, $suffix);