@@ -167,7 +167,7 @@ |
||
| 167 | 167 | |
| 168 | 168 | //we need read_only before setter and getter set, because that method depends on flag being set |
| 169 | 169 | if (isset($pConfig['read_only'])) { |
| 170 | - $pMetadata->readOnly = (Boolean) $pConfig['read_only']; |
|
| 170 | + $pMetadata->readOnly = (Boolean) $pConfig['read_only']; |
|
| 171 | 171 | } else { |
| 172 | 172 | $pMetadata->readOnly = $pMetadata->readOnly || $readOnlyClass; |
| 173 | 173 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |(.) |
| 50 | 50 | /x', |
| 51 | 51 | array(self::T_NAME => 'T_NAME', self::T_STRING => 'T_STRING', self::T_OPEN_BRACKET => 'T_OPEN_BRACKET', |
| 52 | - self::T_CLOSE_BRACKET => 'T_CLOSE_BRACKET', self::T_COMMA => 'T_COMMA', self::T_NONE => 'T_NONE'), |
|
| 52 | + self::T_CLOSE_BRACKET => 'T_CLOSE_BRACKET', self::T_COMMA => 'T_COMMA', self::T_NONE => 'T_NONE'), |
|
| 53 | 53 | function($value) { |
| 54 | 54 | switch ($value[0]) { |
| 55 | 55 | case '"': |
@@ -168,8 +168,8 @@ |
||
| 168 | 168 | |
| 169 | 169 | if ( ! $metadata->inline) { |
| 170 | 170 | $this->writer |
| 171 | - ->writeln(Inline::dump($name).':') |
|
| 172 | - ->indent(); |
|
| 171 | + ->writeln(Inline::dump($name).':') |
|
| 172 | + ->indent(); |
|
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | $this->setCurrentMetadata($metadata); |
@@ -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])) { |
@@ -346,7 +346,6 @@ |
||
| 346 | 346 | /** |
| 347 | 347 | * Retrieves internalSubset even in bugfixed php versions |
| 348 | 348 | * |
| 349 | - * @param \DOMDocumentType $child |
|
| 350 | 349 | * @param string $data |
| 351 | 350 | * @return string |
| 352 | 351 | */ |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * @param \PhpCollection\MapInterface $deserializationVisitors of VisitorInterface |
| 73 | 73 | * @param EventDispatcher\EventDispatcherInterface $dispatcher |
| 74 | 74 | * @param TypeParser $typeParser |
| 75 | - * @param ExpressionEvaluatorInterface $expressionLanguage |
|
| 75 | + * @param ExpressionEvaluatorInterface $expressionEvaluator |
|
| 76 | 76 | */ |
| 77 | 77 | public function __construct( |
| 78 | 78 | MetadataFactoryInterface $factory, |
@@ -179,6 +179,9 @@ discard block |
||
| 179 | 179 | ; |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | + /** |
|
| 183 | + * @param string $format |
|
| 184 | + */ |
|
| 182 | 185 | private function visit(VisitorInterface $visitor, Context $context, $data, $format, array $type = null) |
| 183 | 186 | { |
| 184 | 187 | $context->initialize( |
@@ -47,6 +47,9 @@ discard block |
||
| 47 | 47 | /** @var boolean */ |
| 48 | 48 | private $formatOutput; |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param Naming\PropertyNamingStrategyInterface $namingStrategy |
|
| 52 | + */ |
|
| 50 | 53 | public function __construct($namingStrategy) |
| 51 | 54 | { |
| 52 | 55 | parent::__construct($namingStrategy); |
@@ -130,6 +133,9 @@ discard block |
||
| 130 | 133 | return $doCData ? $this->document->createCDATASection($data) : $this->document->createTextNode((string) $data); |
| 131 | 134 | } |
| 132 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $data |
|
| 138 | + */ |
|
| 133 | 139 | public function visitSimpleString($data, array $type, Context $context) |
| 134 | 140 | { |
| 135 | 141 | if (null === $this->document) { |
@@ -452,6 +458,9 @@ discard block |
||
| 452 | 458 | } |
| 453 | 459 | } |
| 454 | 460 | |
| 461 | + /** |
|
| 462 | + * @return \DOMNode |
|
| 463 | + */ |
|
| 455 | 464 | private function createElement($tagName, $namespace = null) |
| 456 | 465 | { |
| 457 | 466 | if (null === $namespace) { |
@@ -467,6 +476,9 @@ discard block |
||
| 467 | 476 | return $this->document->createElement($prefix . ':' . $tagName); |
| 468 | 477 | } |
| 469 | 478 | |
| 479 | + /** |
|
| 480 | + * @param string $value |
|
| 481 | + */ |
|
| 470 | 482 | private function setAttributeOnNode(\DOMElement $node, $name, $value, $namespace = null) |
| 471 | 483 | { |
| 472 | 484 | if (null !== $namespace) { |