<commit_before><?php

declare(strict_types=1);

namespace Rector\BetterPhpDocParser\PhpDocNode\Symfony;

use Nette\Utils\Strings;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;
use Symfony\Component\Routing\Annotation\Route;

final class SymfonyRouteTagValueNode extends AbstractTagValueNode
{
    /**
     * @var string
     */
    public const SHORT_NAME = '@Route';

    /**
     * @var string
     */
    public const CLASS_NAME = Route::class;

    /**
     * @var string|null
     */
    public $name;

    /**
     * @var string
     */
    private $path;

    /**
     * @var string[]
     */
    private $methods = [];

    /**
     * @var bool
     */
    private $isPathExplicit = true;

    /**
     * @var mixed[]
     */
    private $options = [];

    /**
     * @var mixed[]
     */
    private $defaults = [];

    /**
     * @var mixed[]
     */
    private $requirements = [];

    /**
     * @param string[] $methods
     * @param string[] $options
     * @param string[] $defaults
     * @param string[] $requirements
     */
    public function __construct(
        string $path,
        ?string $name = null,
        array $methods = [],
        array $options = [],
        array $defaults = [],
        array $requirements = [],
        ?string $originalContent = null
    ) {
        $this->path = $path;
        $this->name = $name;<commit_msg>[Symfony] fix process error of controller with Internationalize… (#2600)<commit_after><?php

declare(strict_types=1);

namespace Rector\BetterPhpDocParser\PhpDocNode\Symfony;

use Nette\Utils\Strings;
use Rector\BetterPhpDocParser\PhpDocNode\AbstractTagValueNode;
use Symfony\Component\Routing\Annotation\Route;

final class SymfonyRouteTagValueNode extends AbstractTagValueNode
{
    /**
     * @var string
     */
    public const SHORT_NAME = '@Route';

    /**
     * @var string
     */
    public const CLASS_NAME = Route::class;

    /**
     * @var string|null
     */
    public $name;

    /**
     * @var string|null
     */
    private $path;

    /**
     * @var string[]
     */
    private $methods = [];

    /**
     * @var bool
     */
    private $isPathExplicit = true;

    /**
     * @var mixed[]
     */
    private $options = [];

    /**
     * @var mixed[]
     */
    private $defaults = [];

    /**
     * @var mixed[]
     */
    private $requirements = [];

    /**
     * @param string[] $methods
     * @param string[] $options
     * @param string[] $defaults
     * @param string[] $requirements
     */
    public function __construct(
        ?string $path,
        ?string $name = null,
        array $methods = [],
        array $options = [],
        array $defaults = [],
        array $requirements = [],
        ?string $originalContent = null
    ) {
        $this->path = $path;
        $this->name = $name;
{'fraction_non_alphanumeric': 0.14582599506868615, 'fraction_numerical': 0.0021134202183867557, 'mean_word_length': 2.0116648992576884, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1376579', 'n_tokens_mistral': 883, 'n_tokens_neox': 854, 'n_words': 189}