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 App\Values; use Illuminate\Contracts\Support\Arrayable; use JsonSerializ..

Decoded Output download

<?php

namespace App\Values;

use Illuminate\Contracts\Support\Arrayable;
use JsonSerializable;

final class UserPreferences implements Arrayable, JsonSerializable
{
    private function __construct(public ?string $lastFmSessionKey = null)
    {
    }

    public static function make(?string $lastFmSessionKey = null): self
    {
        return new self($lastFmSessionKey);
    }

    /** @return array<mixed> */
    public function toArray(): array
    {
        return ['lastfm_session_key' => $this->lastFmSessionKey];
    }

    /** @return array<mixed> */
    public function jsonSerialize(): array
    {
        return $this->toArray();
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Values;

use Illuminate\Contracts\Support\Arrayable;
use JsonSerializable;

final class UserPreferences implements Arrayable, JsonSerializable
{
    private function __construct(public ?string $lastFmSessionKey = null)
    {
    }

    public static function make(?string $lastFmSessionKey = null): self
    {
        return new self($lastFmSessionKey);
    }

    /** @return array<mixed> */
    public function toArray(): array
    {
        return ['lastfm_session_key' => $this->lastFmSessionKey];
    }

    /** @return array<mixed> */
    public function jsonSerialize(): array
    {
        return $this->toArray();
    }
}

Function Calls

None

Variables

None

Stats

MD5 72a8e70839692e65ca034ea98b2253e1
Eval Count 0
Decode Time 92 ms