Creates new instance of \Google\Protobuf\SourceCodeInfo

@throws \InvalidArgumentException

@return SourceCodeInfo
548057
public static function create()
	{
		switch (func_num_args()) {
			case 0:
				return new SourceCodeInfo();
			case 1:
				return new SourceCodeInfo(func_get_arg(0));
			case 2:
				return new SourceCodeInfo(func_get_arg(0), func_get_arg(1));
			case 3:
				return new SourceCodeInfo(func_get_arg(0), func_get_arg(1), func_get_arg(2));
			case 4:
				return new SourceCodeInfo(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3));
			case 5:
				return new SourceCodeInfo(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4));
			case 6:
				return new SourceCodeInfo(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5));
			case 7:
				return new SourceCodeInfo(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6));
			case 8:
				return new SourceCodeInfo(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6), func_get_arg(7));
			default:
				throw new \InvalidArgumentException('More than 8 arguments supplied, please be reasonable.');
		}
	}
1183528
public function build()
    {
        $callback = $this->callback;

        // We will create a new class metadata builder instance,
        // so we can use it to easily generated a new mapping
        // array, without re-declaring the existing field
        $builder = $this->newClassMetadataBuilder();

        $source = $this->convertToMappingArray($this->builder);

        // Create a new field builder for the new class metadata builder,
        // based on the existing (to be overridden) field
        $fieldBuilder = $this->getFieldBuilder(
            $builder,
            $source
        );

        $field = $callback($fieldBuilder);

        // When the user forget to return, use the Field instance
        // which contains the same information
        $field = $field ?: $fieldBuilder;

        if (!$field instanceof Field) {
            throw new InvalidArgumentException('The callback should return an instance of '.Field::class);
        }

        $field->build();

        $target = $this->convertToMappingArray($builder);

        $this->builder->getClassMetadata()->setAttributeOverride(
            $this->name,
            $this->mergeRecursively($source, $target)
        );
    }
137090
public function preparar()
    {
        // Validamos la sentencia a preparar
        if (empty($this->sentencia)) {
            if ($this->arrojarExcepciones) {
                throw new \InvalidArgumentException('La sentencia a preparar se encuentra vacia.');
            }
        }

        return $this->pdo->prepare($this->sentencia);
    }
1042920
public function connect()
    {
        if (!$host = $this->getHost()) {
            throw new InvalidArgumentException('Host não informado');
        }

        if (!$this->client) {
            $this->client = new NativeSoapClient($host, $this->getOptions());
        }

        return $this;
    }
743009
public function getResourceInfo() {
		$resourceInfo = new ResourceInfo ();
		if (isset ( $this->encoding )) {
			$resourceInfo->encoding = $this->encoding;
		} else {
			$resourceInfo->encoding = "UTF-8";
		}
		$resourceInfo->size = strlen ( $this->data );
		$resourceInfo->classifier = $this->fileformat;
		$resourceInfo->name = $this->name;
		
		if (isset ( $this->clientIdentifier )) {
			$resourceInfo->clientIdentifier = $this->clientIdentifier;
		}

		return $resourceInfo;
	}
1210380
public function getInfo() {
		$info = $this->createInfoset();
		$info->setName('Occurred errors');
		
		$this->handleIcon($info);
		$this->createTitle($info);
		
		if (! empty($this->errors)) {
			$info->setContentType(Infoset::TYPE_LIST)
			     ->enableBbCodes();
			     
			$this->createContent($info);
		}
		
		return $info;
	}
886278
public static function create()
	{
		switch (func_num_args()) {
			case 0:
				return new CodeGeneratorResponse();
			case 1:
				return new CodeGeneratorResponse(func_get_arg(0));
			case 2:
				return new CodeGeneratorResponse(func_get_arg(0), func_get_arg(1));
			case 3:
				return new CodeGeneratorResponse(func_get_arg(0), func_get_arg(1), func_get_arg(2));
			case 4:
				return new CodeGeneratorResponse(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3));
			case 5:
				return new CodeGeneratorResponse(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4));
			case 6:
				return new CodeGeneratorResponse(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5));
			case 7:
				return new CodeGeneratorResponse(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6));
			case 8:
				return new CodeGeneratorResponse(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6), func_get_arg(7));
			default:
				throw new \InvalidArgumentException('More than 8 arguments supplied, please be reasonable.');
		}
	}
