the class diagran using php