@@ -29,7 +29,6 @@ discard block |
||
29 | 29 | |
30 | 30 | /** |
31 | 31 | * @param object $object The object to access |
32 | - * @param ReflectionModel|null $reflect A reflection entity |
|
33 | 32 | */ |
34 | 33 | public function __construct($object) |
35 | 34 | { |
@@ -80,7 +79,7 @@ discard block |
||
80 | 79 | * Adds a value to a property, irrespective of access permissions |
81 | 80 | * |
82 | 81 | * @param string $key The property to write to |
83 | - * @param mixed $value The value to add |
|
82 | + * @param \Spaark\CompositeUtils\Model\Reflection\Reflector $value The value to add |
|
84 | 83 | * @throws CannotWritePropertyException In the event the property |
85 | 84 | * does not exist |
86 | 85 | */ |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | preg_match_all |
41 | 41 | ( |
42 | - '/^' |
|
42 | + '/^' |
|
43 | 43 | . '[ \t]*\*[ \t]*' |
44 | 44 | . '@([a-zA-Z]+)' |
45 | 45 | . '(.*)' |
@@ -27,7 +27,7 @@ |
||
27 | 27 | private function getScalar($value) |
28 | 28 | { |
29 | 29 | return |
30 | - (is_object($value) ? spl_object_hash($value) |
|
30 | + (is_object($value) ? spl_object_hash($value) |
|
31 | 31 | : (is_array($value) ? implode($value) |
32 | 32 | : ( (string)$value))); |
33 | 33 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | parent::__construct |
12 | 12 | ( |
13 | - 'Cannot ' . static::ACCESS_TYPE . ' non existent ' |
|
13 | + 'Cannot ' . static::ACCESS_TYPE . ' non existent ' |
|
14 | 14 | . 'property: ' . $class . '::$' . $property, |
15 | 15 | 0, |
16 | 16 | $previous |
@@ -27,7 +27,7 @@ |
||
27 | 27 | private function getScalar($value) |
28 | 28 | { |
29 | 29 | return |
30 | - (is_object($value) ? spl_object_hash($value) |
|
30 | + (is_object($value) ? spl_object_hash($value) |
|
31 | 31 | : (is_array($value) ? implode($value) |
32 | 32 | : ( (string)$value))); |
33 | 33 | } |