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
33f6ca4d
Commit
33f6ca4d
authored
Apr 24, 2015
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-75: Use package BadMethodCallException for IndexInfo
Also change "read-only" language to "immutable".
parent
2083eede
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
BadMethodCallException.php
src/Exception/BadMethodCallException.php
+7
-0
IndexInfo.php
src/Model/IndexInfo.php
+5
-5
No files found.
src/Exception/BadMethodCallException.php
0 → 100644
View file @
33f6ca4d
<?php
namespace
MongoDB\Exception
;
class
BadMethodCallException
extends
\BadMethodCallException
implements
Exception
{
}
src/Model/IndexInfo.php
View file @
33f6ca4d
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
namespace
MongoDB\Model
;
namespace
MongoDB\Model
;
use
MongoDB\Exception\BadMethodCallException
;
use
ArrayAccess
;
use
ArrayAccess
;
use
BadMethodCallException
;
/**
/**
* Index information model class.
* Index information model class.
...
@@ -140,21 +140,21 @@ class IndexInfo implements ArrayAccess
...
@@ -140,21 +140,21 @@ class IndexInfo implements ArrayAccess
* Not supported.
* Not supported.
*
*
* @see http://php.net/arrayaccess.offsetset
* @see http://php.net/arrayaccess.offsetset
* @throws BadMethodCallException IndexInfo is
read-only
* @throws BadMethodCallException IndexInfo is
immutable
*/
*/
public
function
offsetSet
(
$key
,
$value
)
public
function
offsetSet
(
$key
,
$value
)
{
{
throw
new
BadMethodCallException
(
'IndexInfo is
read-only
'
);
throw
new
BadMethodCallException
(
'IndexInfo is
immutable
'
);
}
}
/**
/**
* Not supported.
* Not supported.
*
*
* @see http://php.net/arrayaccess.offsetunset
* @see http://php.net/arrayaccess.offsetunset
* @throws BadMethodCallException IndexInfo is
read-only
* @throws BadMethodCallException IndexInfo is
immutable
*/
*/
public
function
offsetUnset
(
$key
)
public
function
offsetUnset
(
$key
)
{
{
throw
new
BadMethodCallException
(
'IndexInfo is
read-only
'
);
throw
new
BadMethodCallException
(
'IndexInfo is
immutable
'
);
}
}
}
}
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