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 Rector\Symfony\ValueObject; final class Symfon..

Decoded Output download

<?php

declare (strict_types=1);
namespace Rector\Symfony\ValueObject;

final class SymfonyRouteMetadata
{
    /**
     * @readonly
     * @var string
     */
    private $name;
    /**
     * @readonly
     * @var string
     */
    private $path;
    /**
     * @var array<string, mixed>
     * @readonly
     */
    private $defaults;
    /**
     * @var array<string, mixed>
     * @readonly
     */
    private $requirements;
    /**
     * @readonly
     * @var string
     */
    private $host;
    /**
     * @var string[]
     * @readonly
     */
    private $schemes;
    /**
     * @var string[]
     * @readonly
     */
    private $methods;
    /**
     * @readonly
     * @var string
     */
    private $condition;
    /**
     * @var array<string, mixed>
     * @readonly
     */
    private $options;
    /**
     * Format <class>::<method>
     * @readonly
     * @var string|null
     */
    private $controllerReference;
    /**
     * @param array<string, mixed> $defaults
     * @param array<string, mixed> $requirements
     * @param string[] $schemes
     * @param string[] $methods
     * @param array<string, mixed> $options
     */
    public function __construct(string $name, string $path, array $defaults, array $requirements, string $host, array $schemes, array $methods, string $condition, array $options)
    {
        $this->name = $name;
        $this->path = $path;
        $this->defaults = $defaults;
        $this->requirements = $requirements;
        $this->host = $host;
        $this->schemes = $schemes;
        $this->methods = $methods;
        $this->condition = $condition;
        $this->options = $options;
        $this->controllerReference = $defaults['_controller'] ?? null;
    }
    public function getName() : string
    {
        return $this->name;
    }
    public function getPath() : string
    {
        return $this->path;
    }
    /**
     * @return array<string, mixed>
     */
    public function getDefaultsWithoutController() : array
    {
        $defaults = $this->defaults;
        unset($defaults['_controller']);
        return $defaults;
    }
    /**
     * @api used
     * @return mixed
     */
    public function getDefault(string $name)
    {
        return $this->defaults[$name] ?? null;
    }
    /**
     * @return array<string, mixed>
     */
    public function getRequirements() : array
    {
        return $this->requirements;
    }
    public function getHost() : string
    {
        return $this->host;
    }
    /**
     * @return string[]
     */
    public function getSchemes() : array
    {
        return $this->schemes;
    }
    /**
     * @return string[]
     */
    public function getMethods() : array
    {
        return $this->methods;
    }
    public function getCondition() : string
    {
        return $this->condition;
    }
    /**
     * @return array<string, mixed>
     */
    public function getOptionsWithoutDefaultCompilerClass() : array
    {
        $options = $this->options;
        $compilerClass = $options['compiler_class'] ?? null;
        if ($compilerClass === 'Symfony\Component\Routing\RouteCompiler') {
            unset($options['compiler_class']);
        }
        return $options;
    }
    /**
     * Format <class>::<method>
     */
    public function getControllerReference() : ?string
    {
        return $this->controllerReference;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

declare (strict_types=1);
namespace Rector\Symfony\ValueObject;

final class SymfonyRouteMetadata
{
    /**
     * @readonly
     * @var string
     */
    private $name;
    /**
     * @readonly
     * @var string
     */
    private $path;
    /**
     * @var array<string, mixed>
     * @readonly
     */
    private $defaults;
    /**
     * @var array<string, mixed>
     * @readonly
     */
    private $requirements;
    /**
     * @readonly
     * @var string
     */
    private $host;
    /**
     * @var string[]
     * @readonly
     */
    private $schemes;
    /**
     * @var string[]
     * @readonly
     */
    private $methods;
    /**
     * @readonly
     * @var string
     */
    private $condition;
    /**
     * @var array<string, mixed>
     * @readonly
     */
    private $options;
    /**
     * Format <class>::<method>
     * @readonly
     * @var string|null
     */
    private $controllerReference;
    /**
     * @param array<string, mixed> $defaults
     * @param array<string, mixed> $requirements
     * @param string[] $schemes
     * @param string[] $methods
     * @param array<string, mixed> $options
     */
    public function __construct(string $name, string $path, array $defaults, array $requirements, string $host, array $schemes, array $methods, string $condition, array $options)
    {
        $this->name = $name;
        $this->path = $path;
        $this->defaults = $defaults;
        $this->requirements = $requirements;
        $this->host = $host;
        $this->schemes = $schemes;
        $this->methods = $methods;
        $this->condition = $condition;
        $this->options = $options;
        $this->controllerReference = $defaults['_controller'] ?? null;
    }
    public function getName() : string
    {
        return $this->name;
    }
    public function getPath() : string
    {
        return $this->path;
    }
    /**
     * @return array<string, mixed>
     */
    public function getDefaultsWithoutController() : array
    {
        $defaults = $this->defaults;
        unset($defaults['_controller']);
        return $defaults;
    }
    /**
     * @api used
     * @return mixed
     */
    public function getDefault(string $name)
    {
        return $this->defaults[$name] ?? null;
    }
    /**
     * @return array<string, mixed>
     */
    public function getRequirements() : array
    {
        return $this->requirements;
    }
    public function getHost() : string
    {
        return $this->host;
    }
    /**
     * @return string[]
     */
    public function getSchemes() : array
    {
        return $this->schemes;
    }
    /**
     * @return string[]
     */
    public function getMethods() : array
    {
        return $this->methods;
    }
    public function getCondition() : string
    {
        return $this->condition;
    }
    /**
     * @return array<string, mixed>
     */
    public function getOptionsWithoutDefaultCompilerClass() : array
    {
        $options = $this->options;
        $compilerClass = $options['compiler_class'] ?? null;
        if ($compilerClass === 'Symfony\\Component\\Routing\\RouteCompiler') {
            unset($options['compiler_class']);
        }
        return $options;
    }
    /**
     * Format <class>::<method>
     */
    public function getControllerReference() : ?string
    {
        return $this->controllerReference;
    }
}

Function Calls

None

Variables

None

Stats

MD5 077c9ecb6898408f39b2287053a255bb
Eval Count 0
Decode Time 126 ms