From 6637b17abbce43cb91dd24a0eb6050a36eac3df8 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 25 Aug 2014 10:28:34 +0200 Subject: [PATCH] Start. --- Bench.php | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/Bench.php b/Bench.php index 3872403..50ce876 100644 --- a/Bench.php +++ b/Bench.php @@ -69,39 +69,32 @@ class Bench implements \Iterator, \Countable { /** - * Statistic : get the result. - * - * @const int + * @description 'Statistic : get the result.'; */ const STAT_RESULT = 0; /** - * Statistic : get the pourcent. - * - * @const int + * @description 'Statistic : get the pourcent.'; */ const STAT_POURCENT = 1; /** - * Collection of marks. - * - * @var \Hoa\Bench array + * @description 'Collection of marks.'; + * @invariant _mark :array([to \Hoa\Bench\Mark], 0..); */ protected static $_mark = array(); /** - * Collection of filters. - * - * @var \Hoa\Bench array + * @description 'Collection of filters.'; + * @invariant _filters: array([to \Hoa\Core\Consistency\Xcallable], 0..); */ protected $_filters = array(); /** - * Get a mark. - * If the mark does not exist, it will be automatically create. - * + * @description 'Get a mark. If the mark does not exist, it will be ' . + * 'automatically create.'; * @access public * @param string $id The mark ID. * @return \Hoa\Bench\Mark