public function translate($identifier)
    {
        $pieces = explode('\\', $identifier);
        if (isset($this->aliases[$pieces[0]])) {
            $return = $this->aliases[$pieces[0]];
            if (count($pieces) > 1) {
                array_shift($pieces);
                $return .= '\\' . implode('\\', $pieces);
            }
        } else {
            $return = $this->namespace !== '' ? $this->namespace . '\\' . $identifier : $identifier;
        }
        return $return;
    }
public function translate($identifier)
    {
        $pieces = explode('\\', $identifier);
        if (isset($this->aliases[$pieces[0]])) {
            $return = $this->aliases[$pieces[0]];
            if (count($pieces) > 1) {
                array_shift($pieces);
                $return .= '\\' . implode('\\', $pieces);
            }
        } else {
            $return = $this->namespace !== '' ? $this->namespace . '\\' . $identifier : $identifier;
        }
        return $return;
    }
public function translate ( $ identifier ) { $ pieces = explode ( '\\' , $ identifier ) ; if ( isset ( $ this -> aliases [ $ pieces [ 0 ] ] ) ) { $ return = $ this -> aliases [ $ pieces [ 0 ] ] ; if ( count ( $ pieces ) > 1 ) { array_shift ( $ pieces ) ; $ return .= '\\' . implode ( '\\' , $ pieces ) ; } } else { $ return = $ this -> namespace !== '' ? $ this -> namespace . '\\' . $ identifier : $ identifier ; } return $ return ; }
Determines fully qualified class name

@param string $identifier
@return string
Determines fully qualified class name