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 Orion\ValueObjects\Specs; use Illuminate\Contr..

Decoded Output download

<?php

declare(strict_types=1);

namespace Orion\ValueObjects\Specs;

use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Collection;

class Path implements Arrayable
{
    /** @var string */
    public $path;

    /** @var Operation[]|Collection */
    public $operations;

    /**
     * Path constructor.
     *
     * @param string $path
     */
    public function __construct(string $path)
    {
        $this->path = $path;
        $this->operations = collect([]);
    }

    public function toArray(): array
    {
        return $this->operations->toArray();
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Orion\ValueObjects\Specs;

use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Collection;

class Path implements Arrayable
{
    /** @var string */
    public $path;

    /** @var Operation[]|Collection */
    public $operations;

    /**
     * Path constructor.
     *
     * @param string $path
     */
    public function __construct(string $path)
    {
        $this->path = $path;
        $this->operations = collect([]);
    }

    public function toArray(): array
    {
        return $this->operations->toArray();
    }
}

Function Calls

None

Variables

None

Stats

MD5 77f43d037b4b3a16376f9618f3e270f8
Eval Count 0
Decode Time 125 ms