public function getRow($id = null) { $id = (int) $id; return isset($this->data[$id]) ? $this->data[$id] : []; }