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 declare(strict_types=1); namespace App\Models; use Illuminate\Database\Query\Buil..

Decoded Output download

<?php

declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Query\Builder;

/**
 * @property int $id       ID
 * @property int $user_id  ID
 * @property int $list_id  ID
 * @property int $datetime 
 * @property int $node_id  ID
 * @property int $status   
 *
 * @mixin Builder
 */
final class DetectLog extends Model
{
    protected $connection = 'default';
    protected $table = 'detect_log';

    /**
     * 
     */
    public function node(): ?Node
    {
        return (new Node())->find($this->node_id);
    }

    /**
     * 
     */
    public function nodeName(): string
    {
        return $this->node() === null ? '' : $this->node()->name;
    }

    /**
     * 
     */
    public function rule(): ?DetectRule
    {
        return (new DetectRule())->find($this->list_id);
    }

    /**
     * 
     */
    public function ruleName(): string
    {
        return $this->rule() === null ? '' : $this->rule()->name;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Query\Builder;

/**
 * @property int $id       ID
 * @property int $user_id  ID
 * @property int $list_id  ID
 * @property int $datetime 
 * @property int $node_id  ID
 * @property int $status   
 *
 * @mixin Builder
 */
final class DetectLog extends Model
{
    protected $connection = 'default';
    protected $table = 'detect_log';

    /**
     * 
     */
    public function node(): ?Node
    {
        return (new Node())->find($this->node_id);
    }

    /**
     * 
     */
    public function nodeName(): string
    {
        return $this->node() === null ? '' : $this->node()->name;
    }

    /**
     * 
     */
    public function rule(): ?DetectRule
    {
        return (new DetectRule())->find($this->list_id);
    }

    /**
     * 
     */
    public function ruleName(): string
    {
        return $this->rule() === null ? '' : $this->rule()->name;
    }
}

Function Calls

None

Variables

None

Stats

MD5 095a1b9a34b7fff626daa4b64b544328
Eval Count 0
Decode Time 92 ms