public function depth()
    {
        $depth = substr_count($this->_name, '.');
        $depth += substr_count($this->_name, '\\');
        $depth += substr_count($this->_name, '/');

        return $depth;
    }