Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
f869a65a
Commit
f869a65a
authored
Feb 02, 2018
by
Jeremy Mikola
Committed by
Katherine Walker
Feb 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add doc blocks for disabled TypeMapArrayIterator methods
parent
16aea91d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
TypeMapArrayIterator.php
src/Model/TypeMapArrayIterator.php
+55
-0
No files found.
src/Model/TypeMapArrayIterator.php
View file @
f869a65a
...
...
@@ -47,11 +47,23 @@ class TypeMapArrayIterator extends ArrayIterator
$this
->
typeMap
=
$typeMap
;
}
/**
* Not supported.
*
* @see http://php.net/arrayiterator.append
* @throws BadMethodCallException
*/
public
function
append
(
$value
)
{
throw
BadMethodCallException
::
classIsImmutable
(
__CLASS__
);
}
/**
* Not supported.
*
* @see http://php.net/arrayiterator.asort
* @throws BadMethodCallException
*/
public
function
asort
()
{
throw
BadMethodCallException
::
classIsImmutable
(
__CLASS__
);
...
...
@@ -68,16 +80,34 @@ class TypeMapArrayIterator extends ArrayIterator
return
\MongoDB\apply_type_map_to_document
(
parent
::
current
(),
$this
->
typeMap
);
}
/**
* Not supported.
*
* @see http://php.net/arrayiterator.ksort
* @throws BadMethodCallException
*/
public
function
ksort
()
{
throw
BadMethodCallException
::
classIsImmutable
(
__CLASS__
);
}
/**
* Not supported.
*
* @see http://php.net/arrayiterator.natcasesort
* @throws BadMethodCallException
*/
public
function
natcasesort
()
{
throw
BadMethodCallException
::
classIsImmutable
(
__CLASS__
);
}
/**
* Not supported.
*
* @see http://php.net/arrayiterator.natsort
* @throws BadMethodCallException
*/
public
function
natsort
()
{
throw
BadMethodCallException
::
classIsImmutable
(
__CLASS__
);
...
...
@@ -87,6 +117,7 @@ class TypeMapArrayIterator extends ArrayIterator
* Return the value from the provided offset with the type map applied.
*
* @see http://php.net/arrayiterator.offsetget
* @param mixed $offset
* @return array|object
*/
public
function
offsetGet
(
$offset
)
...
...
@@ -94,21 +125,45 @@ class TypeMapArrayIterator extends ArrayIterator
return
\MongoDB\apply_type_map_to_document
(
parent
::
offsetGet
(
$offset
),
$this
->
typeMap
);
}
/**
* Not supported.
*
* @see http://php.net/arrayiterator.offsetset
* @throws BadMethodCallException
*/
public
function
offsetSet
(
$index
,
$newval
)
{
throw
BadMethodCallException
::
classIsImmutable
(
__CLASS__
);
}
/**
* Not supported.
*
* @see http://php.net/arrayiterator.offsetunset
* @throws BadMethodCallException
*/
public
function
offsetUnset
(
$index
)
{
throw
BadMethodCallException
::
classIsImmutable
(
__CLASS__
);
}
/**
* Not supported.
*
* @see http://php.net/arrayiterator.uasort
* @throws BadMethodCallException
*/
public
function
uasort
(
$cmp_function
)
{
throw
BadMethodCallException
::
classIsImmutable
(
__CLASS__
);
}
/**
* Not supported.
*
* @see http://php.net/arrayiterator.uksort
* @throws BadMethodCallException
*/
public
function
uksort
(
$cmp_function
)
{
throw
BadMethodCallException
::
classIsImmutable
(
__CLASS__
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment