Scope
Scope is an object for providing access to collections.
Table of Contents
__construct() | mixed | |
---|---|---|
name() | Returns the name of the scope. | string |
collection() | Returns a new Collection object representing the collection specified. | Collection |
Methods
__construct()
public
__construct(
$bucket :
Bucket
, $name :
string
)
: mixed
Parameters
- $bucket : Bucket
- $name : string
Return values
mixedname()
Returns the name of the scope.
public
name(
)
: string
Return values
stringcollection()
Returns a new Collection object representing the collection specified.
public
collection(
$name :
string
)
: Collection
Parameters
- $name : string
the name of the collection