Webiny\Component\Rest\Response\CallbackResult::getData PHP Method

getData() public method

Returns the data from the service response.
public getData ( ) : mixed
return mixed
    public function getData()
    {
        return $this->outputArray['data'];
    }

Usage Example

Exemplo n.º 1
0
 public function testGetSetData()
 {
     $obj = new \stdClass();
     $obj->title = 'Rock star';
     $cr = new CallbackResult();
     $cr->setData($obj);
     $this->assertSame('Rock star', $cr->getData()->title);
 }