app = $app; $this->databox = $databox; } /** * @param array $raw * @return databox_field */ public function create(array $raw) { return new databox_field($this->app, $this->databox, $raw); } /** * @param array $rows * @return databox_field[] */ public function createMany(array $rows) { $instances = []; foreach ($rows as $id => $raw) { $instances[$id] = new databox_field($this->app, $this->databox, $raw); } return $instances; } }