Nelmio\Alice\FixtureBuilder\Denormalizer\FlagParser\Reference::__construct PHP Method

__construct() private method

private __construct ( )
    private function __construct()
    {
        self::$references = ['element' => ['empty string' => ['', new FlagBag('')], 'non-empty string without flags' => ['something', new FlagBag('something')], 'string with 1 flag' => ['user (dummy_flag)', (new FlagBag('user'))->withFlag(new ElementFlag('dummy_flag'))], 'string with 1 flag and extra space' => ['user ( dummy_flag )', (new FlagBag('user'))->withFlag(new ElementFlag('dummy_flag'))], 'string with 2 flags' => ['user (dummy_flag, another_dummy_flag)', (new FlagBag('user'))->withFlag(new ElementFlag('dummy_flag'))->withFlag(new ElementFlag('another_dummy_flag'))], 'with an index' => ['0 (dummy_flag)', (new FlagBag('0'))->withFlag(new ElementFlag('dummy_flag'))], 'with an index with no flags' => ['0', new FlagBag('0')], 'with an numeric index' => [0, new FlagBag('0')]], 'malformed-element' => ['non-empty string with empty flags' => ['user ()', null], 'non-empty string with empty flags with extra spaces' => [' user () ', null], 'non-empty string with empty flags with lot of extra spaces' => ['  user ()  ', null], 'string with 1 flag and lot of extra space' => ['user (  dummy_flag  )', null], 'string with 1 flag and ending with useless comma' => ['user (dummy_flag,)', null], 'string with 1 flag and ending with useless comma and space' => ['user (dummy_flag,  )', null], 'string with 1 flag and starting with useless comma' => ['user (, dummy_flag)', null], 'string with 1 flag and starting with useless comma and space' => ['user ( , dummy_flag)', null], 'string with 1 flag and starting with useless comma and a lot of spaces' => ['user (  , dummy_flag)', null], 'string with 1 flag and starting with useless comma and extra spaces after comma' => ['user (,  dummy_flag)', null], 'string with 2 flags and lot of extra space' => ['user (  dummy_flag  ,  another_dummy_flag  )', null], 'string with 2 flags and ending with useless comma' => ['user (dummy_flag, another_dummy_flag,)', null], 'string with 2 flag and ending with useless comma and space' => ['user (dummy_flag, another_dummy_flag,  )', null], 'string with 2 flags and starting with useless comma' => ['user (, dummy_flag, another_dummy_flag)', null], 'string with 2 flags and starting with useless comma and space' => ['user ( , dummy_flag, another_dummy_flag)', null], 'string with 2 flags and starting with useless comma and a lot of spaces' => ['user (  , dummy_flag, another_dummy_flag)', null], 'string with 2 flags and starting with useless comma and extra spaces after comma' => ['user (,  dummy_flag, another_dummy_flag)', null]], 'extend' => ['with 1 extend' => ['extends user_base', (new FlagBag(''))->withFlag(new ExtendFlag(new FixtureReference('user_base')))]], 'malformed-extend' => ['extend without space' => ['extendsuser_base', null]], 'optional' => ['nominal' => ['60%?', (new FlagBag(''))->withFlag(new OptionalFlag(60))]], 'malformed-optional' => ['with negative number' => ['-60%?', null], 'with float' => ['.6%?', null], 'without percentile character' => ['60?', null], 'without question mark character' => ['60%', null]], 'template' => ['nominal' => ['template', (new FlagBag(''))->withFlag(new TemplateFlag())]], 'unique' => ['nominal' => ['unique', (new FlagBag(''))->withFlag(new UniqueFlag())]]];
    }