Function AbstractNotPartitionedDatabase->find

Definitions

sources/isocodes/vendor/sokil/php-isocodes/src/AbstractNotPartitionedDatabase.php

  • object[] when found by compound index
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$indexedFieldName string No No required parameter N/A N/A $indexedFieldName
$fieldValue string No No required parameter N/A N/A $fieldValue

Returns

  • null when not found, object when found by single-field index,
  • Type: null|object|object[]
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * object[] when found by compound index
 *
 * @param  string $indexedFieldName $indexedFieldName
 * @param  string $fieldValue $fieldValue
 * @return null|object|object[] null when not found, object when found by single-field index,
 */

protected function find(string $indexedFieldName, string $fieldValue)