@@ -162,6 +162,9 @@ |
||
| 162 | 162 | ; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | + /** |
|
| 166 | + * @param string $format |
|
| 167 | + */ |
|
| 165 | 168 | private function visit(VisitorInterface $visitor, Context $context, $data, $format, array $type = null) |
| 166 | 169 | { |
| 167 | 170 | $context->initialize( |
@@ -23,17 +23,11 @@ |
||
| 23 | 23 | use JMS\Serializer\Handler\PhpCollectionHandler; |
| 24 | 24 | use JMS\Serializer\Handler\PropelCollectionHandler; |
| 25 | 25 | use JMS\Serializer\Exception\RuntimeException; |
| 26 | -use Metadata\Driver\DriverInterface; |
|
| 27 | 26 | use Metadata\MetadataFactory; |
| 28 | -use JMS\Serializer\Metadata\Driver\AnnotationDriver; |
|
| 29 | 27 | use JMS\Serializer\Handler\HandlerRegistry; |
| 30 | 28 | use JMS\Serializer\Construction\UnserializeObjectConstructor; |
| 31 | 29 | use PhpCollection\Map; |
| 32 | 30 | use JMS\Serializer\EventDispatcher\EventDispatcher; |
| 33 | -use Metadata\Driver\DriverChain; |
|
| 34 | -use JMS\Serializer\Metadata\Driver\YamlDriver; |
|
| 35 | -use JMS\Serializer\Metadata\Driver\XmlDriver; |
|
| 36 | -use Metadata\Driver\FileLocator; |
|
| 37 | 31 | use JMS\Serializer\Handler\DateHandler; |
| 38 | 32 | use JMS\Serializer\Handler\ArrayCollectionHandler; |
| 39 | 33 | use JMS\Serializer\Construction\ObjectConstructorInterface; |
@@ -32,6 +32,9 @@ discard block |
||
| 32 | 32 | private $dataStack; |
| 33 | 33 | private $data; |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param Naming\PropertyNamingStrategyInterface $namingStrategy |
|
| 37 | + */ |
|
| 35 | 38 | public function __construct($namingStrategy) |
| 36 | 39 | { |
| 37 | 40 | parent::__construct($namingStrategy); |
@@ -194,7 +197,6 @@ discard block |
||
| 194 | 197 | /** |
| 195 | 198 | * Allows you to remove data from the current object based on name. |
| 196 | 199 | * |
| 197 | - * @param string $key |
|
| 198 | 200 | * @throws Exception\InvalidArgumentException |
| 199 | 201 | */ |
| 200 | 202 | public function removeDataPropertyName($propertyName) |
@@ -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 | */ |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | |
| 19 | 19 | namespace JMS\Serializer; |
| 20 | 20 | |
| 21 | -use JMS\Serializer\Exception\LogicException; |
|
| 22 | 21 | use JMS\Serializer\Exception\RuntimeException; |
| 23 | 22 | use Metadata\MetadataFactoryInterface; |
| 24 | 23 | |
@@ -48,12 +48,18 @@ discard block |
||
| 48 | 48 | private $nullWasVisited; |
| 49 | 49 | private $objectMetadataStack; |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param Naming\PropertyNamingStrategyInterface $namingStrategy |
|
| 53 | + */ |
|
| 51 | 54 | public function __construct($namingStrategy) |
| 52 | 55 | { |
| 53 | 56 | parent::__construct($namingStrategy); |
| 54 | 57 | $this->objectMetadataStack = new \SplStack; |
| 55 | 58 | } |
| 56 | 59 | |
| 60 | + /** |
|
| 61 | + * @param Naming\PropertyNamingStrategyInterface $namingStrategy |
|
| 62 | + */ |
|
| 57 | 63 | public function __construct($namingStrategy) |
| 58 | 64 | { |
| 59 | 65 | parent::__construct($namingStrategy); |
@@ -151,6 +157,9 @@ discard block |
||
| 151 | 157 | return $doCData ? $this->document->createCDATASection($data) : $this->document->createTextNode((string) $data); |
| 152 | 158 | } |
| 153 | 159 | |
| 160 | + /** |
|
| 161 | + * @param string $data |
|
| 162 | + */ |
|
| 154 | 163 | public function visitSimpleString($data, array $type, Context $context) |
| 155 | 164 | { |
| 156 | 165 | if (null === $this->document) { |
@@ -468,6 +477,9 @@ discard block |
||
| 468 | 477 | } |
| 469 | 478 | } |
| 470 | 479 | |
| 480 | + /** |
|
| 481 | + * @return \DOMNode |
|
| 482 | + */ |
|
| 471 | 483 | private function createElement($tagName, $namespace = null) |
| 472 | 484 | { |
| 473 | 485 | if (null === $namespace) { |
@@ -483,6 +495,9 @@ discard block |
||
| 483 | 495 | return $this->document->createElement($prefix . ':' . $tagName); |
| 484 | 496 | } |
| 485 | 497 | |
| 498 | + /** |
|
| 499 | + * @param string $value |
|
| 500 | + */ |
|
| 486 | 501 | private function setAttributeOnNode(\DOMElement $node, $name, $value, $namespace = null) |
| 487 | 502 | { |
| 488 | 503 | if (null !== $namespace) { |