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 RuleEditOnClic..

Decoded Output download

<?php

namespace PowerComponents\LivewirePowerGrid\Components\Rules;

class RuleEditOnClick extends BaseRule
{
    public string $forAction = RuleManager::TYPE_EDIT_ON_CLICK;

    public function __construct(public string $column)
    {
        $this->forAction = $column;
    }

    /**
    * Disable the Edit On Click.
    */
    public function disable(): self
    {
        $this->setModifier('field_hide_editonclick', true);

        return $this;
    }

    /**
    * Enable the Edit On Click.
    */
    public function enable(): self
    {
        $this->setModifier('field_hide_editonclick', false);

        return $this;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace PowerComponents\LivewirePowerGrid\Components\Rules;

class RuleEditOnClick extends BaseRule
{
    public string $forAction = RuleManager::TYPE_EDIT_ON_CLICK;

    public function __construct(public string $column)
    {
        $this->forAction = $column;
    }

    /**
    * Disable the Edit On Click.
    */
    public function disable(): self
    {
        $this->setModifier('field_hide_editonclick', true);

        return $this;
    }

    /**
    * Enable the Edit On Click.
    */
    public function enable(): self
    {
        $this->setModifier('field_hide_editonclick', false);

        return $this;
    }
}

Function Calls

None

Variables

None

Stats

MD5 887f80dc0ea595a825ff37953561b87b
Eval Count 0
Decode Time 99 ms