Commit f3492fb1 authored by Jeremy Mikola's avatar Jeremy Mikola

Reorder methods in CollectionInfo

parent 9918b971
......@@ -27,6 +27,17 @@ class CollectionInfo
$this->info = $info;
}
/**
* Return the collection info as an array.
*
* @see http://php.net/oop5.magic#language.oop5.magic.debuginfo
* @return array
*/
public function __debugInfo()
{
return $this->info;
}
/**
* Return the maximum number of documents to keep in the capped collection.
*
......@@ -76,15 +87,4 @@ class CollectionInfo
{
return ! empty($this->info['options']['capped']);
}
/**
* Return the collection info as an array.
*
* @see http://php.net/oop5.magic#language.oop5.magic.debuginfo
* @return array
*/
public function __debugInfo()
{
return $this->info;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment