public function __construct($data, $transformer, $resourceKey = null) { foreach ($data as $key => $value) { $data[$key] = $value; } parent::__construct($data, $transformer, $resourceKey); }
/** * Initialize with empty data. */ function __construct() { parent::__construct(array(), function () { }); }