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;
    }
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;
    }
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 ; }
Migrate classroom.

@param $srcClassroom
Migrate classroom .