Dingo\Api\Http\Response::getMeta PHP Method

getMeta() public method

Get the meta data for the response.
public getMeta ( ) : array
return array
    public function getMeta()
    {
        return $this->binding->getMeta();
    }

Usage Example

 public function testAddingAndSettingMetaCallsUnderlyingTransformerBinding()
 {
     $binding = new Binding(m::mock('Illuminate\\Container\\Container'), 'foo');
     $response = new Response('test', 200, [], $binding);
     $response->setMeta(['foo' => 'bar']);
     $response->meta('bing', 'bang');
     $this->assertEquals(['foo' => 'bar', 'bing' => 'bang'], $response->getMeta());
 }