public function dump()
    {
        $dump = [];
        if ($this->hasClasses()) {
            foreach ($this->classes as $class) {
                $dump[$class->getName()] = $class->dump();
            }
        }
        return $dump;
    }