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 App\Models\Song; use Illuminate\Support\Collection; cla..

Decoded Output download

<?php

namespace App\Values;

use App\Models\Song;
use Illuminate\Support\Collection;

class QueueState
{
    private function __construct(public Collection $songs, public ?Song $currentSong, public ?int $playbackPosition)
    {
    }

    public static function create(Collection $songs, ?Song $currentSong = null, ?int $playbackPosition = 0): static
    {
        return new static($songs, $currentSong, $playbackPosition);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Values;

use App\Models\Song;
use Illuminate\Support\Collection;

class QueueState
{
    private function __construct(public Collection $songs, public ?Song $currentSong, public ?int $playbackPosition)
    {
    }

    public static function create(Collection $songs, ?Song $currentSong = null, ?int $playbackPosition = 0): static
    {
        return new static($songs, $currentSong, $playbackPosition);
    }
}

Function Calls

None

Variables

None

Stats

MD5 6296737fe6aadd9bd3e95285c881e8c0
Eval Count 0
Decode Time 113 ms