Commit 97cc5ff4 authored by Antoine Bellion's avatar Antoine Bellion Committed by Jeremy Mikola

PHPLIB-186: Implement Manager accessors for core classes

parent a3449c6a
...@@ -120,6 +120,16 @@ class Client ...@@ -120,6 +120,16 @@ class Client
return $operation->execute($server); return $operation->execute($server);
} }
/**
* Return the Manager.
*
* @return Manager
*/
public function getManager()
{
return $this->manager;
}
/** /**
* List databases. * List databases.
* *
......
...@@ -576,6 +576,16 @@ class Collection ...@@ -576,6 +576,16 @@ class Collection
return $this->databaseName; return $this->databaseName;
} }
/**
* Return the Manager.
*
* @return Manager
*/
public function getManager()
{
return $this->manager;
}
/** /**
* Return the collection namespace. * Return the collection namespace.
* *
......
...@@ -228,6 +228,16 @@ class Database ...@@ -228,6 +228,16 @@ class Database
return $this->databaseName; return $this->databaseName;
} }
/**
* Return the Manager.
*
* @return Manager
*/
public function getManager()
{
return $this->manager;
}
/** /**
* Returns information for all collections in this database. * Returns information for all collections in this database.
* *
......
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