Google\Cloud\Datastore\Operation::__construct PHP Method

__construct() public method

Create an operation
public __construct ( Google\Cloud\Datastore\Connection\ConnectionInterface $connection, string $projectId, string $namespaceId, EntityMapper $entityMapper )
$connection Google\Cloud\Datastore\Connection\ConnectionInterface A connection to Google Cloud Platform's Datastore API.
$projectId string The Google Cloud Platform project ID.
$namespaceId string The namespace to use for all service requests.
$entityMapper EntityMapper
    public function __construct(ConnectionInterface $connection, $projectId, $namespaceId, EntityMapper $entityMapper)
    {
        $this->connection = $connection;
        $this->projectId = $projectId;
        $this->namespaceId = $namespaceId;
        $this->entityMapper = $entityMapper;
    }