public __construct ( |
||
$key | The Entity's Key, defining its unique identifier. | |
$entity | array | [optional] The entity body. |
$options | array | [optional] { Configuration Options @type string $cursor Set only when the entity is obtained by a query result. If set, the entity cursor can be retrieved from {@see \Google\Cloud\Datastore\Entity::cursor()}. @type string $baseVersion Set only when the entity is obtained by a query result. If set, the entity cursor can be retrieved from {@see \Google\Cloud\Datastore\Entity::baseVersion()}. @type array $excludeFromIndexes A list of entity keys to exclude from datastore indexes. @type array $meanings A list of meaning values for entity properties. @type bool $populatedByService Indicates whether the entity was created as the result of a service request. } |
public function __construct(Key $key, array $entity = [], array $options = [])
{
$this->key = $key;
$this->entity = $entity;
$this->options = $options + ['cursor' => null, 'baseVersion' => null, 'populatedByService' => false, 'excludeFromIndexes' => [], 'meanings' => []];
}