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