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 Laminas\Code\Generator\EnumGenerator\Cases; /** * @internal * * @psal..

Decoded Output download

<?php

namespace Laminas\Code\Generator\EnumGenerator\Cases;

/**
 * @internal
 *
 * @psalm-immutable
 */
final class PureCases
{
    /** @param list<non-empty-string> $cases */
    private function __construct(public readonly array $cases)
    {
    }

    /**
     * @param list<non-empty-string> $pureCases
     */
    public static function fromCases(array $pureCases): self
    {
        return new self($pureCases);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Laminas\Code\Generator\EnumGenerator\Cases;

/**
 * @internal
 *
 * @psalm-immutable
 */
final class PureCases
{
    /** @param list<non-empty-string> $cases */
    private function __construct(public readonly array $cases)
    {
    }

    /**
     * @param list<non-empty-string> $pureCases
     */
    public static function fromCases(array $pureCases): self
    {
        return new self($pureCases);
    }
}

Function Calls

None

Variables

None

Stats

MD5 d9371729a1357aa8cb8176a40aa04d24
Eval Count 0
Decode Time 84 ms