$this->foo, 'bar' => $this->bar, 'baz' => $this->baz, 'qux' => $this->qux, ); } public function denormalize(NormalizerInterface $normalizer, $data, $format = null) { $this->foo = $data['foo']; $this->bar = $data['bar']; $this->baz = $data['baz']; $this->qux = $data['qux']; } }