src/Eloquent/Typhoon/Generator/RuntimeConfigurationGenerator.php
public function generate(RuntimeConfiguration $configuration)
    {
        $this->typeCheck->generate(func_get_args());

        $validatorNamespaceCall = new Call(new StaticMember(
            QualifiedIdentifier::fromString('\Eloquent\Cosmos\ClassName'),
            new Constant(new Identifier('fromString'))
        ));
        $validatorNamespaceCall->add(
            new Literal($configuration->validatorNamespace()->string())
        );
        $newConfigurationCall = new Call(QualifiedIdentifier::fromString(
            '\Eloquent\Typhoon\Configuration\RuntimeConfiguration'
        ));
        $newConfigurationCall->add($validatorNamespaceCall);
        $newConfigurationCall->add(
            new Literal($configuration->useNativeCallable())
        );

        return new NewOperator($newConfigurationCall);
    }
public function generate(RuntimeConfiguration $configuration)
    {
        $this->typeCheck->generate(func_get_args());

        $validatorNamespaceCall = new Call(new StaticMember(
            QualifiedIdentifier::fromString('\Eloquent\Cosmos\ClassName'),
            new Constant(new Identifier('fromString'))
        ));
        $validatorNamespaceCall->add(
            new Literal($configuration->validatorNamespace()->string())
        );
        $newConfigurationCall = new Call(QualifiedIdentifier::fromString(
            '\Eloquent\Typhoon\Configuration\RuntimeConfiguration'
        ));
        $newConfigurationCall->add($validatorNamespaceCall);
        $newConfigurationCall->add(
            new Literal($configuration->useNativeCallable())
        );

        return new NewOperator($newConfigurationCall);
    }
@param RuntimeConfiguration $configuration

@return NewOperator