public function createType() { $type = new JsonArray(); foreach ($this->children as $value) { $type->add($value->createType()); } return $type; }
public function testMergeJsonArrayWithAJsonLiteralContainingAnObject() { $this->setExpectedException('\\InvalidArgumentException'); $object = new JsonArray(); $object->add('Foo')->add('Bar'); $object->merge('{"Foo": "Bar"}'); }