code: public function getCollectionsAsArray()
      {
          $data = array();
  
          foreach ($this->getCollections() as $collection) {
              $data[] = array(
                  'type'  => $collection->getType(),
                  'class' => $collection->getClass(),
                  'sql'   => $collection->getQuery(),
                  'count' => $collection->getCount()
              );
          }
  
          return $data;
      }
docs: Returns information about loaded collections
  
  @return array