serializer = SerializerBuilder::create()->build(); } public function createConfiguration() { return new Configuration(); } public function deserializeOperationResponse($response) { return $this->serializer->deserialize( $response, OperationResponse::class, 'json', DeserializationContext::create()->setGroups(['post']) ); } public function deserializeCheckStatusResponse($response) { return $this->serializer->deserialize( $response, OperationResponse::class, 'json', DeserializationContext::create()->setGroups(['get']) ); } public function serializeOperationRequest($request) { return $this->serializer->serialize( $request, 'json', SerializationContext::create()->setGroups(['set']) ); } /** * @param $client * @param Connection $connection * @return AtolOnlineApi */ public function createApi(Client $client, Connection $connection) { if (!$this->api) { $this->api = new AtolOnlineApi($client, $connection); } return $this->api; } /** * @return AtolOnlineApi */ public function getApi() { return $this->api; } }