Skip to content

Commit f3492fb

Browse files
committed
Reorder methods in CollectionInfo
1 parent 9918b97 commit f3492fb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Model/CollectionInfo.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ public function __construct(array $info)
2727
$this->info = $info;
2828
}
2929

30+
/**
31+
* Return the collection info as an array.
32+
*
33+
* @see http://php.net/oop5.magic#language.oop5.magic.debuginfo
34+
* @return array
35+
*/
36+
public function __debugInfo()
37+
{
38+
return $this->info;
39+
}
40+
3041
/**
3142
* Return the maximum number of documents to keep in the capped collection.
3243
*
@@ -76,15 +87,4 @@ public function isCapped()
7687
{
7788
return ! empty($this->info['options']['capped']);
7889
}
79-
80-
/**
81-
* Return the collection info as an array.
82-
*
83-
* @see http://php.net/oop5.magic#language.oop5.magic.debuginfo
84-
* @return array
85-
*/
86-
public function __debugInfo()
87-
{
88-
return $this->info;
89-
}
9090
}

0 commit comments

Comments
 (0)