Example #1
0
 /**
  * @inheritdoc
  */
 public function getValue($objectOrArray, $propertyPath)
 {
     if (false === $objectOrArray instanceof \stdClass) {
         return $this->decoratedPropertyAccessor->getValue($objectOrArray, $propertyPath);
     }
     if (false === isset($objectOrArray->{$propertyPath})) {
         throw NoSuchPropertyExceptionFactory::createForUnreadablePropertyFromStdClass($propertyPath);
     }
     return $objectOrArray->{$propertyPath};
 }