diff options
Diffstat (limited to 'vendor/ruflin/elastica/lib/Elastica/Index/Stats.php')
-rw-r--r-- | vendor/ruflin/elastica/lib/Elastica/Index/Stats.php | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/vendor/ruflin/elastica/lib/Elastica/Index/Stats.php b/vendor/ruflin/elastica/lib/Elastica/Index/Stats.php index 9312e273..d86903dc 100644 --- a/vendor/ruflin/elastica/lib/Elastica/Index/Stats.php +++ b/vendor/ruflin/elastica/lib/Elastica/Index/Stats.php @@ -1,42 +1,41 @@ <?php - namespace Elastica\Index; + use Elastica\Index as BaseIndex; use Elastica\Request; /** - * Elastica index stats object + * Elastica index stats object. * - * @category Xodoa - * @package Elastica * @author Nicolas Ruflin <spam@ruflin.com> - * @link http://www.elasticsearch.org/guide/reference/api/admin-indices-stats.html + * + * @link http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html */ class Stats { /** - * Response + * Response. * * @var \Elastica\Response Response object */ protected $_response = null; /** - * Stats info + * Stats info. * * @var array Stats info */ protected $_data = array(); /** - * Index + * Index. * * @var \Elastica\Index Index object */ protected $_index = null; /** - * Construct + * Construct. * * @param \Elastica\Index $index Index object */ @@ -47,7 +46,7 @@ class Stats } /** - * Returns the raw stats info + * Returns the raw stats info. * * @return array Stats info */ @@ -70,7 +69,7 @@ class Stats if (isset($data[$arg])) { $data = $data[$arg]; } else { - return null; + return; } } @@ -78,7 +77,7 @@ class Stats } /** - * Returns the index object + * Returns the index object. * * @return \Elastica\Index Index object */ @@ -88,7 +87,7 @@ class Stats } /** - * Returns response object + * Returns response object. * * @return \Elastica\Response Response object */ @@ -98,7 +97,7 @@ class Stats } /** - * Reloads all status data of this object + * Reloads all status data of this object. */ public function refresh() { |