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 PowerComponents\LivewirePowerGrid\Components\Rules; class RuleCheckbox e..

Decoded Output download

<?php

namespace PowerComponents\LivewirePowerGrid\Components\Rules;

class RuleCheckbox extends BaseRule
{
    public string $forAction = RuleManager::TYPE_CHECKBOX;

    /**
     * Sets the button's given attribute to the given value.
     */
    public function setAttribute(string $attribute = null, string $value = null): self
    {
        $this->setModifier('setAttribute', [
            'attribute' => $attribute,
            'value'     => $value,
        ]);

        return $this;
    }

    /**
     * Hides the input.
     */
    public function hide(): self
    {
        $this->setModifier('hide', true);

        return $this;
    }

    /**
     * Disables the input.
     */
    public function disable(): self
    {
        $this->setModifier('disable', true);

        return $this;
    }

    public function applyRowClasses(string $attrClass = ''): self
    {
        $this->setModifier('rowClasses', $attrClass);

        return $this;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace PowerComponents\LivewirePowerGrid\Components\Rules;

class RuleCheckbox extends BaseRule
{
    public string $forAction = RuleManager::TYPE_CHECKBOX;

    /**
     * Sets the button's given attribute to the given value.
     */
    public function setAttribute(string $attribute = null, string $value = null): self
    {
        $this->setModifier('setAttribute', [
            'attribute' => $attribute,
            'value'     => $value,
        ]);

        return $this;
    }

    /**
     * Hides the input.
     */
    public function hide(): self
    {
        $this->setModifier('hide', true);

        return $this;
    }

    /**
     * Disables the input.
     */
    public function disable(): self
    {
        $this->setModifier('disable', true);

        return $this;
    }

    public function applyRowClasses(string $attrClass = ''): self
    {
        $this->setModifier('rowClasses', $attrClass);

        return $this;
    }
}

Function Calls

None

Variables

None

Stats

MD5 bb1a87432b5f204b5c3741c0b48be95b
Eval Count 0
Decode Time 81 ms