protected function getDocument($key)
    {
        if (!$this->documentExists($key)) {
            return null;
        }

        return $this->convertDocument($this->documents[$key]);
    }
protected function getDocument($key)
    {
        if (!$this->documentExists($key)) {
            return null;
        }

        return $this->convertDocument($this->documents[$key]);
    }
protected function getDocument ( $ key ) { if ( ! $ this -> documentExists ( $ key ) ) { return null ; } return $ this -> convertDocument ( $ this -> documents [ $ key ] ) ; }
Gets document array from the container.

@param mixed $key

@return mixed
Gets document array from the container .