/** * Load data to collection. * * @param $data * @return static */ public function load($data) { foreach ($data as $row) { $this->put($row['id'], RequestEntity::createExisting($row)); } return $this; }