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 Larastan\Larastan\Types\Factory; use PHPStan\R..

Decoded Output download

<?php

declare(strict_types=1);

namespace Larastan\Larastan\Types\Factory;

use PHPStan\Reflection\ClassReflection;
use PHPStan\TrinaryLogic;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;

class ModelFactoryType extends ObjectType
{
    private TrinaryLogic $isSingleModel;

    public function __construct(
        string $className,
        Type|null $subtractedType = null,
        ClassReflection|null $classReflection = null,
        TrinaryLogic|null $isSingleModel = null,
    ) {
        parent::__construct($className, $subtractedType, $classReflection);

        $this->isSingleModel = $isSingleModel ?? TrinaryLogic::createMaybe();
    }

    public function isSingleModel(): TrinaryLogic
    {
        return $this->isSingleModel;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Larastan\Larastan\Types\Factory;

use PHPStan\Reflection\ClassReflection;
use PHPStan\TrinaryLogic;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;

class ModelFactoryType extends ObjectType
{
    private TrinaryLogic $isSingleModel;

    public function __construct(
        string $className,
        Type|null $subtractedType = null,
        ClassReflection|null $classReflection = null,
        TrinaryLogic|null $isSingleModel = null,
    ) {
        parent::__construct($className, $subtractedType, $classReflection);

        $this->isSingleModel = $isSingleModel ?? TrinaryLogic::createMaybe();
    }

    public function isSingleModel(): TrinaryLogic
    {
        return $this->isSingleModel;
    }
}

Function Calls

None

Variables

None

Stats

MD5 3f404f3da785006df416908aa5c54bed
Eval Count 0
Decode Time 116 ms