Skip to content

Commit 97cc5ff

Browse files
abellionjmikola
authored andcommitted
PHPLIB-186: Implement Manager accessors for core classes
1 parent a3449c6 commit 97cc5ff

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

src/Client.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ public function dropDatabase($databaseName, array $options = [])
120120
return $operation->execute($server);
121121
}
122122

123+
/**
124+
* Return the Manager.
125+
*
126+
* @return Manager
127+
*/
128+
public function getManager()
129+
{
130+
return $this->manager;
131+
}
132+
123133
/**
124134
* List databases.
125135
*

src/Collection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,16 @@ public function getDatabaseName()
576576
return $this->databaseName;
577577
}
578578

579+
/**
580+
* Return the Manager.
581+
*
582+
* @return Manager
583+
*/
584+
public function getManager()
585+
{
586+
return $this->manager;
587+
}
588+
579589
/**
580590
* Return the collection namespace.
581591
*

src/Database.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,16 @@ public function getDatabaseName()
228228
return $this->databaseName;
229229
}
230230

231+
/**
232+
* Return the Manager.
233+
*
234+
* @return Manager
235+
*/
236+
public function getManager()
237+
{
238+
return $this->manager;
239+
}
240+
231241
/**
232242
* Returns information for all collections in this database.
233243
*

0 commit comments

Comments
 (0)