Nelmio\Alice\FixtureBuilder\Denormalizer\Fixture\Chainable\NullRangeNameDenormalizer::buildRange PHP Method

buildRange() private method

private buildRange ( string $name ) : RangeName
$name string
return Nelmio\Alice\Definition\RangeName
    private function buildRange(string $name) : RangeName
    {
        $matches = [];
        if (false === $this->canDenormalize($name, $matches)) {
            throw LogicExceptionFactory::createForCannotDenormalizerForChainableFixtureBuilderDenormalizer(__METHOD__);
        }
        $reference = str_replace(sprintf('{%s}', $matches['range']), $this->token, $name);
        return new RangeName($reference, (int) $matches['from'], (int) $matches['to']);
    }