Home
last modified time | relevance | path

Searched refs:SerializationContext (Results 1 – 25 of 38) sorted by relevance

12

/plugin/findologicxmlexport/vendor/jms/serializer/tests/Serializer/
H A DJsonSerializationTest.php12 use JMS\Serializer\SerializationContext; alias
349 [[], '[]', SerializationContext::create()->setInitialType('array')],
350 [[], '[]', SerializationContext::create()->setInitialType('array<integer>')],
351 [[], '{}', SerializationContext::create()->setInitialType('array<string,integer>')],
353 [[1, 2], '[1,2]', SerializationContext::create()->setInitialType('array')],
354 … [[1 => 1, 2 => 2], '{"1":1,"2":2}', SerializationContext::create()->setInitialType('array')],
355 … [[1 => 1, 2 => 2], '[1,2]', SerializationContext::create()->setInitialType('array<integer>')],
356 … [['a', 'b'], '["a","b"]', SerializationContext::create()->setInitialType('array<string>')],
373 * @param SerializationContext|null $context
395 [[$c1], '[{}]', SerializationContext::create()->setInitialType('array<stdClass>')],
[all …]
H A DContextTest.php9 use JMS\Serializer\SerializationContext; alias
34 …->with($this->anything(), $this->callback(static function (SerializationContext $context) use ($se…
60 …->with($this->anything(), $this->callback(static function (SerializationContext $context) use ($se…
86 …$serializer->serialize($object, 'json', SerializationContext::create()->addExclusionStrategy($excl…
136 …$serializer->serialize($object, 'json', SerializationContext::create()->addExclusionStrategy($excl…
154 $context = SerializationContext::create();
163 $context = SerializationContext::create();
168 $context = SerializationContext::create();
177 $context = SerializationContext::create();
194 $context = SerializationContext::create();
[all …]
H A DXmlSerializationTest.php14 use JMS\Serializer\SerializationContext; alias
173 …$this->serialize(new ObjectWithVirtualXmlProperties(), SerializationContext::create()->setGroups([…
181 …$this->serialize(new ObjectWithVirtualXmlProperties(), SerializationContext::create()->setGroups([…
189 …$this->serialize(new ObjectWithVirtualXmlProperties(), SerializationContext::create()->setGroups([…
197 …$this->serialize(new ObjectWithVirtualXmlProperties(), SerializationContext::create()->setGroups([…
236 $this->serialize($object, SerializationContext::create())
263 $this->serialize($object, SerializationContext::create())
359 $this->serialize($object, SerializationContext::create())
H A DSerializationContextFactoryTest.php14 use JMS\Serializer\SerializationContext; alias
46 $context = new SerializationContext();
85 $context = new SerializationContext();
H A DBaseSerializationTest.php25 use JMS\Serializer\SerializationContext; alias
223 $context = SerializationContext::create()->setSerializeNull(false);
232 $context = SerializationContext::create()->setSerializeNull(true);
894 $context = SerializationContext::create()->setGroups(['Default']);
913 $context = SerializationContext::create()->setGroups(['Default']);
1165 SerializationContext::create()->setGroups([
1264 … $this->serialize(new Comment(null, 'foo'), SerializationContext::create()->setSerializeNull(true))
1273 $context = SerializationContext::create();
1419 $context = SerializationContext::create()
1441 $context = SerializationContext::create()->enableMaxDepthChecks();
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/doc/cookbook/
H A Darrays.rst27 …$serializer->serialize([1, 2], SerializationContext::create()->setInitialType('array')); // [1, 2]
28 …$serializer->serialize([1 => 2], SerializationContext::create()->setInitialType('array')); // {"1…
29 …$serializer->serialize(['a', 'b'], SerializationContext::create()->setInitialType('array')); // […
30 …$serializer->serialize(['c' => 'd'], SerializationContext::create()->setInitialType('array')); // …
33 …$serializer->serialize([], SerializationContext::create()->setInitialType('array<integer>')); // …
34 …$serializer->serialize([1, 2], SerializationContext::create()->setInitialType('array<integer>')); …
35 …$serializer->serialize(['a', 'b'], SerializationContext::create()->setInitialType('array<integer>'…
36 …$serializer->serialize(['c' => 'd'], SerializationContext::create()->setInitialType('array<string>…
39 …$serializer->serialize([], SerializationContext::create()->setInitialType('array<integer,integer>'…
40 …$serializer->serialize([1, 2], SerializationContext::create()->setInitialType('array<integer,integ…
[all …]
H A Dexclusion_strategies.rst78 use JMS\Serializer\SerializationContext;
80 …$serializer->serialize(new VersionObject(), 'json', SerializationContext::create()->setVersion(1));
117 use JMS\Serializer\SerializationContext;
119 …$serializer->serialize(new BlogPost(), 'json', SerializationContext::create()->setGroups(array('li…
123 …$serializer->serialize(new BlogPost(), 'json', SerializationContext::create()->setGroups(array('De…
179 use JMS\Serializer\SerializationContext;
181 $context = SerializationContext::create()->setGroups(array(
263 use JMS\Serializer\SerializationContext;
265 $serializer->serialize($data, 'json', SerializationContext::create()->enableMaxDepthChecks());
/plugin/findologicxmlexport/vendor/jms/serializer/src/ContextFactory/
H A DDefaultSerializationContextFactory.php7 use JMS\Serializer\SerializationContext; alias
17 public function createSerializationContext(): SerializationContext
19 return new SerializationContext();
H A DSerializationContextFactoryInterface.php7 use JMS\Serializer\SerializationContext; alias
14 public function createSerializationContext(): SerializationContext;
H A DCallableSerializationContextFactory.php7 use JMS\Serializer\SerializationContext; alias
18 public function createSerializationContext(): SerializationContext
/plugin/findologicxmlexport/vendor/jms/serializer/tests/Exclusion/
H A DDisjunctExclusionStrategyTest.php10 use JMS\Serializer\SerializationContext; alias
18 $context = SerializationContext::create();
39 $context = SerializationContext::create();
62 $context = SerializationContext::create();
85 $context = SerializationContext::create();
106 $context = SerializationContext::create();
129 $context = SerializationContext::create();
H A DGroupsExclusionStrategyTest.php9 use JMS\Serializer\SerializationContext; alias
27 …self::assertEquals($strat->shouldSkipProperty($metadata, SerializationContext::create()), $exclude…
H A DExpressionLanguageExclusionStrategyTest.php10 use JMS\Serializer\SerializationContext; alias
27 $this->context = $this->getMockBuilder(SerializationContext::class)->getMock();
/plugin/findologicxmlexport/vendor/jms/serializer/tests/Handler/
H A DArrayCollectionHandlerTest.php10 use JMS\Serializer\SerializationContext; alias
28 $context = $this->getMockBuilder(SerializationContext::class)->getMock();
46 $context = $this->getMockBuilder(SerializationContext::class)->getMock();
H A DArrayCollectionDepthTest.php11 use JMS\Serializer\SerializationContext; alias
33 $context = SerializationContext::create()
/plugin/findologicxmlexport/vendor/jms/serializer/src/Accessor/
H A DAccessorStrategyInterface.php9 use JMS\Serializer\SerializationContext; alias
19 …public function getValue(object $object, PropertyMetadata $metadata, SerializationContext $context…
/plugin/findologicxmlexport/vendor/jms/serializer/src/Twig/
H A DSerializerRuntimeHelper.php7 use JMS\Serializer\SerializationContext; alias
28 …public function serialize($object, string $type = 'json', ?SerializationContext $context = null): …
H A DSerializerExtension.php7 use JMS\Serializer\SerializationContext; alias
61 …public function serialize(object $object, string $type = 'json', ?SerializationContext $context = …
/plugin/findologicxmlexport/vendor/jms/serializer/src/Handler/
H A DDateHandler.php10 use JMS\Serializer\SerializationContext; alias
77 SerializationContext $context
96 …erializationVisitorInterface $visitor, \DateTime $date, array $type, SerializationContext $context)
110 SerializationContext $context
120 …lizationVisitorInterface $visitor, \DateInterval $date, array $type, SerializationContext $context)
H A DStdClassHandler.php9 use JMS\Serializer\SerializationContext; alias
40 …lizationVisitorInterface $visitor, \stdClass $stdClass, array $type, SerializationContext $context)
H A DArrayCollectionHandler.php11 use JMS\Serializer\SerializationContext; alias
66 …ationVisitorInterface $visitor, Collection $collection, array $type, SerializationContext $context)
H A DIteratorHandler.php9 use JMS\Serializer\SerializationContext; alias
66 SerializationContext $context
H A DConstraintViolationHandler.php9 use JMS\Serializer\SerializationContext; alias
54 …izationVisitor $visitor, ConstraintViolationList $list, array $type, SerializationContext $context)
/plugin/findologicxmlexport/vendor/jms/serializer/src/Exclusion/
H A DExpressionLanguageExclusionStrategy.php12 use JMS\Serializer\SerializationContext; alias
47 if ($navigatorContext instanceof SerializationContext) {
/plugin/findologicxmlexport/vendor/goetas-webservices/xsd2php-runtime/tests/
H A DXmlSchemaDateHandlerSerializationTest.php13 use JMS\Serializer\SerializationContext; alias
24 * @var SerializationContext
36 $this->context = SerializationContext::create();

12