private function getFromMemory($type)
    {
        if (isset($this->loaded[$type])) {
            return $this->loaded[$type];
        }
        return null;
    }
private function getFromMemory($type)
    {
        if (isset($this->loaded[$type])) {
            return $this->loaded[$type];
        }
        return null;
    }
private function getFromMemory ( $ type ) { if ( isset ( $ this -> loaded [ $ type ] ) ) { return $ this -> loaded [ $ type ] ; } return null ; }
Gets a Metadata instance for a type from memory.

@return  EntityMetadata|null
Gets a Metadata instance for a type from memory .