jclaveau /
php-deferred-callchain
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * ArrayAccessTrait |
||
| 4 | * |
||
| 5 | * @package php-deferred-callchain |
||
| 6 | * @author Jean Claveau |
||
| 7 | */ |
||
| 8 | namespace JClaveau\Async; |
||
| 9 | use BadMethodCallException; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Trait gathering unused array access required methods |
||
| 13 | */ |
||
| 14 | trait ArrayAccessTrait |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Unused part of the ArrayAccess interface |
||
| 18 | * |
||
| 19 | * @param $offset |
||
| 20 | * @param $value |
||
| 21 | * @throws \BadMethodCallException |
||
| 22 | */ |
||
| 23 | public function offsetSet(/** @scrutinizer ignore-unused */ $offset, $value) |
||
|
0 ignored issues
–
show
|
|||
| 24 | { |
||
| 25 | throw new BadMethodCallException( |
||
| 26 | "not implemented" |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Unused part of the ArrayAccess interface |
||
| 32 | * |
||
| 33 | * @param $offset |
||
| 34 | * @throws \BadMethodCallException |
||
| 35 | */ |
||
| 36 | public function offsetExists(/** @scrutinizer ignore-unused */ $offset) |
||
| 37 | { |
||
| 38 | throw new BadMethodCallException( |
||
| 39 | "not implemented" |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Unused part of the ArrayAccess interface |
||
| 45 | * |
||
| 46 | * @param $offset |
||
| 47 | * @throws \BadMethodCallException |
||
| 48 | */ |
||
| 49 | public function offsetUnset(/** @scrutinizer ignore-unused */ $offset) |
||
| 50 | { |
||
| 51 | throw new BadMethodCallException( |
||
| 52 | "not implemented" |
||
| 53 | ); |
||
| 54 | } |
||
| 55 | |||
| 56 | /**/ |
||
| 57 | } |
||
| 58 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.