MDL-41192 course: Can not write to the read-only properties of cm_info
MDL-41192 course: Properties of cm_info are read-only and calculated on request

Also added phpdocs