Lines Matching refs:outputs

26         static $outputs = [];
28 if (!$outputs) {
29 $outputs['readonly'] = '{"id":123,"full_name":"Ruud Kamphuis"}';
30 $outputs['string'] = '"foo"';
31 $outputs['boolean_true'] = 'true';
32 $outputs['boolean_false'] = 'false';
33 $outputs['integer'] = '1';
34 $outputs['float'] = '4.533';
35 $outputs['float_trailing_zero'] = '1.0';
36 $outputs['simple_object'] = '{"foo":"foo","moo":"bar","camel_case":"boo"}';
37 …$outputs['circular_reference'] = '{"collection":[{"name":"child1"},{"name":"child2"}],"another_col…
38 $outputs['circular_reference_collection'] = '{"name":"foo","collection":[]}';
39 $outputs['array_strings'] = '["foo","bar"]';
40 $outputs['array_booleans'] = '[true,false]';
41 $outputs['array_integers'] = '[1,3,4]';
42 $outputs['array_empty'] = '{"array":[]}';
43 $outputs['array_floats'] = '[1.34,3.0,6.42]';
44 …$outputs['array_objects'] = '[{"foo":"foo","moo":"bar","camel_case":"boo"},{"foo":"baz","moo":"boo…
45 … $outputs['array_list_and_map_difference'] = '{"list":[1,2,3],"map":{"0":1,"2":2,"3":3}}';
46 …$outputs['array_mixed'] = '["foo",1,true,{"foo":"foo","moo":"bar","camel_case":"boo"},[1,3,true]]';
47 …$outputs['array_datetimes_object'] = '{"array_with_default_date_time":["2047-01-01T12:47:47+00:00"…
48 …$outputs['array_named_datetimes_object'] = '{"named_array_with_formatted_date":{"testdate1":"01.01…
49 …$outputs['array_datetimes_object'] = '{"array_with_default_date_time":["2047-01-01T12:47:47+00:00"…
50 …$outputs['array_named_datetimes_object'] = '{"named_array_with_formatted_date":{"testdate1":"01.01…
51 …$outputs['array_named_datetimeimmutables_object'] = '{"named_array_with_formatted_date":{"testdate…
52 …$outputs['blog_post'] = '{"id":"what_a_nice_id","title":"This is a nice title.","created_at":"2011…
53 …$outputs['blog_post_unauthored'] = '{"id":"what_a_nice_id","title":"This is a nice title.","create…
54 $outputs['price'] = '{"price":3.0}';
55 $outputs['currency_aware_price'] = '{"currency":"EUR","amount":2.34}';
56 $outputs['order'] = '{"cost":{"price":12.34}}';
57 … $outputs['order_with_currency_aware_price'] = '{"cost":{"currency":"EUR","amount":1.23}}';
58 …$outputs['log'] = '{"author_list":[{"full_name":"Johannes Schmitt"},{"full_name":"John Doe"}],"com…
59 $outputs['lifecycle_callbacks'] = '{"name":"Foo Bar"}';
60 $outputs['form_errors'] = '["This is the form error","Another error"]';
61 …$outputs['nested_form_errors'] = '{"errors":["This is the form error"],"children":{"bar":{"errors"…
62 … $outputs['constraint_violation'] = '{"property_path":"foo","message":"Message of violation"}';
63 …$outputs['constraint_violation_list'] = '[{"property_path":"foo","message":"Message of violation"}…
64 $outputs['article'] = '{"custom":"serialized"}';
65 $outputs['orm_proxy'] = '{"foo":"foo","moo":"bar","camel_case":"proxy-boo"}';
66 …$outputs['custom_accessor'] = '{"comments":{"Foo":{"comments":[{"author":{"full_name":"Foo"},"text…
67 $outputs['mixed_access_types'] = '{"id":1,"name":"Johannes","read_only_property":42}';
68 $outputs['accessor_order_child'] = '{"c":"c","d":"d","a":"a","b":"b"}';
69 $outputs['accessor_order_parent'] = '{"a":"a","b":"b"}';
70 $outputs['accessor_order_methods'] = '{"foo":"c","b":"b","a":"a"}';
71 $outputs['inline'] = '{"c":"c","a":"a","b":"b","d":"d"}';
72 $outputs['inline_child_empty'] = '{"c":"c","d":"d"}';
73 $outputs['empty_child'] = '{"c":"c","d":"d","child":{}}';
74 $outputs['empty_child_skip'] = '{"c":"c","d":"d"}';
75 $outputs['groups_all'] = '{"foo":"foo","foobar":"foobar","bar":"bar","none":"none"}';
76 $outputs['groups_foo'] = '{"foo":"foo","foobar":"foobar"}';
77 $outputs['groups_foobar'] = '{"foo":"foo","foobar":"foobar","bar":"bar"}';
78 $outputs['groups_default'] = '{"bar":"bar","none":"none"}';
79 …$outputs['groups_advanced'] = '{"name":"John","manager":{"name":"John Manager","friends":[{"nickna…
80 …$outputs['virtual_properties'] = '{"exist_field":"value","virtual_value":"value","test":"other-nam…
81 $outputs['virtual_properties_low'] = '{"classlow":1,"low":1}';
82 $outputs['virtual_properties_high'] = '{"classhigh":8,"high":8}';
83 $outputs['virtual_properties_all'] = '{"classlow":1,"classhigh":8,"low":1,"high":8}';
84 $outputs['nullable'] = '{"foo":"bar","baz":null,"0":null}';
85 $outputs['nullable_skip'] = '{"foo":"bar"}';
86 $outputs['person_secret_show'] = '{"name":"mike","gender":"f"}';
87 $outputs['person_secret_hide'] = '{"name":"mike"}';
88 $outputs['null'] = 'null';
89 …$outputs['simple_object_nullable'] = '{"foo":"foo","moo":"bar","camel_case":"boo","null_property":…
90 … $outputs['input'] = '{"attributes":{"type":"text","name":"firstname","value":"Adrien"}}';
91 $outputs['hash_empty'] = '{"hash":{}}';
92 $outputs['object_when_null'] = '{"text":"foo"}';
93 $outputs['object_when_null_and_serialized'] = '{"author":null,"text":"foo"}';
94 $outputs['date_time'] = '"2011-08-30T00:00:00+00:00"';
95 $outputs['date_time_immutable'] = '"2011-08-30T00:00:00+00:00"';
96 $outputs['timestamp'] = '{"timestamp":1455148800}';
97 $outputs['timestamp_prev'] = '{"timestamp":"1455148800"}';
98 $outputs['date_interval'] = '"PT45M"';
99 $outputs['car'] = '{"km":5,"type":"car"}';
100 $outputs['car_without_type'] = '{"km":5}';
101 $outputs['post'] = '{"type":"post","title":"Post Title"}';
102 $outputs['image_post'] = '{"type":"image_post","title":"Image Post Title"}';
103 $outputs['image_post_without_type'] = '{"title":"Image Post Title"}';
104 $outputs['garage'] = '{"vehicles":[{"km":3,"type":"car"},{"km":1,"type":"moped"}]}';
105 …$outputs['tree'] = '{"tree":{"children":[{"children":[{"children":[],"foo":"bar"}],"foo":"bar"}],"…
106 …$outputs['nullable_arrays'] = '{"empty_inline":[],"not_empty_inline":["not_empty_inline"],"empty_n…
107 … $outputs['object_with_object_property_no_array_to_author'] = '{"foo": "bar", "author": "baz"}';
108 … $outputs['object_with_object_property'] = '{"foo": "bar", "author": {"full_name": "baz"}}';
109 … $outputs['author_expression'] = '{"my_first_name":"Ruud","last_name":"Kamphuis","id":123}';
110 … $outputs['author_expression_context'] = '{"first_name":"Ruud","direction":1,"name":"name"}';
111 $outputs['maxdepth_skippabe_object'] = '{"a":{"xxx":"yyy"}}';
112 $outputs['array_objects_nullable'] = '[]';
113 $outputs['type_casting'] = '{"as_string":"8"}';
114 $outputs['authors_inline'] = '[{"full_name":"foo"},{"full_name":"bar"}]';
115 $outputs['inline_list_collection'] = '[1,2,3]';
116 $outputs['inline_empty_list_collection'] = '[]';
117 $outputs['inline_deserialization_list_collection'] = '[1,2]';
118 $outputs['inline_map'] = '{"0":"1","1":"2","2":"3"}';
119 $outputs['inline_empty_map'] = '{}';
120 $outputs['empty_object'] = '{}';
121 $outputs['inline_deserialization_map'] = '{"a":"b","c":"d","0":"5"}';
122 $outputs['iterator'] = '{"iterator":{"foo":"bar","bar":"foo"}}';
123 $outputs['generator'] = '{"generator":{"foo":"bar","bar":"foo"}}';
126 if (!isset($outputs[$key])) {
130 return $outputs[$key];