Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
33.33% |
2 / 6 |
CRAP | |
15.38% |
2 / 13 |
| ReiceiverAbstract | |
0.00% |
0 / 1 |
|
33.33% |
2 / 6 |
58.07 | |
15.38% |
2 / 13 |
| get($varname = false) | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 3 |
|||
| offsetSet($offset, $value) | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 5 |
|||
| offsetExists($offset) | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| offsetUnset($offset) | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| offsetGet($offset) | |
100.00% |
1 / 1 |
2 | |
100.00% |
1 / 1 |
|||
| getRequestArray() | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| /** | |
| * | |
| */ | |
| namespace aae\dispatch\receiver { | |
| /** | |
| * @author Axel Ancona Esselmann | |
| * @package aae\dispatch\receiver | |
| */ | |
| abstract class ReiceiverAbstract implements ReceiverInterface { | |
| protected $_container = array(); | |
| /* ReceiverInterface implementation */ | |
| public function get($varname = false) { | |
| if ($varname) { | |
| return $this->_container[$varName]; | |
| } else { | |
| return $this->_container; | |
| } | |
| } | |
| /* arrayaccess interface implementation */ | |
| public function offsetSet($offset, $value) { | |
| if (is_null($offset)) { | |
| $this->_container[] = $value; | |
| } else { | |
| $this->_container[$offset] = $value; | |
| } | |
| } | |
| public function offsetExists($offset) { | |
| return isset($this->_container[$offset]); | |
| } | |
| public function offsetUnset($offset) { | |
| unset($this->_container[$offset]); | |
| } | |
| public function offsetGet($offset) { | |
| return isset($this->_container[$offset]) ? $this->_container[$offset] : null; | |
| } | |
| public function getRequestArray() { | |
| return $this->_container; | |
| } | |
| } | |
| } |