| 1 | <?php |
||
| 5 | abstract class CodeReview_Issues_Abstract implements ArrayAccess { |
||
|
|
|||
| 6 | |||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | protected $data = array(); |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param array $params |
||
| 14 | */ |
||
| 15 | 3 | public function __construct(array $params = array()) { |
|
| 18 | |||
| 19 | /** |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | 2 | public function toString() { |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | abstract protected function getExplanation(); |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 2 | public function __toString() { |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param mixed $offset |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | 3 | public function offsetExists($offset) { |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @param mixed $offset |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | 3 | public function offsetGet($offset) { |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @param mixed $offset |
||
| 56 | * @param mixed $value |
||
| 57 | */ |
||
| 58 | 1 | public function offsetSet($offset, $value) { |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @param mixed $offset |
||
| 64 | */ |
||
| 65 | 1 | public function offsetUnset($offset) { |
|
| 68 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.