Commit 0cf95ce2 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-44: php-cs-fixer fix src/ --level=psr2

parent a04c7e14
This diff is collapsed.
<?php <?php
namespace MongoDB; namespace MongoDB;
class DeleteResult { class DeleteResult
{
protected $wr; protected $wr;
function __construct(\MongoDB\WriteResult $wr) { public function __construct(\MongoDB\WriteResult $wr)
{
$this->wr = $wr; $this->wr = $wr;
} }
function getDeletedCount() { public function getDeletedCount()
{
return $this->wr->getDeletedCount(); return $this->wr->getDeletedCount();
} }
} }
<?php <?php
namespace MongoDB; namespace MongoDB;
class InsertResult { class InsertResult
{
protected $wr; protected $wr;
function __construct(\MongoDB\WriteResult $wr, \BSON\ObjectId $id = null) { public function __construct(\MongoDB\WriteResult $wr, \BSON\ObjectId $id = null)
{
$this->wr = $wr; $this->wr = $wr;
$this->id = $id; $this->id = $id;
} }
function getInsertedId() { public function getInsertedId()
{
return $this->id; return $this->id;
} }
} }
<?php <?php
namespace MongoDB; namespace MongoDB;
class UpdateResult { class UpdateResult
{
protected $wr; protected $wr;
function __construct(\MongoDB\WriteResult $wr) { public function __construct(\MongoDB\WriteResult $wr)
{
$this->wr = $wr; $this->wr = $wr;
} }
function getMatchedCount() { public function getMatchedCount()
{
return $this->wr->getMatchedCount(); return $this->wr->getMatchedCount();
} }
function getModifiedCount() { public function getModifiedCount()
{
return $this->wr->getModifiedCount(); return $this->wr->getModifiedCount();
} }
function getUpsertedId() { public function getUpsertedId()
{
return $this->wr->getUpsertedIds()[0]; return $this->wr->getUpsertedIds()[0];
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment