@@ -34,7 +34,7 @@ class Container
3434 /**
3535 * Constructor
3636 *
37- * @param object $parent Container
37+ * @param Container $parent Container
3838 */
3939 public function __construct (Container $ parent = null )
4040 {
@@ -55,11 +55,10 @@ public function createChild()
5555 /**
5656 * Method to bind a concrete class to an abstract class or interface.
5757 *
58- * @param string $abstract Class to bind.
59- * @param mixed $concrete Concrete definition to bind to $abstract.
60- * Can be a \Closure or a string.
58+ * @param string $abstract Class to bind.
59+ * @param \Closure|string $concrete Concrete definition to bind to $abstract.
6160 *
62- * @return mixed The concrete class for adding method calls / constructor arguments if desired.
61+ * @return Definition|\Closure The concrete class for adding method calls / constructor arguments if desired.
6362 */
6463 public function bind ($ abstract , $ concrete = null )
6564 {
@@ -82,6 +81,7 @@ public function bind($abstract, $concrete = null)
8281 * parent Container's until it finds the $binding.
8382 *
8483 * @param string $binding The binding to check.
84+ * @return bool
8585 */
8686 public function bound ($ binding )
8787 {
@@ -94,6 +94,7 @@ public function bound($binding)
9494 * @param string $concrete The name of the class to buld.
9595 *
9696 * @return mixed The instantiated class.
97+ * @throws \InvalidArgumentException
9798 */
9899 public function build ($ concrete )
99100 {
@@ -118,9 +119,10 @@ public function build($concrete)
118119 * Extend an existing binding.
119120 *
120121 * @param string $binding The name of the binding to extend.
121- * @param Closure $closure The function to use to extend the existing binding.
122+ * @param \ Closure $closure The function to use to extend the existing binding.
122123 *
123124 * @return void
125+ * @throws \InvalidArgumentException
124126 */
125127 public function extend ($ binding , \Closure $ closure )
126128 {
@@ -141,6 +143,7 @@ public function extend($binding, \Closure $closure)
141143 * @param \ReflectionMethod $method The method for which to obtain dependencies.
142144 *
143145 * @return array An array containing the method dependencies.
146+ * @throws \InvalidArgumentException
144147 */
145148 protected function getDependencies (\ReflectionMethod $ method )
146149 {
@@ -170,7 +173,7 @@ protected function getDependencies(\ReflectionMethod $method)
170173 *
171174 * @param string $binding The $binding key to get the raw value from.
172175 *
173- * @return mixed Value of the $binding.
176+ * @return Definition|\Closure Value of the $binding.
174177 */
175178 public function getRaw ($ binding )
176179 {
0 commit comments