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 Endroid\QrCode\Builder; final class BuilderReg..

Decoded Output download

<?php

declare(strict_types=1);

namespace Endroid\QrCode\Builder;

final class BuilderRegistry implements BuilderRegistryInterface
{
    /** @var array<BuilderInterface> */
    private array $builders = [];

    public function getBuilder(string $name): BuilderInterface
    {
        if (!isset($this->builders[$name])) {
            throw new \Exception(sprintf('Builder with name "%s" not available from registry', $name));
        }

        return $this->builders[$name];
    }

    public function addBuilder(string $name, BuilderInterface $builder): void
    {
        $this->builders[$name] = $builder;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare(strict_types=1);

namespace Endroid\QrCode\Builder;

final class BuilderRegistry implements BuilderRegistryInterface
{
    /** @var array<BuilderInterface> */
    private array $builders = [];

    public function getBuilder(string $name): BuilderInterface
    {
        if (!isset($this->builders[$name])) {
            throw new \Exception(sprintf('Builder with name "%s" not available from registry', $name));
        }

        return $this->builders[$name];
    }

    public function addBuilder(string $name, BuilderInterface $builder): void
    {
        $this->builders[$name] = $builder;
    }
}

Function Calls

None

Variables

None

Stats

MD5 de4f6a42d5192aa5c51922af760237d1
Eval Count 0
Decode Time 85 ms