public function offsetGet($offset) { return isset($this->data[$offset]) ? $this->data[$offset] : null; }
/** * Test * * @return void */ public function testOffsetGet() { $this->object->setData('k', 'v'); $this->assertEquals('v', $this->object->offsetGet('k')); }