@@ -12,6 +12,9 @@ discard block |
||
12 | 12 | return $this[] = $value; |
13 | 13 | } |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $value |
|
17 | + */ |
|
15 | 18 | public function has($value) |
16 | 19 | { |
17 | 20 | foreach ($this->getIterator() as $v) { |
@@ -39,6 +42,10 @@ discard block |
||
39 | 42 | |
40 | 43 | return $this; |
41 | 44 | } |
45 | + |
|
46 | + /** |
|
47 | + * @param string $value |
|
48 | + */ |
|
42 | 49 | public function remove($value) |
43 | 50 | { |
44 | 51 | $array = $this->toArray(); |
@@ -52,6 +52,10 @@ discard block |
||
52 | 52 | { |
53 | 53 | return static::usesTrait($attribute, __TRAIT__); |
54 | 54 | } |
55 | + |
|
56 | + /** |
|
57 | + * @param string $trait |
|
58 | + */ |
|
55 | 59 | public static function usesTrait($attribute, $trait) |
56 | 60 | { |
57 | 61 | if (!is_object($attribute)) { |
@@ -69,7 +73,7 @@ discard block |
||
69 | 73 | * @param object $property the chosen parent property |
70 | 74 | * @param string $method the name of the method to call |
71 | 75 | * @param array $parameters the arguments to pass to the method |
72 | - * @param null $return weather to return the result or the parent object |
|
76 | + * @param boolean $return weather to return the result or the parent object |
|
73 | 77 | * |
74 | 78 | * @return mixed $result the result returned by the method or the $parent itself |
75 | 79 | */ |
@@ -106,7 +110,7 @@ discard block |
||
106 | 110 | * If the attribute implements the __invoke() magic method, then it may |
107 | 111 | * be called directly, ex: $parent->attr(); |
108 | 112 | * |
109 | - * @param object $parent the object instance that contains the attributes |
|
113 | + * @param \Tacone\Bees\Field\Field $parent the object instance that contains the attributes |
|
110 | 114 | * @param string $methodName the requested method (i.e.: removeAttr) |
111 | 115 | * @param array $parameters the arguments to pass to the method |
112 | 116 | * |
@@ -33,6 +33,9 @@ discard block |
||
33 | 33 | return $this->storage[$object->name()] = $object; |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $name |
|
38 | + */ |
|
36 | 39 | public function get($name) |
37 | 40 | { |
38 | 41 | return $this->storage[$name]; |
@@ -94,6 +97,9 @@ discard block |
||
94 | 97 | return !$validator->fails(); |
95 | 98 | } |
96 | 99 | |
100 | + /** |
|
101 | + * @param \Tacone\DataSource\AbstractDataSource $source |
|
102 | + */ |
|
97 | 103 | public function from($source) |
98 | 104 | { |
99 | 105 | foreach ($this as $name => $field) { |