PHP Trait Tobscure\JsonApi\MetaTrait

Mostra file Open project: tobscure/json-api

Protected Properties

Property Type Description
$meta array The meta data array.

Public Methods

Method Description
addMeta ( string $key, string $value ) Add meta data.
getMeta ( ) : array Get the meta.
setMeta ( array $meta ) Set the meta data array.

Method Details

addMeta() public method

Add meta data.
public addMeta ( string $key, string $value )
$key string
$value string

getMeta() public method

Get the meta.
public getMeta ( ) : array
return array

setMeta() public method

Set the meta data array.
public setMeta ( array $meta )
$meta array

Property Details

$meta protected_oe property

The meta data array.
protected array $meta
return array