1143967
public function build(): GetEncodedResponseRequest
	{
		$instance = new GetEncodedResponseRequest();
		if ($this->requestId === null) {
			throw new BuilderException('Property [requestId] is required.');
		}
		$instance->requestId = $this->requestId;
		if ($this->encoding === null) {
			throw new BuilderException('Property [encoding] is required.');
		}
		$instance->encoding = $this->encoding;
		$instance->quality = $this->quality;
		$instance->sizeOnly = $this->sizeOnly;
		return $instance;
	}
1074817
public function createParser($kind = null)
    {
        if ($this->hasKindsSupport()) {
            $originalFactory = new OriginalParserFactory();

            $kind = $kind ?: $this->getDefaultKind();

            if (!\in_array($kind, static::getPossibleKinds())) {
                throw new \InvalidArgumentException('Unknown parser kind');
            }

            $parser = $originalFactory->create(\constant('PhpParser\ParserFactory::' . $kind));
        } else {
            if ($kind !== null) {
                throw new \InvalidArgumentException('Install PHP Parser v2.x to specify parser kind');
            }

            $parser = new Parser(new Lexer());
        }

        return $parser;
    }
872969
public function newInstance()
    {
        if ($this->prototype === null) {
            $this->prototype = unserialize(sprintf('O:%d:"%s":0:{}', strlen($this->name), $this->name));
        }

        return clone $this->prototype;
    }
536496
public static function create()
    {
        $result = new static();
        $result->devBranches = [];
        $result->directoryToParse = '';
        $result->directoryForPlaces = '';
        $result->detectedVersions = [];
        $result->tagToVersionRegexp = '/^(?:v(?:er(?:s(?:ion)?)?)?[.\s]*)?(\d+(?:\.\d+)*)$/';
        $result->setTagFilters(null);

        return $result;
    }
476485
public function getSource() {
		$source = $this->config->getSource($this->request->source);

		if (!$source) {
			throw new \Exception('Source not found', Consts::ERROR_CODE_NOT_EXISTS);
		}

		return $source;
	}
1096718
public function bootstrap(): Source
    {
        $connection = $this->getDatabaseConnection();

        $config = $this->config->get("database.connections.$connection");

        if (array_get($config, 'driver') !== 'mysql') {
            throw new InvalidArgumentException("Unsupported database driver [{$config['driver']}].");
        }

        return new Source(
            $this->getName(),
            array_get($config, 'database'),
            array_get($config, 'host'),
            array_get($config, 'username'),
            array_get($config, 'password')
        );
    }
226013
protected function getSigner()
    {
        $signerClass = sprintf('Namshi\\JOSE\\Signer\\%s\\%s', $this->encryptionEngine, $this->header['alg']);

        if (class_exists($signerClass)) {
            return new $signerClass();
        }

        throw new InvalidArgumentException(
            sprintf("The algorithm '%s' is not supported for %s", $this->header['alg'], $this->encryptionEngine));
    }
20229
public function getCompressionAlgorithm()
    {
        if (isset($this->raw->compression)) {
            if (is_string($this->raw->compression)) {
                if (false === defined('Phar::' . $this->raw->compression)) {
                    throw new InvalidArgumentException(
                        sprintf(
                            'The compression algorithm "%s" is not supported.',
                            $this->raw->compression
                        )
                    );
                }

                $value = constant('Phar::' . $this->raw->compression);

                // Phar::NONE is not valid for compressFiles()
                if (Phar::NONE === $value) {
                    return null;
                }

                return $value;
            }

            return $this->raw->compression;
        }

        return null;
    }
901100
public function getData()
    {
        if (null === $this->data) {
            $this->data = $this->dataFactory->create(new ParameterBag($this->options));

            if (false === $this->supportData()) {
                throw new SourceException(
                    sprintf("Mapper source type %s don't support this data!", $this->getTypeName())
                );
            }
        }

        return $this->data;
    }
502796
protected function getDefaultQueryGrammar()
    {
        $driver = $this->ci->db->dbdriver;
        switch ($driver) {
            case 'mysql':
            case 'mysqli':
                if (class_exists('\Illuminate\Database\Query\Grammars\MySqlGrammar')) {
                    return $this->withTablePrefix(new \Illuminate\Database\Query\Grammars\MySqlGrammar);
                }

                return $this->withTablePrefix(new \Illuminate\Database\Schema\Grammars\MySqlGrammar);
        }

        throw new \InvalidArgumentException("Unknown CI database driver '$driver'");
    }