*/
class MiscAttribute extends AbstractAttribute
{
/**
* The attribute's value.
*
* @var mixed
*/
protected mixed $value;
/**
* Attribute constructor.
*/
public function __construct(string $name, mixed $value)
{
$this->name = $name;
$this->setValue($value);
}
/**
* Get the attribute's value.
*/
public function value(): mixed
{
return $this->value;
}
/**
* Render the attribute.
*/
public function render(): string
{
$value = $this->value();
return ($value === null || $value === '')
? $this->name
: $this->name . '="' . e($value, false) . '"';
}
/**
* Set the value.
*
* @return $this
*/
protected function setValue(mixed $value): static
{
$this->value = trim((string) $value);
return $this;
}
}
__halt_compiler();----SIGNATURE:----gNF8hk7oFNIfGNvTa9SKYgI86/mYNFgisvJuaNiZfQ8MFj/VekHOd75LD/Z48vJ78/VzHuB8j5ld/5Xfa9T2hl+TomcAoMJ/+cbSTr0UOgqu50wLusleEf43zCVTnTv776Bvw1qF5CxeN8Q2pxlqqBp9Kr65LpOiyGM1HoMcMeFfqyKsma3SzsaW36VJfMtwocDpHH4J92GFVPZaFDmQ2vm6Tjo7AvlNqPQAWunq9ZDDRDp1HbOnvN7lovhulbxe+DTGItytaSV+l1VnSvN5/xEb+2B2Hs1+WPkXBxxUa7cakxt9viudkZ5QtI5UtKiTVqQMZ/HmwgX6Bi+ZmbyZAgfyG9AWXizueqUBAxugmJPdrWcEBgnSfM9xcL9GJ8OJjVgsgvmip+R9Tk84LT3n+pDzL0bMFn51S23RGRQW/bFODdbRLjdGbIlxpY6V/r4bx8hOAc+CzGEcverae7lYwQv6XqZvkVN4K+uD+e4MPcrThbpUVAIx2nbtmG7PcPV5TtjfSqqwe1Oxg2fROwgOI5LD6PsFt4eAhXvxWNFc1nJG4XrTNUNAIOpXq06S8HDkpTHRbkjWDRmSJHKtMESjoQiZL1TVy//epeFuQS9T1+OPyksLCqqglObxdAMfqoR6E/4xzHcXwNqiM3oNuUaF7I4VgfkGuwFnSm6YtWjZ118=----ATTACHMENT:----OTM1OTIzNTIwMjcxNDg3MCA0MTE3NDM1NTg0MjI1MDAzIDUyMzE5MzE1NjE5MTQ3MDk=