jclaveau /
php-deferred-callchain
| 1 | <?php |
||||
| 2 | |||||
| 3 | /** |
||||
| 4 | * ArrayAccessTrait |
||||
| 5 | * |
||||
| 6 | * @package php-deferred-callchain |
||||
| 7 | * @author Jean Claveau |
||||
| 8 | */ |
||||
| 9 | namespace JClaveau\Async; |
||||
| 10 | |||||
| 11 | use BadMethodCallException; |
||||
| 12 | /** |
||||
| 13 | * Trait gathering unused array access required methods |
||||
| 14 | */ |
||||
| 15 | trait ArrayAccessTrait |
||||
| 16 | { |
||||
| 17 | /** |
||||
| 18 | * Unused part of the ArrayAccess interface |
||||
| 19 | * |
||||
| 20 | * @param $offset |
||||
| 21 | * @param $value |
||||
| 22 | * @throws \BadMethodCallException |
||||
| 23 | */ |
||||
| 24 | public function offsetSet($offset, $value) |
||||
|
0 ignored issues
–
show
The parameter
$offset is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 25 | { |
||||
| 26 | throw new BadMethodCallException("not implemented"); |
||||
| 27 | } |
||||
| 28 | /** |
||||
| 29 | * Unused part of the ArrayAccess interface |
||||
| 30 | * |
||||
| 31 | * @param $offset |
||||
| 32 | * @throws \BadMethodCallException |
||||
| 33 | */ |
||||
| 34 | public function offsetExists($offset) |
||||
|
0 ignored issues
–
show
The parameter
$offset is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 35 | { |
||||
| 36 | throw new BadMethodCallException("not implemented"); |
||||
| 37 | } |
||||
| 38 | /** |
||||
| 39 | * Unused part of the ArrayAccess interface |
||||
| 40 | * |
||||
| 41 | * @param $offset |
||||
| 42 | * @throws \BadMethodCallException |
||||
| 43 | */ |
||||
| 44 | public function offsetUnset($offset) |
||||
|
0 ignored issues
–
show
The parameter
$offset is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 45 | { |
||||
| 46 | throw new BadMethodCallException("not implemented"); |
||||
| 47 | } |
||||
| 48 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.