| @@ -44,6 +44,9 @@ discard block | ||
| 44 | 44 | private $nullWasVisited; | 
| 45 | 45 | private $objectMetadataStack; | 
| 46 | 46 | |
| 47 | + /** | |
| 48 | + * @param Naming\PropertyNamingStrategyInterface $namingStrategy | |
| 49 | + */ | |
| 47 | 50 | public function __construct($namingStrategy) | 
| 48 | 51 |      { | 
| 49 | 52 | parent::__construct($namingStrategy); | 
| @@ -437,6 +440,9 @@ discard block | ||
| 437 | 440 | } | 
| 438 | 441 | } | 
| 439 | 442 | |
| 443 | + /** | |
| 444 | + * @return \DOMNode | |
| 445 | + */ | |
| 440 | 446 | private function createElement($tagName, $namespace = null) | 
| 441 | 447 |      { | 
| 442 | 448 |          if (null !== $namespace) { | 
| @@ -456,6 +462,9 @@ discard block | ||
| 456 | 462 | } | 
| 457 | 463 | } | 
| 458 | 464 | |
| 465 | + /** | |
| 466 | + * @param string $value | |
| 467 | + */ | |
| 459 | 468 | private function setAttributeOnNode(\DOMElement $node, $name, $value, $namespace = null) | 
| 460 | 469 |      { | 
| 461 | 470 |          if (null !== $namespace) { | 
| @@ -226,7 +226,7 @@ | ||
| 226 | 226 |              throw new RuntimeException(sprintf('You must define a type for %s::$%s.', $metadata->reflection->class, $metadata->name)); | 
| 227 | 227 | } | 
| 228 | 228 | |
| 229 | -       if ($metadata->xmlAttribute) { | |
| 229 | +        if ($metadata->xmlAttribute) { | |
| 230 | 230 | |
| 231 | 231 | $attributes = $data->attributes($metadata->xmlNamespace); | 
| 232 | 232 |              if (isset($attributes[$name])) { |