*/
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:----m1sNny7jO4eIpbniK7qkntSMxLfrXZefWvFgHQdNDUiyccAbdDymvji6H8k1SP3ki42iIa2Yt8qRjC4HJuSVQHhPFIp4G2aZS2OAdsijkDON0a3NuA3f2vOugemA8EDpxhkap6w1CIbHymKsWlGB8sSoem9y5uEkdPWFb3BUPxdas7kcTREB24ZtyWfPSVmWYDrhptSO28V+XbAIjgFZVyDCJas0e9uJM7pisJgQ0+zYfS5FyIH/Mfy8OIPLAw59YC57Wi+tvxTAhqUzg5GLoVpMkUW8huB8NBNL48lyrtd/JfvRScEgV84pl7WAs/hTglnQZMSVvlB3EFuJK8XnOixaU4C3ABPj1RKf2ZTUSxWg7gsmeOD40KLielWJ3FhC/6fdwiRZb2mdONR52eLFw3sx/LyhYwKyICUF1caTQFwMFUxv7gRZYHvasb4M+lYYPm23EMb5LwsuuyhdvZ28pfC7XGvMX+tra/VZCoRpK8F4JJxkaBpWaCvya9SlucObwmE6qZWlHDAI6jKRpDAn0GbTRjdXeBa9/OeMcefx1C2iWXBwKbfjp4qOvcbNPeDFXGveGgqnjeG/N6gzhEln2dlrYHGnkzoKrXzhbf6AtxoOFbri9xJLbV3PlC8VSc1xhHXhwrheWzjOZhlfn6OrUTAFDF7sgAXpTDLLdE0ycXE=----ATTACHMENT:----ODk4OTUxODg3ODY1MzU0MyA0OTAyMTkzMzcxMzk1ODMyIDUxNTg4NTczNjE0NjkwMzM=