Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Filament\Forms\Components\Concerns; use Closure; trait HasToggleIcons {..

Decoded Output download

<?php

namespace Filament\Forms\Components\Concerns;

use Closure;

trait HasToggleIcons
{
    protected string | Closure | null $offIcon = null;

    protected string | Closure | null $onIcon = null;

    public function offIcon(string | Closure | null $icon): static
    {
        $this->offIcon = $icon;

        return $this;
    }

    public function onIcon(string | Closure | null $icon): static
    {
        $this->onIcon = $icon;

        return $this;
    }

    public function getOffIcon(): ?string
    {
        return $this->evaluate($this->offIcon);
    }

    public function getOnIcon(): ?string
    {
        return $this->evaluate($this->onIcon);
    }

    public function hasOffIcon(): bool
    {
        return (bool) $this->getOffIcon();
    }

    public function hasOnIcon(): bool
    {
        return (bool) $this->getOnIcon();
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Filament\Forms\Components\Concerns;

use Closure;

trait HasToggleIcons
{
    protected string | Closure | null $offIcon = null;

    protected string | Closure | null $onIcon = null;

    public function offIcon(string | Closure | null $icon): static
    {
        $this->offIcon = $icon;

        return $this;
    }

    public function onIcon(string | Closure | null $icon): static
    {
        $this->onIcon = $icon;

        return $this;
    }

    public function getOffIcon(): ?string
    {
        return $this->evaluate($this->offIcon);
    }

    public function getOnIcon(): ?string
    {
        return $this->evaluate($this->onIcon);
    }

    public function hasOffIcon(): bool
    {
        return (bool) $this->getOffIcon();
    }

    public function hasOnIcon(): bool
    {
        return (bool) $this->getOnIcon();
    }
}

Function Calls

None

Variables

None

Stats

MD5 06c2c44cdd7638c5e8d9c52021330f73
Eval Count 0
Decode Time 144 ms