original_string: protected function migrateClassroom($srcClassroom) {
          $classroom = Classroom::firstOrNew([
              'name' => $srcClassroom->name,
          ]);
          $classroom->save();
          $this->addCourseToClassroom($classroom, $srcClassroom->course_id);
          $classroom->shortname = $srcClassroom->shortName;
          $classroom->description = $srcClassroom->description;
          $classroom->code = $srcClassroom->external_code;
      }
code: protected function migrateClassroom($srcClassroom) {
          $classroom = Classroom::firstOrNew([
              'name' => $srcClassroom->name,
          ]);
          $classroom->save();
          $this->addCourseToClassroom($classroom, $srcClassroom->course_id);
          $classroom->shortname = $srcClassroom->shortName;
          $classroom->description = $srcClassroom->description;
          $classroom->code = $srcClassroom->external_code;
      }
code_tokens: protected function migrateClassroom ( $ srcClassroom ) { $ classroom = Classroom :: firstOrNew ( [ 'name' => $ srcClassroom -> name , ] ) ; $ classroom -> save ( ) ; $ this -> addCourseToClassroom ( $ classroom , $ srcClassroom -> course_id ) ; $ classroom -> shortname = $ srcClassroom -> shortName ; $ classroom -> description = $ srcClassroom -> description ; $ classroom -> code = $ srcClassroom -> external_code ; }
docstring: Migrate classroom.
  
  @param $srcClassroom
docstring_tokens: Migrate classroom .