@@ -38,13 +38,17 @@ public function __construct($name = 'messages')
3838     * Sets the data formater instance used by this collector 
3939     * 
4040     * @param DataFormatterInterface $formater 
41+      * @return $this 
4142     */ 
4243    public  function  setDataFormatter (DataFormatterInterface   $ formater )
4344    {
4445        $ this  ->dataFormater  = $ formater ;
4546        return  $ this  ;
4647    }
4748
49+     /** 
50+      * @return DataFormatterInterface 
51+      */ 
4852    public  function  getDataFormatter ()
4953    {
5054        if  ($ this  ->dataFormater  === null ) {
@@ -85,6 +89,9 @@ public function aggregate(MessagesAggregateInterface $messages)
8589        $ this  ->aggregates [] = $ messages ;
8690    }
8791
92+     /** 
93+      * @return array 
94+      */ 
8895    public  function  getMessages ()
8996    {
9097        $ messages  = $ this  ->messages ;
@@ -107,6 +114,11 @@ public function getMessages()
107114        return  $ messages ;
108115    }
109116
117+     /** 
118+      * @param $level 
119+      * @param $message 
120+      * @param array $context 
121+      */ 
110122    public  function  log ($ level , $ message , array  $ context  = array ())
111123    {
112124        $ this  ->addMessage ($ message , $ level );
@@ -120,6 +132,9 @@ public function clear()
120132        $ this  ->messages  = array ();
121133    }
122134
135+     /** 
136+      * @return array 
137+      */ 
123138    public  function  collect ()
124139    {
125140        $ messages  = $ this  ->getMessages ();
@@ -129,11 +144,17 @@ public function collect()
129144        );
130145    }
131146
147+     /** 
148+      * @return string 
149+      */ 
132150    public  function  getName ()
133151    {
134152        return  $ this  ->name ;
135153    }
136154
155+     /** 
156+      * @return array 
157+      */ 
137158    public  function  getWidgets ()
138159    {
139160        $ name  = $ this  ->getName ();
0 commit comments