function classData( ReflectionClass $class ) { $details = ""; $name = $class->getName(); if ( $class->isAbstract() ) { $details .= "$name is an abstract classn"; } if ( $class->isFinal() ) { $details .= "$name is a final classn"; } if ( $class->isInstantiable() ) { $details .= "$name can be instantiatedn"; } else { $details .= "$name can not be instantiatedn"; } return $details; }