PhpBench\Extensions\Dbal\Storage\Driver\Dbal\Loader::getVariant PHP Метод

getVariant() приватный Метод

private getVariant ( ArrayObject $context, Subject $subject, $row )
$context ArrayObject
$subject PhpBench\Model\Subject
    private function getVariant(\ArrayObject $context, Subject $subject, $row)
    {
        $key = $row['variant.id'];
        if (isset($context[self::VARIANTS][$key])) {
            return $context[self::VARIANTS][$key];
        }
        $variant = $subject->createVariant(new ParameterSet(0, $this->repository->getParameters($row['variant.id'])), $row['variant.revolutions'], $row['variant.warmup']);
        $context[self::VARIANTS][$key] = $variant;
        return $variant;
    }