Basho\Riak\Object::getData PHP Method

getData() public method

public getData ( )
    public function getData()
    {
        return $this->data;
    }

Usage Example

Beispiel #1
0
 public function testConstruct()
 {
     // simple new object
     $object = new Object();
     $this->assertEmpty($object->getData());
     // more complex object
     $data = new \StdClass();
     $data->woot = 'sauce';
     $object = new Object($data, ['Content-Type' => 'text/plain']);
     $this->assertEquals('sauce', $object->getData()->woot);
     $this->assertEquals('text/plain', $object->getContentType());
 }
All Usage Examples Of Basho\Riak\Object::getData