_id
stringlengths
2
7
title
stringlengths
3
151
partition
stringclasses
3 values
text
stringlengths
33
8k
language
stringclasses
1 value
meta_information
dict
q16500
FieldValue.getReturnType
train
public function getReturnType(): Type { if (! isset($this->returnType)) { $this->returnType = app(DefinitionNodeConverter::class)->toType(
php
{ "resource": "" }
q16501
PaginationUtils.calculateCurrentPage
train
public static function calculateCurrentPage(int $first, int $after, int $defaultPage = 1): int
php
{ "resource": "" }
q16502
TypeRegistry.register
train
public function register(Type $type): self { $this->types[$type->name]
php
{ "resource": "" }
q16503
TypeRegistry.get
train
public function get(string $typeName): Type { if (! isset($this->types[$typeName])) { throw new InvariantViolation("No type {$typeName}
php
{ "resource": "" }
q16504
PaginationManipulator.transformToPaginatedField
train
public static function transformToPaginatedField( PaginationType $paginationType, FieldDefinitionNode $fieldDefinition, ObjectTypeDefinitionNode $parentType, DocumentAST $current, ?int $defaultCount = null, ?int $maxCount = null ): DocumentAST { if ($paginatio...
php
{ "resource": "" }
q16505
PaginationManipulator.countArgument
train
protected static function countArgument(string $argumentName, ?int $defaultCount = null, ?int $maxCount = null): string { $description = '"Limits number of fetched elements.'; if ($maxCount) { $description .= ' Maximum allowed value: '.$maxCount.'.'; }
php
{ "resource": "" }
q16506
Upload.parseValue
train
public function parseValue($value): UploadedFile { if (! $value instanceof UploadedFile) { throw new Error( 'Could not get uploaded file, be sure to conform to GraphQL
php
{ "resource": "" }
q16507
Cursor.decode
train
public static function decode(array $args): int { if ($cursor = Arr::get($args,
php
{ "resource": "" }
q16508
SearchableModelMakeCommand.buildClass
train
protected function buildClass($name) { $stub = parent::buildClass($name); $indexConfigurator = $this->getIndexConfigurator(); $stub = str_replace( 'DummyIndexConfigurator', $indexConfigurator ? "{$indexConfigurator}::class" : 'null', $stub );
php
{ "resource": "" }
q16509
ElasticEngine.buildSearchQueryPayloadCollection
train
public function buildSearchQueryPayloadCollection(Builder $builder, array $options = []) { $payloadCollection = collect(); if ($builder instanceof SearchBuilder) { $searchRules = $builder->rules ?: $builder->model->getSearchRules(); foreach ($searchRules as $rule) { ...
php
{ "resource": "" }
q16510
ElasticEngine.count
train
public function count(Builder $builder) { $count = 0; $this ->buildSearchQueryPayloadCollection($builder, ['highlight' => false]) ->each(function ($payload) use (&$count) { $result = ElasticClient::count($payload);
php
{ "resource": "" }
q16511
ElasticEngine.searchRaw
train
public function searchRaw(Model $model, $query) { $payload = (new TypePayload($model)) ->setIfNotEmpty('body', $query)
php
{ "resource": "" }
q16512
RawPayload.setIfNotEmpty
train
public function setIfNotEmpty($key, $value) { if (empty($value)) { return $this;
php
{ "resource": "" }
q16513
RawPayload.setIfNotNull
train
public function setIfNotNull($key, $value) { if (is_null($value)) { return $this;
php
{ "resource": "" }
q16514
RawPayload.add
train
public function add($key, $value) { if (! is_null($key)) { $currentValue = Arr::get($this->payload, $key, []); if (! is_array($currentValue)) { $currentValue = Arr::wrap($currentValue); }
php
{ "resource": "" }
q16515
RawPayload.addIfNotEmpty
train
public function addIfNotEmpty($key, $value) { if (empty($value)) { return $this;
php
{ "resource": "" }
q16516
IndexConfigurator.getName
train
public function getName() { $name = $this->name ?? Str::snake(str_replace('IndexConfigurator',
php
{ "resource": "" }
q16517
ElasticIndexCreateCommand.createWriteAlias
train
protected function createWriteAlias() { $configurator = $this->getIndexConfigurator(); if (! in_array(Migratable::class, class_uses_recursive($configurator))) { return; } $payload = (new IndexPayload($configurator)) ->set('name', $configurator->getWriteAlias...
php
{ "resource": "" }
q16518
ElasticMigrateCommand.isTargetIndexExists
train
protected function isTargetIndexExists() { $targetIndex = $this->argument('target-index'); $payload = (new RawPayload()) ->set('index', $targetIndex)
php
{ "resource": "" }
q16519
ElasticMigrateCommand.createTargetIndex
train
protected function createTargetIndex() { $targetIndex = $this->argument('target-index'); $sourceIndexConfigurator = $this->getModel() ->getIndexConfigurator(); $payload = (new RawPayload()) ->set('index', $targetIndex) ->setIfNotEmpty('body.settings', $s...
php
{ "resource": "" }
q16520
ElasticMigrateCommand.updateTargetIndex
train
protected function updateTargetIndex() { $targetIndex = $this->argument('target-index'); $sourceIndexConfigurator = $this->getModel() ->getIndexConfigurator(); $targetIndexPayload = (new RawPayload()) ->set('index', $targetIndex) ->get(); $indic...
php
{ "resource": "" }
q16521
ElasticMigrateCommand.updateTargetIndexMapping
train
protected function updateTargetIndexMapping() { $sourceModel = $this->getModel(); $sourceIndexConfigurator = $sourceModel->getIndexConfigurator(); $targetIndex = $this->argument('target-index'); $targetType = $sourceModel->searchableAs(); $mapping = array_merge_recursive( ...
php
{ "resource": "" }
q16522
ElasticMigrateCommand.isAliasExists
train
protected function isAliasExists($name) { $payload = (new RawPayload())
php
{ "resource": "" }
q16523
ElasticMigrateCommand.deleteAlias
train
protected function deleteAlias($name) { $aliases = $this->getAlias($name); if (empty($aliases)) { return; } foreach ($aliases as $index => $alias) { $deletePayload = (new RawPayload()) ->set('index', $index) ->set('name', $nam...
php
{ "resource": "" }
q16524
ElasticMigrateCommand.createAliasForTargetIndex
train
protected function createAliasForTargetIndex($name) { $targetIndex = $this->argument('target-index'); if ($this->isAliasExists($name)) { $this->deleteAlias($name); } $payload = (new RawPayload())
php
{ "resource": "" }
q16525
ElasticMigrateCommand.deleteSourceIndex
train
protected function deleteSourceIndex() { $sourceIndexConfigurator = $this ->getModel() ->getIndexConfigurator(); if ($this->isAliasExists($sourceIndexConfigurator->getName())) { $aliases = $this->getAlias($sourceIndexConfigurator->getName()); foreach...
php
{ "resource": "" }
q16526
ElasticIndexUpdateCommand.updateIndex
train
protected function updateIndex() { $configurator = $this->getIndexConfigurator(); $indexPayload = (new IndexPayload($configurator))->get(); $indices = ElasticClient::indices(); if (! $indices->exists($indexPayload)) { throw new LogicException(sprintf( '...
php
{ "resource": "" }
q16527
ElasticIndexUpdateCommand.createWriteAlias
train
protected function createWriteAlias() { $configurator = $this->getIndexConfigurator(); if (! in_array(Migratable::class, class_uses_recursive($configurator))) { return; } $indices = ElasticClient::indices(); $existsPayload = (new RawPayload()) ->set...
php
{ "resource": "" }
q16528
IndexPayload.useAlias
train
public function useAlias($alias) { $aliasGetter = 'get'.ucfirst($alias).'Alias'; if (! method_exists($this->indexConfigurator, $aliasGetter)) { throw new Exception(sprintf( 'The index configurator %s doesn\'t have getter for the %s alias.',
php
{ "resource": "" }
q16529
Searchable.getMapping
train
public function getMapping() { $mapping = $this->mapping ?? []; if ($this::usesSoftDelete() &&
php
{ "resource": "" }
q16530
Searchable.getSearchRules
train
public function getSearchRules() { return isset($this->searchRules) && count($this->searchRules) > 0 ?
php
{ "resource": "" }
q16531
Searchable.search
train
public static function search($query, $callback = null) { $softDelete = static::usesSoftDelete() && config('scout.soft_delete', false); if ($query == '*') { return new FilterBuilder(new static, $callback, $softDelete);
php
{ "resource": "" }
q16532
FilterBuilder.whereRegexp
train
public function whereRegexp($field, $value, $flags = 'ALL') { $this->wheres['must'][] = [ 'regexp' => [
php
{ "resource": "" }
q16533
FilterBuilder.whereGeoDistance
train
public function whereGeoDistance($field, $value, $distance) { $this->wheres['must'][] = [ 'geo_distance' => [ 'distance' => $distance,
php
{ "resource": "" }
q16534
FilterBuilder.select
train
public function select($fields) { $this->select = array_merge( $this->select,
php
{ "resource": "" }
q16535
Formatter.formatExceptionAsDataArray
train
public static function formatExceptionAsDataArray(Inspector $inspector, $shouldAddTrace) { $exception = $inspector->getException(); $response = [ 'type' => get_class($exception), 'message' => $exception->getMessage(), 'file' => $exception->getFile(), ...
php
{ "resource": "" }
q16536
TemplateHelper.breakOnDelimiter
train
public function breakOnDelimiter($delimiter, $s) { $parts = explode($delimiter, $s); foreach ($parts as &$part) { $part
php
{ "resource": "" }
q16537
TemplateHelper.shorten
train
public function shorten($path) { if ($this->applicationRootPath != "/") {
php
{ "resource": "" }
q16538
TemplateHelper.dumpArgs
train
public function dumpArgs(Frame $frame) { // we support frame args only when the optional dumper is available if (!$this->getDumper()) { return ''; } $html = ''; $numFrames = count($frame->getArgs()); if ($numFrames > 0) { $html = '<ol class="...
php
{ "resource": "" }
q16539
TemplateHelper.slug
train
public function slug($original) { $slug = str_replace(" ", "-", $original);
php
{ "resource": "" }
q16540
TemplateHelper.render
train
public function render($template, array $additionalVariables = null) { $variables = $this->getVariables(); // Pass the helper to the template: $variables["tpl"] = $this; if ($additionalVariables !== null) { $variables = array_replace($variables, $additionalVariables); ...
php
{ "resource": "" }
q16541
Run.pushHandler
train
public function pushHandler($handler) { if (is_callable($handler)) { $handler = new CallbackHandler($handler); } if (!$handler instanceof HandlerInterface) { throw new InvalidArgumentException( "Argument to
php
{ "resource": "" }
q16542
Run.unregister
train
public function unregister() { if ($this->isRegistered) { $this->system->restoreExceptionHandler();
php
{ "resource": "" }
q16543
Run.allowQuit
train
public function allowQuit($exit = null) { if (func_num_args() == 0) { return $this->allowQuit;
php
{ "resource": "" }
q16544
Run.silenceErrorsInPaths
train
public function silenceErrorsInPaths($patterns, $levels = 10240) { $this->silencedPatterns = array_merge( $this->silencedPatterns, array_map( function ($pattern) use ($levels) { return [ "pattern" => $pattern, ...
php
{ "resource": "" }
q16545
Run.writeToOutput
train
public function writeToOutput($send = null) { if (func_num_args() == 0) { return $this->sendOutput;
php
{ "resource": "" }
q16546
Misc.translateErrorCode
train
public static function translateErrorCode($error_code) { $constants = get_defined_constants(true); if (array_key_exists('Core', $constants)) { foreach ($constants['Core'] as $constant => $value) { if (substr($constant, 0, 2) == 'E_' &&
php
{ "resource": "" }
q16547
Inspector.getPreviousExceptionInspector
train
public function getPreviousExceptionInspector() { if ($this->previousExceptionInspector === null) { $previousException = $this->exception->getPrevious();
php
{ "resource": "" }
q16548
Inspector.getPreviousExceptions
train
public function getPreviousExceptions() { if ($this->previousExceptions === null) { $this->previousExceptions = []; $prev = $this->exception->getPrevious(); while ($prev !== null) { $this->previousExceptions[] =
php
{ "resource": "" }
q16549
Inspector.getTrace
train
protected function getTrace($e) { $traces = $e->getTrace(); // Get trace from xdebug if enabled, failure exceptions only trace to the shutdown handler by default if (!$e instanceof \ErrorException) { return $traces; } if (!Misc::isLevelFatal($e->getSeverity())) ...
php
{ "resource": "" }
q16550
PrettyPageHandler.getExceptionFrames
train
protected function getExceptionFrames() { $frames = $this->getInspector()->getFrames(); if ($this->getApplicationPaths()) { foreach ($frames as $frame) { foreach ($this->getApplicationPaths() as $path) { if (strpos($frame->getFile(), $path) === 0) {
php
{ "resource": "" }
q16551
PrettyPageHandler.getExceptionCode
train
protected function getExceptionCode() { $exception = $this->getException(); $code = $exception->getCode(); if ($exception instanceof \ErrorException) { // ErrorExceptions wrap the
php
{ "resource": "" }
q16552
PrettyPageHandler.handleUnconditionally
train
public function handleUnconditionally($value = null) { if (func_num_args() == 0) { return $this->handleUnconditionally;
php
{ "resource": "" }
q16553
PrettyPageHandler.getEditorHref
train
public function getEditorHref($filePath, $line) { $editor = $this->getEditor($filePath, $line); if (empty($editor)) { return false; } // Check that the editor is a string, and replace the // %line and %file placeholders: if (!isset($editor['url']) || !is...
php
{ "resource": "" }
q16554
PrettyPageHandler.getResource
train
protected function getResource($resource) { // If the resource was found before, we can speed things up // by caching its absolute, resolved path: if (isset($this->resourceCache[$resource])) { return $this->resourceCache[$resource]; } // Search through available ...
php
{ "resource": "" }
q16555
PlainTextHandler.setLogger
train
public function setLogger($logger = null) { if (! (is_null($logger) || $logger instanceof LoggerInterface)) { throw new InvalidArgumentException( 'Argument to ' . __METHOD__ .
php
{ "resource": "" }
q16556
PlainTextHandler.addTraceToOutput
train
public function addTraceToOutput($addTraceToOutput = null) { if (func_num_args() == 0) {
php
{ "resource": "" }
q16557
PlainTextHandler.addTraceFunctionArgsToOutput
train
public function addTraceFunctionArgsToOutput($addTraceFunctionArgsToOutput = null) { if (func_num_args() == 0) { return $this->addTraceFunctionArgsToOutput; } if (! is_integer($addTraceFunctionArgsToOutput)) { $this->addTraceFunctionArgsToOutput =
php
{ "resource": "" }
q16558
PlainTextHandler.generateResponse
train
public function generateResponse() { $exception = $this->getException(); return sprintf( "%s: %s in file %s on line %d%s\n", get_class($exception), $exception->getMessage(),
php
{ "resource": "" }
q16559
PlainTextHandler.loggerOnly
train
public function loggerOnly($loggerOnly = null) { if (func_num_args() == 0) { return $this->loggerOnly;
php
{ "resource": "" }
q16560
PlainTextHandler.getTraceOutput
train
private function getTraceOutput() { if (! $this->addTraceToOutput()) { return ''; } $inspector = $this->getInspector(); $frames = $inspector->getFrames(); $response = "\nStack trace:"; $line = 1; foreach ($frames as $frame) { /** @var...
php
{ "resource": "" }
q16561
FrameCollection.map
train
public function map($callable) { // Contain the map within a higher-order callable // that enforces type-correctness for the $callable $this->frames = array_map(function ($frame) use ($callable) {
php
{ "resource": "" }
q16562
FrameCollection.topDiff
train
public function topDiff(FrameCollection $parentFrames) { $diff = $this->frames; $parentFrames = $parentFrames->getArray(); $p = count($parentFrames)-1; for ($i = count($diff)-1; $i >= 0 && $p >= 0; $i--) { /** @var Frame $tailFrame */
php
{ "resource": "" }
q16563
Frame.getComments
train
public function getComments($filter = null) { $comments = $this->comments; if ($filter !== null) {
php
{ "resource": "" }
q16564
Frame.getFileLines
train
public function getFileLines($start = 0, $length = null) { if (null !== ($contents = $this->getFileContents())) { $lines = explode("\n", $contents); // Get a subset of lines from $start to $end if ($length !== null) { $start = (int) $start;
php
{ "resource": "" }
q16565
Frame.serialize
train
public function serialize() { $frame = $this->frame; if (!empty($this->comments)) {
php
{ "resource": "" }
q16566
Frame.unserialize
train
public function unserialize($serializedFrame) { $frame = unserialize($serializedFrame); if (!empty($frame['_comments'])) { $this->comments = $frame['_comments'];
php
{ "resource": "" }
q16567
Frame.equals
train
public function equals(Frame $frame) { if (!$this->getFile() || $this->getFile() === 'Unknown' || !$this->getLine()) {
php
{ "resource": "" }
q16568
SQLServerSchemaManager.getColumnConstraintSQL
train
private function getColumnConstraintSQL($table, $column) { return "SELECT SysObjects.[Name] FROM SysObjects INNER JOIN (SELECT [Name],[ID] FROM SysObjects WHERE XType = 'U') AS Tab ON Tab.[ID] = Sysobjects.[Parent_Obj] INNER JOIN sys.default_constraints DefCons ON DefCons...
php
{ "resource": "" }
q16569
SQLServerSchemaManager.closeActiveDatabaseConnections
train
private function closeActiveDatabaseConnections($database) { $database = new Identifier($database); $this->_execSql( sprintf( 'ALTER DATABASE %s SET SINGLE_USER WITH ROLLBACK
php
{ "resource": "" }
q16570
QueryBuilder.getSQL
train
public function getSQL() { if ($this->sql !== null && $this->state === self::STATE_CLEAN) { return $this->sql; } switch ($this->type) { case self::INSERT: $sql = $this->getSQLForInsert(); break; case self::DELETE: ...
php
{ "resource": "" }
q16571
QueryBuilder.setParameter
train
public function setParameter($key, $value, $type = null) { if ($type !== null) { $this->paramTypes[$key] = $type;
php
{ "resource": "" }
q16572
QueryBuilder.setParameters
train
public function setParameters(array $params, array $types = []) { $this->paramTypes = $types;
php
{ "resource": "" }
q16573
QueryBuilder.groupBy
train
public function groupBy($groupBy) { if (empty($groupBy)) { return $this; }
php
{ "resource": "" }
q16574
QueryBuilder.getSQLForInsert
train
private function getSQLForInsert() { return 'INSERT INTO ' . $this->sqlParts['from']['table'] .
php
{ "resource": "" }
q16575
QueryBuilder.createPositionalParameter
train
public function createPositionalParameter($value, $type = ParameterType::STRING) { $this->boundCounter++;
php
{ "resource": "" }
q16576
Driver._constructPdoDsn
train
protected function _constructPdoDsn(array $params) { $dsn = 'sqlite:'; if (isset($params['path'])) { $dsn .= $params['path'];
php
{ "resource": "" }
q16577
SQLParserUtils.getPlaceholderPositions
train
public static function getPlaceholderPositions($statement, $isPositional = true) { return $isPositional
php
{ "resource": "" }
q16578
SQLParserUtils.getPositionalPlaceholderPositions
train
private static function getPositionalPlaceholderPositions(string $statement) : array { return self::collectPlaceholders( $statement, '?',
php
{ "resource": "" }
q16579
SQLParserUtils.getNamedPlaceholderPositions
train
private static function getNamedPlaceholderPositions(string $statement) : array { return self::collectPlaceholders( $statement, ':', self::NAMED_TOKEN, static function (string
php
{ "resource": "" }
q16580
PostgreSqlPlatform.isUnchangedBinaryColumn
train
private function isUnchangedBinaryColumn(ColumnDiff $columnDiff) { $columnType = $columnDiff->column->getType(); if (! $columnType instanceof BinaryType && ! $columnType instanceof BlobType) { return false; } $fromColumn = $columnDiff->fromColumn instanceof Column ? $co...
php
{ "resource": "" }
q16581
PostgreSqlPlatform.convertSingleBooleanValue
train
private function convertSingleBooleanValue($value, $callback) { if ($value === null) { return $callback(null); } if (is_bool($value) || is_numeric($value)) { return $callback((bool) $value); } if (! is_string($value)) { return $callback(t...
php
{ "resource": "" }
q16582
PostgreSqlPlatform.doConvertBooleans
train
private function doConvertBooleans($item, $callback) { if (is_array($item)) { foreach ($item as $key => $value) { $item[$key] = $this->convertSingleBooleanValue($value, $callback); }
php
{ "resource": "" }
q16583
PostgreSqlPlatform.typeChangeBreaksDefaultValue
train
private function typeChangeBreaksDefaultValue(ColumnDiff $columnDiff) : bool { if (! $columnDiff->fromColumn) { return $columnDiff->hasChanged('type'); } $oldTypeIsNumeric = $this->isNumericType($columnDiff->fromColumn->getType());
php
{ "resource": "" }
q16584
OCI8Statement.findPlaceholderOrOpeningQuote
train
private static function findPlaceholderOrOpeningQuote( $statement, &$tokenOffset, &$fragmentOffset, &$fragments, &$currentLiteralDelimiter, &$paramMap ) { $token = self::findToken($statement, $tokenOffset, '/[?\'"]/'); if (! $token) { retu...
php
{ "resource": "" }
q16585
OCI8Statement.findClosingQuote
train
private static function findClosingQuote( $statement, &$tokenOffset, &$currentLiteralDelimiter ) { $token = self::findToken( $statement, $tokenOffset, '/' . preg_quote($currentLiteralDelimiter, '/') . '/'
php
{ "resource": "" }
q16586
OCI8Statement.findToken
train
private static function findToken($statement, &$offset, $regex) { if (preg_match($regex, $statement, $matches, PREG_OFFSET_CAPTURE, $offset)) { $offset =
php
{ "resource": "" }
q16587
OCI8Statement.convertParameterType
train
private function convertParameterType(int $type) : int { switch ($type) { case ParameterType::BINARY: return OCI_B_BIN; case ParameterType::LARGE_OBJECT:
php
{ "resource": "" }
q16588
ForeignKeyConstraint.getQuotedLocalColumns
train
public function getQuotedLocalColumns(AbstractPlatform $platform) { $columns = []; foreach ($this->_localColumnNames as $column) {
php
{ "resource": "" }
q16589
ForeignKeyConstraint.getUnqualifiedForeignTableName
train
public function getUnqualifiedForeignTableName() { $name = $this->_foreignTableName->getName();
php
{ "resource": "" }
q16590
ForeignKeyConstraint.getQuotedForeignColumns
train
public function getQuotedForeignColumns(AbstractPlatform $platform) { $columns = []; foreach ($this->_foreignColumnNames as $column) {
php
{ "resource": "" }
q16591
ForeignKeyConstraint.onEvent
train
private function onEvent($event) { if (isset($this->_options[$event])) { $onEvent = strtoupper($this->_options[$event]); if (! in_array($onEvent, ['NO ACTION',
php
{ "resource": "" }
q16592
ForeignKeyConstraint.intersectsIndexColumns
train
public function intersectsIndexColumns(Index $index) { foreach ($index->getColumns() as $indexColumn) { foreach ($this->_localColumnNames as $localColumn) {
php
{ "resource": "" }
q16593
SQLAnywhereSchemaManager.startDatabase
train
public function startDatabase($database) { assert($this->_platform instanceof SQLAnywherePlatform);
php
{ "resource": "" }
q16594
SQLAnywhereSchemaManager.stopDatabase
train
public function stopDatabase($database) { assert($this->_platform instanceof SQLAnywherePlatform);
php
{ "resource": "" }
q16595
Driver.constructPdoDsn
train
private function constructPdoDsn(array $params) { $dsn = 'oci:dbname=' . $this->getEasyConnectString($params); if (isset($params['charset'])) {
php
{ "resource": "" }
q16596
AbstractMySQLDriver.getOracleMysqlVersionNumber
train
private function getOracleMysqlVersionNumber(string $versionString) : string { if (! preg_match( '/^(?P<major>\d+)(?:\.(?P<minor>\d+)(?:\.(?P<patch>\d+))?)?/', $versionString, $versionParts )) { throw DBALException::invalidPlatformVersionSpecified( ...
php
{ "resource": "" }
q16597
AbstractMySQLDriver.getMariaDbMysqlVersionNumber
train
private function getMariaDbMysqlVersionNumber(string $versionString) : string { if (! preg_match( '/^(?:5\.5\.5-)?(mariadb-)?(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)/i', $versionString, $versionParts )) { throw DBALException::invalidPlatformVersi...
php
{ "resource": "" }
q16598
SqlitePlatform.getNonAutoincrementPrimaryKeyDefinition
train
private function getNonAutoincrementPrimaryKeyDefinition(array $columns, array $options) : string { if (empty($options['primary'])) { return ''; } $keyColumns = array_unique(array_values($options['primary'])); foreach ($keyColumns as $keyColumn) {
php
{ "resource": "" }
q16599
Statement.bindValue
train
public function bindValue($name, $value, $type = ParameterType::STRING) { $this->params[$name] = $value; $this->types[$name] = $type; if ($type !== null) { if (is_string($type)) { $type = Type::getType($type); } if ($type instanceof Type) ...
php
{ "resource": "" }