|
@@ -290,13 +290,13 @@ class PropertyPath implements \IteratorAggregate
|
|
|
|
|
|
if ($reflClass->hasMethod($getter)) {
|
|
|
if (!$reflClass->getMethod($getter)->isPublic()) {
|
|
|
- throw new PropertyAccessDeniedException(sprintf('Method "%s()" is not public in class "%s"', $getter, $reflClass->getName()));
|
|
|
+ throw new PropertyAccessDeniedException(sprintf('Method "%s()" is not public in class "%s"', $getter, $reflClass->name));
|
|
|
}
|
|
|
|
|
|
return $object->$getter();
|
|
|
} elseif ($reflClass->hasMethod($isser)) {
|
|
|
if (!$reflClass->getMethod($isser)->isPublic()) {
|
|
|
- throw new PropertyAccessDeniedException(sprintf('Method "%s()" is not public in class "%s"', $isser, $reflClass->getName()));
|
|
|
+ throw new PropertyAccessDeniedException(sprintf('Method "%s()" is not public in class "%s"', $isser, $reflClass->name));
|
|
|
}
|
|
|
|
|
|
return $object->$isser();
|
|
@@ -305,7 +305,7 @@ class PropertyPath implements \IteratorAggregate
|
|
|
return $object->$property;
|
|
|
} elseif ($reflClass->hasProperty($property)) {
|
|
|
if (!$reflClass->getProperty($property)->isPublic()) {
|
|
|
- throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "%s()" or "%s()"?', $property, $reflClass->getName(), $getter, $isser));
|
|
|
+ throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "%s()" or "%s()"?', $property, $reflClass->name, $getter, $isser));
|
|
|
}
|
|
|
|
|
|
return $object->$property;
|
|
@@ -313,7 +313,7 @@ class PropertyPath implements \IteratorAggregate
|
|
|
// needed to support \stdClass instances
|
|
|
return $object->$property;
|
|
|
} else {
|
|
|
- throw new InvalidPropertyException(sprintf('Neither property "%s" nor method "%s()" nor method "%s()" exists in class "%s"', $property, $getter, $isser, $reflClass->getName()));
|
|
|
+ throw new InvalidPropertyException(sprintf('Neither property "%s" nor method "%s()" nor method "%s()" exists in class "%s"', $property, $getter, $isser, $reflClass->name));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -341,7 +341,7 @@ class PropertyPath implements \IteratorAggregate
|
|
|
|
|
|
if ($reflClass->hasMethod($setter)) {
|
|
|
if (!$reflClass->getMethod($setter)->isPublic()) {
|
|
|
- throw new PropertyAccessDeniedException(sprintf('Method "%s()" is not public in class "%s"', $setter, $reflClass->getName()));
|
|
|
+ throw new PropertyAccessDeniedException(sprintf('Method "%s()" is not public in class "%s"', $setter, $reflClass->name));
|
|
|
}
|
|
|
|
|
|
$objectOrArray->$setter($value);
|
|
@@ -350,7 +350,7 @@ class PropertyPath implements \IteratorAggregate
|
|
|
$objectOrArray->$property = $value;
|
|
|
} elseif ($reflClass->hasProperty($property)) {
|
|
|
if (!$reflClass->getProperty($property)->isPublic()) {
|
|
|
- throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "%s()"?', $property, $reflClass->getName(), $setter));
|
|
|
+ throw new PropertyAccessDeniedException(sprintf('Property "%s" is not public in class "%s". Maybe you should create the method "%s()"?', $property, $reflClass->name, $setter));
|
|
|
}
|
|
|
|
|
|
$objectOrArray->$property = $value;
|
|
@@ -358,7 +358,7 @@ class PropertyPath implements \IteratorAggregate
|
|
|
// needed to support \stdClass instances
|
|
|
$objectOrArray->$property = $value;
|
|
|
} else {
|
|
|
- throw new InvalidPropertyException(sprintf('Neither element "%s" nor method "%s()" exists in class "%s"', $property, $setter, $reflClass->getName()));
|
|
|
+ throw new InvalidPropertyException(sprintf('Neither element "%s" nor method "%s()" exists in class "%s"', $property, $setter, $reflClass->name));
|
|
|
}
|
|
|
} else {
|
|
|
$objectOrArray[$property] = $value;
|