Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated doc-block comments. #9

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(Connection $connection, array $properties = [])
* @param array $filter
* @param array $options
*
* @return Xenus\Cursor
* @return \Xenus\Cursor
*/
public function find($filter = [], array $options = [])
{
Expand Down Expand Up @@ -151,7 +151,7 @@ public function findOneAndReplace($filter, $replacement, array $options = [])
* @param array|ObjectID $filter
* @param array $options
*
* @return MongoDB\DeleteResult
* @return \MongoDB\DeleteResult
*/
public function deleteOne($filter, array $options = [])
{
Expand All @@ -169,7 +169,7 @@ public function deleteOne($filter, array $options = [])
* @param array|object $update
* @param array $options
*
* @return MongoDB\UpdateResult
* @return \MongoDB\UpdateResult
*/
public function updateOne($filter, $update, array $options = [])
{
Expand All @@ -187,7 +187,7 @@ public function updateOne($filter, $update, array $options = [])
* @param array|object $replacement
* @param array $options
*
* @return MongoDB\UpdateResult
* @return \MongoDB\UpdateResult
*/
public function replaceOne($filter, $replacement, array $options = [])
{
Expand Down
4 changes: 2 additions & 2 deletions src/CollectionConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function has(string $property) {
/**
* Get the collection's options
*
* @return Array
* @return array
*/
public function getCollectionOptions()
{
Expand All @@ -62,7 +62,7 @@ public function getCollectionOptions()
/**
* Get the collection's name
*
* @return String|null
* @return string|null
*/
public function getCollectionName()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/HasCollectionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trait HasCollectionResolver
*
* @param string $collection
*
* @return Collection
* @return \Xenus\Collection
*/
public function resolve(string $collection)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Concerns/HasConvenientWrites.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ trait HasConvenientWrites
* @param array|object $document
* @param array $options
*
* @return MongoDB\InsertOneResult
* @return \MongoDB\InsertOneResult
*/
public function insert($document, array $options = [])
{
Expand All @@ -33,7 +33,7 @@ public function insert($document, array $options = [])
* @param array|object $document
* @param array $options
*
* @return MongoDB\DeleteResult
* @return \MongoDB\DeleteResult
*/
public function delete($document, array $options = [])
{
Expand All @@ -56,7 +56,7 @@ public function delete($document, array $options = [])
* @param array|object $document
* @param array $options
*
* @return MongoDB\UpdateResult
* @return \MongoDB\UpdateResult
*/
public function update($document, array $options = [])
{
Expand Down
2 changes: 1 addition & 1 deletion src/Concerns/HasRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ trait HasRelationships
*
* @param string $collection
*
* @return Collection
* @return \Xenus\Collection
*/
protected function build(string $collection)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function has(string $offset)
*
* @param array $fields The keys to keep
*
* @return Xenus\Document
* @return \Xenus\Document
*/
public function with(array $fields)
{
Expand All @@ -103,7 +103,7 @@ public function with(array $fields)
*
* @param array $fields The keys to drop
*
* @return Xenus\Document
* @return \Xenus\Document
*/
public function without(array $fields)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Relations/BindMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class BindMany extends AbstractRelation
* @param array $filter
* @param array $options
*
* @return Cursor
* @return \Xenus\Cursor
*/
public function find($filter = [], array $options = [])
{
Expand Down