@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * Add an object to this collection |
| 21 | 21 | * @param object $object The object you want to add |
| 22 | 22 | * |
| 23 | - * @return True when added with success, else false |
|
| 23 | + * @return boolean when added with success, else false |
|
| 24 | 24 | */ |
| 25 | 25 | public function add($object) |
| 26 | 26 | { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * AbstractTypedCollection constructor. |
| 21 | 21 | * |
| 22 | - * @param string|\Closure $type Two value are possible for this field. |
|
| 22 | + * @param \Closure $type Two value are possible for this field. |
|
| 23 | 23 | * 1. The class name of object you want to store in this collection |
| 24 | 24 | * 2. A function which take one arguments and return true when it in the good type (false otherwise) |
| 25 | 25 | * @param null|\Closure $equalsFct When you pass null, the object will use the function \Equatable::equals if exist, else use the === |