public function getDocumentsFromDocumentPool(array $ids = null)
    {
        if (!$ids) {
            return $this->documentPool;
        }

        return array_intersect_key(
            $this->documentPool,
            array_flip(array_map('strval', $ids))
        );
    }
public function getDocumentsFromDocumentPool(array $ids = null)
    {
        if (!$ids) {
            return $this->documentPool;
        }

        return array_intersect_key(
            $this->documentPool,
            array_flip(array_map('strval', $ids))
        );
    }
public function getDocumentsFromDocumentPool ( array $ ids = null ) { if ( ! $ ids ) { return $ this -> documentPool ; } return array_intersect_key ( $ this -> documentPool , array_flip ( array_map ( 'strval' , $ ids ) ) ) ; }
Get documents from pool if they stored

@param array $ids
Get documents from pool if they stored