for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lagdo\UiBuilder\Component\Base;
use Lagdo\UiBuilder\Component\HtmlComponent;
class MenuItemComponent extends HtmlComponent
{
/**
* @var string
*/
public static string $tag = 'a';
* @param bool $active
*
* @return static
public function active(bool $active): static
$active && $this->element()->addClass('active');
return $this;
}
* @param bool $disabled
public function disabled(bool $disabled): static
$disabled && $this->element()->addClass('disabled');