@@ -96,9 +96,9 @@ public function setValue(&$objectOrArray, $propertyPath, $value)
96
96
/**
97
97
* Reads the path from an object up to a given path index.
98
98
*
99
- * @param object|array $objectOrArray The object or array to read from.
100
- * @param PropertyPathInterface $propertyPath The property path to read.
101
- * @param integer $lastIndex The integer up to which should be read.
99
+ * @param object|array $objectOrArray The object or array to read from
100
+ * @param PropertyPathInterface $propertyPath The property path to read
101
+ * @param integer $lastIndex The index up to which should be read
102
102
*
103
103
* @return array The values read in the path.
104
104
*
@@ -139,12 +139,12 @@ private function &readPropertiesUntil(&$objectOrArray, PropertyPathInterface $pr
139
139
/**
140
140
* Reads a key from an array-like structure.
141
141
*
142
- * @param \ArrayAccess|array $array The array or \ArrayAccess object to read from.
143
- * @param string|integer $index The key to read.
142
+ * @param \ArrayAccess|array $array The array or \ArrayAccess object to read from
143
+ * @param string|integer $index The key to read
144
144
*
145
145
* @return mixed The value of the key
146
146
*
147
- * @throws NoSuchPropertyException If the array does not implement \ArrayAccess or it is not an array.
147
+ * @throws NoSuchPropertyException If the array does not implement \ArrayAccess or it is not an array
148
148
*/
149
149
private function &readIndex (&$ array , $ index )
150
150
{
@@ -180,9 +180,9 @@ private function &readIndex(&$array, $index)
180
180
*
181
181
* @return mixed The value of the read property
182
182
*
183
- * @throws NoSuchPropertyException If the property does not exist.
183
+ * @throws NoSuchPropertyException If the property does not exist
184
184
* @throws PropertyAccessDeniedException If the property cannot be accessed due to
185
- * access restrictions (private or protected).
185
+ * access restrictions (private or protected)
186
186
*/
187
187
private function &readProperty (&$ object , $ property )
188
188
{
@@ -250,11 +250,11 @@ private function &readProperty(&$object, $property)
250
250
/**
251
251
* Sets the value of the property at the given index in the path
252
252
*
253
- * @param \ArrayAccess|array $array An array or \ArrayAccess object to write to.
254
- * @param string|integer $index The index to write at.
255
- * @param mixed $value The value to write.
253
+ * @param \ArrayAccess|array $array An array or \ArrayAccess object to write to
254
+ * @param string|integer $index The index to write at
255
+ * @param mixed $value The value to write
256
256
*
257
- * @throws NoSuchPropertyException If the array does not implement \ArrayAccess or it is not an array.
257
+ * @throws NoSuchPropertyException If the array does not implement \ArrayAccess or it is not an array
258
258
*/
259
259
private function writeIndex (&$ array , $ index , $ value )
260
260
{
@@ -268,14 +268,14 @@ private function writeIndex(&$array, $index, $value)
268
268
/**
269
269
* Sets the value of the property at the given index in the path
270
270
*
271
- * @param object|array $object The object or array to write to.
272
- * @param string $property The property to write.
273
- * @param string|null $singular The singular form of the property name or null.
274
- * @param mixed $value The value to write.
271
+ * @param object|array $object The object or array to write to
272
+ * @param string $property The property to write
273
+ * @param string|null $singular The singular form of the property name or null
274
+ * @param mixed $value The value to write
275
275
*
276
- * @throws NoSuchPropertyException If the property does not exist.
276
+ * @throws NoSuchPropertyException If the property does not exist
277
277
* @throws PropertyAccessDeniedException If the property cannot be accessed due to
278
- * access restrictions (private or protected).
278
+ * access restrictions (private or protected)
279
279
*/
280
280
private function writeProperty (&$ object , $ property , $ singular , $ value )
281
281
{
@@ -368,9 +368,9 @@ private function writeProperty(&$object, $property, $singular, $value)
368
368
/**
369
369
* Camelizes a given string.
370
370
*
371
- * @param string $string Some string.
371
+ * @param string $string Some string
372
372
*
373
- * @return string The camelized version of the string.
373
+ * @return string The camelized version of the string
374
374
*/
375
375
private function camelize ($ string )
376
376
{
@@ -381,11 +381,11 @@ private function camelize($string)
381
381
* Searches for add and remove methods.
382
382
*
383
383
* @param \ReflectionClass $reflClass The reflection class for the given object
384
- * @param array $singulars The singular form of the property name or null.
384
+ * @param array $singulars The singular form of the property name or null
385
385
*
386
- * @return array|null An array containing the adder and remover when found, null otherwise.
386
+ * @return array|null An array containing the adder and remover when found, null otherwise
387
387
*
388
- * @throws NoSuchPropertyException If the property does not exist.
388
+ * @throws NoSuchPropertyException If the property does not exist
389
389
*/
390
390
private function findAdderAndRemover (\ReflectionClass $ reflClass , array $ singulars )
391
391
{
@@ -416,12 +416,12 @@ private function findAdderAndRemover(\ReflectionClass $reflClass, array $singula
416
416
/**
417
417
* Returns whether a method is public and has a specific number of required parameters.
418
418
*
419
- * @param \ReflectionClass $class The class of the method.
420
- * @param string $methodName The method name.
421
- * @param integer $parameters The number of parameters.
419
+ * @param \ReflectionClass $class The class of the method
420
+ * @param string $methodName The method name
421
+ * @param integer $parameters The number of parameters
422
422
*
423
423
* @return Boolean Whether the method is public and has $parameters
424
- * required parameters.
424
+ * required parameters
425
425
*/
426
426
private function isAccessible (\ReflectionClass $ class , $ methodName , $ parameters )
427
427
{
0 commit comments