/** * Handle store student command. * * @param $studentInfo * @return int student id */ public function storeStudent($studentInfo) { $studentModel = new StudentModel(); return json_encode($studentModel->storeStudent($studentInfo['name'])); }