Paradox/toolbox/CollectionManager.php
public function getCollectionInfo($collection)
    {
        try {
            $collection = $this->_toolbox->getCollectionHandler()->getProperties($collection);

            $result = $collection->getAll();

            switch ($result['type']) {
                case 2:
                    $result['type'] = "documents";
                    break;

                case 3:
                    $result['type'] = "edges";
                    break;
            }

            return $result;

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
public function getCollectionInfo($collection)
    {
        try {
            $collection = $this->_toolbox->getCollectionHandler()->getProperties($collection);

            $result = $collection->getAll();

            switch ($result['type']) {
                case 2:
                    $result['type'] = "documents";
                    break;

                case 3:
                    $result['type'] = "edges";
                    break;
            }

            return $result;

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new CollectionManagerException($normalised['message'], $normalised['code']);
        }
    }
Get information about a collection.
@param  string                     $collection The name of the collection.
@throws CollectionManagerException
@return array