offsetGet() public method

Implementation of ArrayAccess::offsetGet()
public offsetGet ( string $offset ) : mixed
$offset string Offset
return mixed
示例#1
0
 /**
  * Test
  *
  * @return void
  */
 public function testOffsetGet()
 {
     $this->object->setData('k', 'v');
     $this->assertEquals('v', $this->object->offsetGet('k'));
 }