Constructs a metadata for the given class
string $class:
public function __construct($class) {
$this->name = $class;
// class name without namespace
if (false !== ($nsSep = strrpos($class, '\\'))) {
$this->defaultGroup = substr($class, $nsSep + 1);
}
else {
$this->defaultGroup = $class;
}
}