From e63046c36e6381e0825b7a0ef5e3bba6f247866d Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Sat, 7 Dec 2024 16:26:37 +0100 Subject: [PATCH 1/5] update the OpenAPI spec to its latest definition --- Resources/harvest-openapi.yaml | 35 ++++++------- generated/Client.php | 5 +- generated/Endpoint/CreateInvoiceMessage.php | 4 +- generated/Endpoint/UninvoicedReport.php | 5 +- generated/Model/InvoiceMessage.php | 6 +-- .../InvoicesInvoiceIdMessagesPostBody.php | 12 ++--- generated/Model/UsersUserIdPatchBody.php | 50 ------------------- ...cesInvoiceIdMessagesPostBodyNormalizer.php | 20 +++++--- .../UsersUserIdPatchBodyNormalizer.php | 48 ------------------ .../Normalizer/ValidationException.php | 2 +- 10 files changed, 48 insertions(+), 139 deletions(-) diff --git a/Resources/harvest-openapi.yaml b/Resources/harvest-openapi.yaml index 302d7d8..7f610e0 100644 --- a/Resources/harvest-openapi.yaml +++ b/Resources/harvest-openapi.yaml @@ -270,7 +270,7 @@ components: nullable: true event_type: type: string - description: 'The type of invoice event that occurred with the message: send, close, draft, re-open, or view.' + description: 'The type of invoice event that occurred with the message: close, draft, re-open, or send (marked the invoice as sent). If event_type was omitted in the request, a null value is returned, meaning the invoice was sent.' nullable: true reminder: type: boolean @@ -6975,19 +6975,19 @@ paths: schema: type: integer post: - summary: 'Create an invoice message or change invoice status' + summary: 'Create and send an invoice message' operationId: createInvoiceMessage - description: 'Creates a new invoice message object. Returns an invoice message object and a 201 Created response code if the call succeeded.' + description: "Creates a new invoice message object and sends it. Returns an invoice message object and a 201 Created response code if the call succeeded.\n\nA note about the optional event_type parameter: If event_type is omitted in a request, its default value of null means the message will be sent. In such a request, if the recipients array is omitted or empty and send_me_a_copy is also omitted or set to false, the request will fail because the message has no recipients. When omitting event_type to create and send a message, be sure to include a recipients array as a parameter or ensure the send_me_a_copy parameter is included and set to true." externalDocs: - description: 'Create an invoice message' - url: 'https://help.getharvest.com/api-v2/invoices-api/invoices/invoice-messages/#create-an-invoice-message' + description: 'Create and send an invoice message' + url: 'https://help.getharvest.com/api-v2/invoices-api/invoices/invoice-messages/#create-and-send-an-invoice-message' security: - BearerAuth: [] AccountAuth: [] responses: 201: - description: 'Create an invoice message or change invoice status' + description: 'Create and send an invoice message' content: application/json: schema: @@ -7039,11 +7039,11 @@ paths: properties: event_type: type: string - description: 'If provided, runs an event against the invoice. Options: close, draft, re-open, or send.' + description: 'Omit when intending to create and send a message. If omitted, the default value is null and the message will be sent. See other sections below for including this parameter with the following options: close, draft, re-open, or send (which marks a draft invoice as sent, it does not send the message).' nullable: true recipients: type: array - description: 'Array of recipient parameters. See below for details.' + description: 'Array of recipient parameters. See below for more details.' nullable: true items: type: object @@ -7082,8 +7082,6 @@ paths: type: boolean description: 'If set to true, a thank you message email will be sent. Defaults to false.' nullable: true - required: - - recipients '/invoices/{invoiceId}/messages/new': get: summary: 'Retrieve invoice message subject and body for specific invoice' @@ -9548,6 +9546,13 @@ paths: in: query schema: type: string + - + name: include_fixed_fee + description: 'Whether or not to include fixed-fee projects in the response. (Default: true)' + required: false + in: query + schema: + type: boolean - name: page description: 'The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1)' @@ -12135,16 +12140,6 @@ paths: description: 'The number of hours per week this person is available to work in seconds.' nullable: true format: int32 - default_hourly_rate: - type: number - description: 'The billable rate to use for this user when they are added to a project.' - nullable: true - format: float - cost_rate: - type: number - description: 'The cost rate to use for this user when calculating a project’s costs vs billable amount.' - nullable: true - format: float roles: type: array description: 'Descriptive names of the business roles assigned to this person. They can be used for filtering reports, and have no effect in their permissions in Harvest.' diff --git a/generated/Client.php b/generated/Client.php index edbdef2..3d2e517 100644 --- a/generated/Client.php +++ b/generated/Client.php @@ -679,7 +679,9 @@ public function listMessagesForInvoice(string $invoiceId, array $queryParameters } /** - * Creates a new invoice message object. Returns an invoice message object and a 201 Created response code if the call succeeded. + * Creates a new invoice message object and sends it. Returns an invoice message object and a 201 Created response code if the call succeeded. + * + * A note about the optional event_type parameter: If event_type is omitted in a request, its default value of null means the message will be sent. In such a request, if the recipients array is omitted or empty and send_me_a_copy is also omitted or set to false, the request will fail because the message has no recipients. When omitting event_type to create and send a message, be sure to include a recipients array as a parameter or ensure the send_me_a_copy parameter is included and set to true. * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1157,6 +1159,7 @@ public function teamTimeReport(array $queryParameters = [], string $fetch = self * * @var string $from only report on time entries and expenses with a spent_date on or after the given date * @var string $to only report on time entries and expenses with a spent_date on or before the given date + * @var bool $include_fixed_fee Whether or not to include fixed-fee projects in the response. (Default: true) * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) * } diff --git a/generated/Endpoint/CreateInvoiceMessage.php b/generated/Endpoint/CreateInvoiceMessage.php index 64c4d74..88133cc 100644 --- a/generated/Endpoint/CreateInvoiceMessage.php +++ b/generated/Endpoint/CreateInvoiceMessage.php @@ -17,7 +17,9 @@ class CreateInvoiceMessage extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndp protected $invoiceId; /** - * Creates a new invoice message object. Returns an invoice message object and a 201 Created response code if the call succeeded. + * Creates a new invoice message object and sends it. Returns an invoice message object and a 201 Created response code if the call succeeded. + * + * A note about the optional event_type parameter: If event_type is omitted in a request, its default value of null means the message will be sent. In such a request, if the recipients array is omitted or empty and send_me_a_copy is also omitted or set to false, the request will fail because the message has no recipients. When omitting event_type to create and send a message, be sure to include a recipients array as a parameter or ensure the send_me_a_copy parameter is included and set to true. */ public function __construct(string $invoiceId, \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody $requestBody) { diff --git a/generated/Endpoint/UninvoicedReport.php b/generated/Endpoint/UninvoicedReport.php index 4923355..189e8de 100644 --- a/generated/Endpoint/UninvoicedReport.php +++ b/generated/Endpoint/UninvoicedReport.php @@ -24,6 +24,7 @@ class UninvoicedReport extends \JoliCode\Harvest\Api\Runtime\Client\BaseEndpoint * * @var string $from only report on time entries and expenses with a spent_date on or after the given date * @var string $to only report on time entries and expenses with a spent_date on or before the given date + * @var bool $include_fixed_fee Whether or not to include fixed-fee projects in the response. (Default: true) * @var int $page The page number to use in pagination. For instance, if you make a list request and receive 2000 records, your subsequent call can include page=2 to retrieve the next page of the list. (Default: 1) * @var int $per_page The number of records to return per page. Can range between 1 and 2000. (Default: 2000) * } @@ -61,11 +62,13 @@ public function getAuthenticationScopes(): array protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver { $optionsResolver = parent::getQueryOptionsResolver(); - $optionsResolver->setDefined(['from', 'to', 'page', 'per_page']); + $optionsResolver->setDefined(['from', 'to', 'include_fixed_fee', 'page', 'per_page']); $optionsResolver->setRequired(['from', 'to']); $optionsResolver->setDefaults([]); $optionsResolver->addAllowedTypes('from', ['string']); $optionsResolver->addAllowedTypes('to', ['string']); + $optionsResolver->addAllowedTypes('include_fixed_fee', ['bool']); + $optionsResolver->setNormalizer('include_fixed_fee', \Closure::fromCallable([new \JoliCode\Harvest\BooleanCustomQueryResolver(), '__invoke'])); $optionsResolver->addAllowedTypes('page', ['int']); $optionsResolver->addAllowedTypes('per_page', ['int']); diff --git a/generated/Model/InvoiceMessage.php b/generated/Model/InvoiceMessage.php index 75f31aa..5c85c56 100644 --- a/generated/Model/InvoiceMessage.php +++ b/generated/Model/InvoiceMessage.php @@ -92,7 +92,7 @@ class InvoiceMessage extends \ArrayObject */ protected $thankYou; /** - * The type of invoice event that occurred with the message: send, close, draft, re-open, or view. + * The type of invoice event that occurred with the message: close, draft, re-open, or send (marked the invoice as sent). If event_type was omitted in the request, a null value is returned, meaning the invoice was sent. * * @var string|null */ @@ -364,7 +364,7 @@ public function setThankYou(?bool $thankYou): self } /** - * The type of invoice event that occurred with the message: send, close, draft, re-open, or view. + * The type of invoice event that occurred with the message: close, draft, re-open, or send (marked the invoice as sent). If event_type was omitted in the request, a null value is returned, meaning the invoice was sent. */ public function getEventType(): ?string { @@ -372,7 +372,7 @@ public function getEventType(): ?string } /** - * The type of invoice event that occurred with the message: send, close, draft, re-open, or view. + * The type of invoice event that occurred with the message: close, draft, re-open, or send (marked the invoice as sent). If event_type was omitted in the request, a null value is returned, meaning the invoice was sent. */ public function setEventType(?string $eventType): self { diff --git a/generated/Model/InvoicesInvoiceIdMessagesPostBody.php b/generated/Model/InvoicesInvoiceIdMessagesPostBody.php index 6211aab..9a6ee2e 100644 --- a/generated/Model/InvoicesInvoiceIdMessagesPostBody.php +++ b/generated/Model/InvoicesInvoiceIdMessagesPostBody.php @@ -18,13 +18,13 @@ class InvoicesInvoiceIdMessagesPostBody extends \ArrayObject */ protected $initialized = []; /** - * If provided, runs an event against the invoice. Options: close, draft, re-open, or send. + * Omit when intending to create and send a message. If omitted, the default value is null and the message will be sent. See other sections below for including this parameter with the following options: close, draft, re-open, or send (which marks a draft invoice as sent, it does not send the message). * * @var string|null */ protected $eventType; /** - * Array of recipient parameters. See below for details. + * Array of recipient parameters. See below for more details. * * @var list|null */ @@ -74,7 +74,7 @@ public function isInitialized($property): bool } /** - * If provided, runs an event against the invoice. Options: close, draft, re-open, or send. + * Omit when intending to create and send a message. If omitted, the default value is null and the message will be sent. See other sections below for including this parameter with the following options: close, draft, re-open, or send (which marks a draft invoice as sent, it does not send the message). */ public function getEventType(): ?string { @@ -82,7 +82,7 @@ public function getEventType(): ?string } /** - * If provided, runs an event against the invoice. Options: close, draft, re-open, or send. + * Omit when intending to create and send a message. If omitted, the default value is null and the message will be sent. See other sections below for including this parameter with the following options: close, draft, re-open, or send (which marks a draft invoice as sent, it does not send the message). */ public function setEventType(?string $eventType): self { @@ -93,7 +93,7 @@ public function setEventType(?string $eventType): self } /** - * Array of recipient parameters. See below for details. + * Array of recipient parameters. See below for more details. * * @return list|null */ @@ -103,7 +103,7 @@ public function getRecipients(): ?array } /** - * Array of recipient parameters. See below for details. + * Array of recipient parameters. See below for more details. * * @param list|null $recipients */ diff --git a/generated/Model/UsersUserIdPatchBody.php b/generated/Model/UsersUserIdPatchBody.php index fcbb70c..7b5e105 100644 --- a/generated/Model/UsersUserIdPatchBody.php +++ b/generated/Model/UsersUserIdPatchBody.php @@ -65,18 +65,6 @@ class UsersUserIdPatchBody extends \ArrayObject * @var int|null */ protected $weeklyCapacity; - /** - * The billable rate to use for this user when they are added to a project. - * - * @var float|null - */ - protected $defaultHourlyRate; - /** - * The cost rate to use for this user when calculating a project’s costs vs billable amount. - * - * @var float|null - */ - protected $costRate; /** * Descriptive names of the business roles assigned to this person. They can be used for filtering reports, and have no effect in their permissions in Harvest. * @@ -247,44 +235,6 @@ public function setWeeklyCapacity(?int $weeklyCapacity): self return $this; } - /** - * The billable rate to use for this user when they are added to a project. - */ - public function getDefaultHourlyRate(): ?float - { - return $this->defaultHourlyRate; - } - - /** - * The billable rate to use for this user when they are added to a project. - */ - public function setDefaultHourlyRate(?float $defaultHourlyRate): self - { - $this->initialized['defaultHourlyRate'] = true; - $this->defaultHourlyRate = $defaultHourlyRate; - - return $this; - } - - /** - * The cost rate to use for this user when calculating a project’s costs vs billable amount. - */ - public function getCostRate(): ?float - { - return $this->costRate; - } - - /** - * The cost rate to use for this user when calculating a project’s costs vs billable amount. - */ - public function setCostRate(?float $costRate): self - { - $this->initialized['costRate'] = true; - $this->costRate = $costRate; - - return $this; - } - /** * Descriptive names of the business roles assigned to this person. They can be used for filtering reports, and have no effect in their permissions in Harvest. * diff --git a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php index c4f886c..2ae9ecf 100644 --- a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php @@ -119,11 +119,13 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('eventType') && null !== $object->getEventType()) { $data['event_type'] = $object->getEventType(); } - $values = []; - foreach ($object->getRecipients() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + if ($object->isInitialized('recipients') && null !== $object->getRecipients()) { + $values = []; + foreach ($object->getRecipients() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['recipients'] = $values; } - $data['recipients'] = $values; if ($object->isInitialized('subject') && null !== $object->getSubject()) { $data['subject'] = $object->getSubject(); } @@ -261,11 +263,13 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('eventType') && null !== $object->getEventType()) { $data['event_type'] = $object->getEventType(); } - $values = []; - foreach ($object->getRecipients() as $value) { - $values[] = $this->normalizer->normalize($value, 'json', $context); + if ($object->isInitialized('recipients') && null !== $object->getRecipients()) { + $values = []; + foreach ($object->getRecipients() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['recipients'] = $values; } - $data['recipients'] = $values; if ($object->isInitialized('subject') && null !== $object->getSubject()) { $data['subject'] = $object->getSubject(); } diff --git a/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php b/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php index 49954f4..2845a4a 100644 --- a/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php +++ b/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php @@ -49,12 +49,6 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a return new Reference($data['$recursiveRef'], $context['document-origin']); } $object = new \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody(); - if (\array_key_exists('default_hourly_rate', $data) && \is_int($data['default_hourly_rate'])) { - $data['default_hourly_rate'] = (float) $data['default_hourly_rate']; - } - if (\array_key_exists('cost_rate', $data) && \is_int($data['cost_rate'])) { - $data['cost_rate'] = (float) $data['cost_rate']; - } if (null === $data || false === \is_array($data)) { return $object; } @@ -106,18 +100,6 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a } elseif (\array_key_exists('weekly_capacity', $data) && null === $data['weekly_capacity']) { $object->setWeeklyCapacity(null); } - if (\array_key_exists('default_hourly_rate', $data) && null !== $data['default_hourly_rate']) { - $object->setDefaultHourlyRate($data['default_hourly_rate']); - unset($data['default_hourly_rate']); - } elseif (\array_key_exists('default_hourly_rate', $data) && null === $data['default_hourly_rate']) { - $object->setDefaultHourlyRate(null); - } - if (\array_key_exists('cost_rate', $data) && null !== $data['cost_rate']) { - $object->setCostRate($data['cost_rate']); - unset($data['cost_rate']); - } elseif (\array_key_exists('cost_rate', $data) && null === $data['cost_rate']) { - $object->setCostRate(null); - } if (\array_key_exists('roles', $data) && null !== $data['roles']) { $values = []; foreach ($data['roles'] as $value) { @@ -174,12 +156,6 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('weeklyCapacity') && null !== $object->getWeeklyCapacity()) { $data['weekly_capacity'] = $object->getWeeklyCapacity(); } - if ($object->isInitialized('defaultHourlyRate') && null !== $object->getDefaultHourlyRate()) { - $data['default_hourly_rate'] = $object->getDefaultHourlyRate(); - } - if ($object->isInitialized('costRate') && null !== $object->getCostRate()) { - $data['cost_rate'] = $object->getCostRate(); - } if ($object->isInitialized('roles') && null !== $object->getRoles()) { $values = []; foreach ($object->getRoles() as $value) { @@ -238,12 +214,6 @@ public function denormalize($data, $type, $format = null, array $context = []) return new Reference($data['$recursiveRef'], $context['document-origin']); } $object = new \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody(); - if (\array_key_exists('default_hourly_rate', $data) && \is_int($data['default_hourly_rate'])) { - $data['default_hourly_rate'] = (float) $data['default_hourly_rate']; - } - if (\array_key_exists('cost_rate', $data) && \is_int($data['cost_rate'])) { - $data['cost_rate'] = (float) $data['cost_rate']; - } if (null === $data || false === \is_array($data)) { return $object; } @@ -295,18 +265,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } elseif (\array_key_exists('weekly_capacity', $data) && null === $data['weekly_capacity']) { $object->setWeeklyCapacity(null); } - if (\array_key_exists('default_hourly_rate', $data) && null !== $data['default_hourly_rate']) { - $object->setDefaultHourlyRate($data['default_hourly_rate']); - unset($data['default_hourly_rate']); - } elseif (\array_key_exists('default_hourly_rate', $data) && null === $data['default_hourly_rate']) { - $object->setDefaultHourlyRate(null); - } - if (\array_key_exists('cost_rate', $data) && null !== $data['cost_rate']) { - $object->setCostRate($data['cost_rate']); - unset($data['cost_rate']); - } elseif (\array_key_exists('cost_rate', $data) && null === $data['cost_rate']) { - $object->setCostRate(null); - } if (\array_key_exists('roles', $data) && null !== $data['roles']) { $values = []; foreach ($data['roles'] as $value) { @@ -368,12 +326,6 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('weeklyCapacity') && null !== $object->getWeeklyCapacity()) { $data['weekly_capacity'] = $object->getWeeklyCapacity(); } - if ($object->isInitialized('defaultHourlyRate') && null !== $object->getDefaultHourlyRate()) { - $data['default_hourly_rate'] = $object->getDefaultHourlyRate(); - } - if ($object->isInitialized('costRate') && null !== $object->getCostRate()) { - $data['cost_rate'] = $object->getCostRate(); - } if ($object->isInitialized('roles') && null !== $object->getRoles()) { $values = []; foreach ($object->getRoles() as $value) { diff --git a/generated/Runtime/Normalizer/ValidationException.php b/generated/Runtime/Normalizer/ValidationException.php index 766ba58..b37af09 100644 --- a/generated/Runtime/Normalizer/ValidationException.php +++ b/generated/Runtime/Normalizer/ValidationException.php @@ -21,7 +21,7 @@ class ValidationException extends \RuntimeException public function __construct(ConstraintViolationListInterface $violationList) { $this->violationList = $violationList; - parent::__construct(sprintf('Model validation failed with %d errors.', $violationList->count()), 400); + parent::__construct(\sprintf('Model validation failed with %d errors.', $violationList->count()), 400); } public function getViolationList(): ConstraintViolationListInterface From fe138122205dafa5cf78aa4bfd8a619c9400607b Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Sat, 7 Dec 2024 19:17:29 +0100 Subject: [PATCH 2/5] updated tooling --- .php-cs-fixer.php | 41 +++++++++++++++++--------------- castor.php | 8 +++---- composer.json | 12 +++++----- tools/php-cs-fixer/castor.php | 5 ++-- tools/php-cs-fixer/composer.json | 10 +++++++- 5 files changed, 44 insertions(+), 32 deletions(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 85935a5..d37b75f 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + $header = <<<'EOF' This file is part of JoliCode's Harvest PHP API project. @@ -9,35 +18,29 @@ file that was distributed with this source code. EOF; -$finder = (new PhpCsFixer\Finder()) +$finder = PhpCsFixer\Finder::create() + ->ignoreVCSIgnored(true) ->in(__DIR__) ->exclude('doc') + ->append([ + __FILE__, + ]) ; return (new PhpCsFixer\Config()) + ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) ->setRiskyAllowed(true) ->setRules([ + '@PhpCsFixer' => true, '@Symfony' => true, '@Symfony:risky' => true, - 'array_syntax' => ['syntax' => 'short'], - 'combine_consecutive_unsets' => true, - 'echo_tag_syntax' => ['format' => 'long'], + 'blank_line_before_statement' => true, // Symfony(PSR12) override the default value, but we don't want + 'concat_space' => ['spacing' => 'one'], 'header_comment' => ['header' => $header], - 'heredoc_to_nowdoc' => true, - 'no_extra_blank_lines' => ['tokens' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block']], - 'no_unreachable_default_argument_value' => true, - 'no_useless_else' => true, - 'no_useless_return' => true, - 'ordered_class_elements' => true, - 'ordered_imports' => true, - 'php_unit_construct' => true, - 'php_unit_strict' => true, - 'phpdoc_add_missing_param_annotation' => true, - 'phpdoc_order' => true, - 'semicolon_after_instruction' => true, - 'strict_comparison' => true, - 'strict_param' => true, + 'ordered_class_elements' => true, // Symfony(PSR12) override the default value, but we don't want + 'php_unit_internal_class' => false, // From @PhpCsFixer but we don't want it + 'php_unit_test_class_requires_covers' => false, // From @PhpCsFixer but we don't want it + 'phpdoc_add_missing_param_annotation' => false, // From @PhpCsFixer but we don't want it ]) - ->setUsingCache(true) ->setFinder($finder) ; diff --git a/castor.php b/castor.php index a52cea0..c92c143 100644 --- a/castor.php +++ b/castor.php @@ -15,11 +15,11 @@ use function Castor\exit_code; use function Castor\fs; +use function Castor\http_request; use function Castor\import; use function Castor\io; -use function Castor\request; -import(__DIR__.'/tools/php-cs-fixer/castor.php'); +import(__DIR__ . '/tools/php-cs-fixer/castor.php'); const SPEC_URL = 'https://raw.githubusercontent.com/jolicode/harvest-openapi-generator/master/generated/harvest-openapi.yaml'; @@ -34,10 +34,10 @@ function update(): int #[AsTask(description: 'Downloads the last specification from Github')] function update_specification(): void { - io()->comment(sprintf('Download the spec from %s', SPEC_URL)); + io()->comment(\sprintf('Download the spec from %s', SPEC_URL)); fs()->dumpFile( 'Resources/harvest-openapi.yaml', - request('GET', SPEC_URL)->getContent() + http_request('GET', SPEC_URL)->getContent() ); io()->success('Successfully updated the OpenAPI specification file.'); } diff --git a/composer.json b/composer.json index 2a1eb92..8043f02 100644 --- a/composer.json +++ b/composer.json @@ -24,19 +24,19 @@ "require": { "php": ">=8.1", "jane-php/open-api-runtime": "^7.6", - "php-http/client-implementation": "*", - "php-http/client-common": "^1.9 || ^2.0" + "php-http/client-common": "^1.9 || ^2.0", + "php-http/client-implementation": "*" }, "require-dev": { "jane-php/open-api-3": "^7.6", - "symfony/http-client": "^5.4 || ^6.0 || ^7.0", "nyholm/psr7": "^1.6", - "symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0", - "symfony/yaml": "^5.4 || ^6.0 || ^7.0" + "symfony/http-client": "^6.4 || ^7.0", + "symfony/phpunit-bridge": "^6.4 || ^7.0" }, "config": { "allow-plugins": { "php-http/discovery": true - } + }, + "sort-packages": true } } diff --git a/tools/php-cs-fixer/castor.php b/tools/php-cs-fixer/castor.php index 0be75fc..fff35f8 100644 --- a/tools/php-cs-fixer/castor.php +++ b/tools/php-cs-fixer/castor.php @@ -14,6 +14,7 @@ use Castor\Attribute\AsOption; use Castor\Attribute\AsTask; +use function Castor\context; use function Castor\run; #[AsTask(description: 'Fix CS', aliases: ['cs'])] @@ -21,13 +22,13 @@ function cs( #[AsOption(description: 'Only shows which files would have been modified.')] bool $dryRun, ): int { - $command = [__DIR__.'/vendor/bin/php-cs-fixer', 'fix', '--config', \dirname(__DIR__, 2).'/.php-cs-fixer.php']; + $command = [__DIR__ . '/vendor/bin/php-cs-fixer', 'fix', '--config', \dirname(__DIR__, 2) . '/.php-cs-fixer.php']; if ($dryRun) { $command[] = '--dry-run'; } - return run($command, allowFailure: true)->getExitCode(); + return run($command, context: context()->withAllowFailure())->getExitCode(); } #[AsTask(description: 'Update php-cs-fixer')] diff --git a/tools/php-cs-fixer/composer.json b/tools/php-cs-fixer/composer.json index 4588c00..70739c6 100644 --- a/tools/php-cs-fixer/composer.json +++ b/tools/php-cs-fixer/composer.json @@ -1,5 +1,13 @@ { + "type": "project", "require": { - "friendsofphp/php-cs-fixer": "^3.52.1" + "friendsofphp/php-cs-fixer": "^3.65.0" + }, + "config": { + "platform": { + "php": "8.1" + }, + "bump-after-update": true, + "sort-packages": true } } From f56f55b67415c77f55aed25a49db755892a21dc3 Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Sat, 7 Dec 2024 19:18:57 +0100 Subject: [PATCH 3/5] updated generated code + ran CS fix --- .../AccountAuthAuthentication.php | 4 +- .../BearerAuthAuthentication.php | 4 +- generated/Endpoint/ClientsExpensesReport.php | 4 +- generated/Endpoint/ClientsTimeReport.php | 4 +- generated/Endpoint/CreateBillableRate.php | 4 +- generated/Endpoint/CreateClient.php | 4 +- generated/Endpoint/CreateContact.php | 4 +- generated/Endpoint/CreateCostRate.php | 4 +- generated/Endpoint/CreateEstimate.php | 4 +- .../Endpoint/CreateEstimateItemCategory.php | 4 +- generated/Endpoint/CreateEstimateMessage.php | 4 +- generated/Endpoint/CreateExpense.php | 4 +- generated/Endpoint/CreateExpenseCategory.php | 4 +- generated/Endpoint/CreateInvoice.php | 4 +- .../Endpoint/CreateInvoiceItemCategory.php | 4 +- generated/Endpoint/CreateInvoiceMessage.php | 4 +- generated/Endpoint/CreateInvoicePayment.php | 4 +- generated/Endpoint/CreateProject.php | 4 +- generated/Endpoint/CreateRole.php | 4 +- generated/Endpoint/CreateTask.php | 4 +- generated/Endpoint/CreateTaskAssignment.php | 4 +- generated/Endpoint/CreateTimeEntry.php | 4 +- generated/Endpoint/CreateUser.php | 4 +- generated/Endpoint/CreateUserAssignment.php | 4 +- generated/Endpoint/DeleteClient.php | 2 +- generated/Endpoint/DeleteContact.php | 2 +- generated/Endpoint/DeleteEstimate.php | 2 +- .../Endpoint/DeleteEstimateItemCategory.php | 2 +- generated/Endpoint/DeleteEstimateMessage.php | 2 +- generated/Endpoint/DeleteExpense.php | 2 +- generated/Endpoint/DeleteExpenseCategory.php | 2 +- generated/Endpoint/DeleteInvoice.php | 2 +- .../Endpoint/DeleteInvoiceItemCategory.php | 2 +- generated/Endpoint/DeleteInvoiceMessage.php | 2 +- generated/Endpoint/DeleteInvoicePayment.php | 2 +- generated/Endpoint/DeleteProject.php | 2 +- generated/Endpoint/DeleteRole.php | 2 +- generated/Endpoint/DeleteTask.php | 2 +- generated/Endpoint/DeleteTaskAssignment.php | 2 +- generated/Endpoint/DeleteTimeEntry.php | 2 +- .../DeleteTimeEntryExternalReference.php | 2 +- generated/Endpoint/DeleteUser.php | 2 +- generated/Endpoint/DeleteUserAssignment.php | 2 +- .../Endpoint/ExpenseCategoriesReport.php | 4 +- .../Endpoint/ListActiveProjectAssignments.php | 4 +- ...nmentsForTheCurrentlyAuthenticatedUser.php | 4 +- .../ListAssignedTeammatesForSpecificUser.php | 4 +- .../ListBillableRatesForSpecificUser.php | 4 +- generated/Endpoint/ListClients.php | 4 +- generated/Endpoint/ListContacts.php | 4 +- .../Endpoint/ListCostRatesForSpecificUser.php | 4 +- .../Endpoint/ListEstimateItemCategories.php | 4 +- generated/Endpoint/ListEstimates.php | 4 +- generated/Endpoint/ListExpenseCategories.php | 4 +- generated/Endpoint/ListExpenses.php | 4 +- .../Endpoint/ListInvoiceItemCategories.php | 4 +- generated/Endpoint/ListInvoices.php | 4 +- .../Endpoint/ListMessagesForEstimate.php | 4 +- generated/Endpoint/ListMessagesForInvoice.php | 4 +- generated/Endpoint/ListPaymentsForInvoice.php | 4 +- generated/Endpoint/ListProjects.php | 4 +- generated/Endpoint/ListRoles.php | 4 +- generated/Endpoint/ListTaskAssignments.php | 4 +- .../ListTaskAssignmentsForSpecificProject.php | 4 +- generated/Endpoint/ListTasks.php | 4 +- generated/Endpoint/ListTimeEntries.php | 4 +- generated/Endpoint/ListUserAssignments.php | 4 +- .../ListUserAssignmentsForSpecificProject.php | 4 +- generated/Endpoint/ListUsers.php | 4 +- generated/Endpoint/ProjectBudgetReport.php | 4 +- generated/Endpoint/ProjectsExpensesReport.php | 4 +- generated/Endpoint/ProjectsTimeReport.php | 4 +- .../Endpoint/RestartStoppedTimeEntry.php | 4 +- generated/Endpoint/RetrieveBillableRate.php | 4 +- generated/Endpoint/RetrieveClient.php | 4 +- generated/Endpoint/RetrieveCompany.php | 4 +- generated/Endpoint/RetrieveContact.php | 4 +- generated/Endpoint/RetrieveCostRate.php | 4 +- generated/Endpoint/RetrieveEstimate.php | 4 +- .../Endpoint/RetrieveEstimateItemCategory.php | 4 +- generated/Endpoint/RetrieveExpense.php | 4 +- .../Endpoint/RetrieveExpenseCategory.php | 4 +- generated/Endpoint/RetrieveInvoice.php | 4 +- .../Endpoint/RetrieveInvoiceItemCategory.php | 4 +- ...essageSubjectAndBodyForSpecificInvoice.php | 4 +- generated/Endpoint/RetrieveProject.php | 4 +- generated/Endpoint/RetrieveRole.php | 4 +- generated/Endpoint/RetrieveTask.php | 4 +- generated/Endpoint/RetrieveTaskAssignment.php | 4 +- .../RetrieveTheCurrentlyAuthenticatedUser.php | 4 +- generated/Endpoint/RetrieveTimeEntry.php | 4 +- generated/Endpoint/RetrieveUser.php | 4 +- generated/Endpoint/RetrieveUserAssignment.php | 4 +- generated/Endpoint/StopRunningTimeEntry.php | 4 +- generated/Endpoint/TasksReport.php | 4 +- generated/Endpoint/TeamExpensesReport.php | 4 +- generated/Endpoint/TeamTimeReport.php | 4 +- generated/Endpoint/UninvoicedReport.php | 4 +- generated/Endpoint/UpdateClient.php | 4 +- generated/Endpoint/UpdateCompany.php | 4 +- generated/Endpoint/UpdateContact.php | 4 +- generated/Endpoint/UpdateEstimate.php | 4 +- .../Endpoint/UpdateEstimateItemCategory.php | 4 +- generated/Endpoint/UpdateExpense.php | 4 +- generated/Endpoint/UpdateExpenseCategory.php | 4 +- generated/Endpoint/UpdateInvoice.php | 4 +- .../Endpoint/UpdateInvoiceItemCategory.php | 4 +- generated/Endpoint/UpdateProject.php | 4 +- generated/Endpoint/UpdateRole.php | 4 +- generated/Endpoint/UpdateTask.php | 4 +- generated/Endpoint/UpdateTaskAssignment.php | 4 +- generated/Endpoint/UpdateTimeEntry.php | 4 +- generated/Endpoint/UpdateUser.php | 4 +- .../Endpoint/UpdateUserAssignedTeammates.php | 4 +- generated/Endpoint/UpdateUserAssignment.php | 4 +- .../Normalizer/BillableRateNormalizer.php | 33 +- .../Normalizer/BillableRatesNormalizer.php | 25 +- generated/Normalizer/ClientNormalizer.php | 33 +- .../ClientsClientIdPatchBodyNormalizer.php | 17 +- generated/Normalizer/ClientsNormalizer.php | 25 +- .../Normalizer/ClientsPostBodyNormalizer.php | 17 +- generated/Normalizer/CompaniesNormalizer.php | 25 +- generated/Normalizer/CompanyNormalizer.php | 17 +- .../Normalizer/CompanyPatchBodyNormalizer.php | 17 +- .../Normalizer/ContactClientNormalizer.php | 17 +- generated/Normalizer/ContactNormalizer.php | 37 +- .../ContactsContactIdPatchBodyNormalizer.php | 17 +- generated/Normalizer/ContactsNormalizer.php | 25 +- .../Normalizer/ContactsPostBodyNormalizer.php | 17 +- generated/Normalizer/CostRateNormalizer.php | 33 +- generated/Normalizer/CostRatesNormalizer.php | 25 +- generated/Normalizer/ErrorNormalizer.php | 17 +- .../Normalizer/EstimateClientNormalizer.php | 17 +- .../Normalizer/EstimateCreatorNormalizer.php | 17 +- ...imateItemCategoryIdPatchBodyNormalizer.php | 17 +- .../EstimateItemCategoriesNormalizer.php | 25 +- ...timateItemCategoriesPostBodyNormalizer.php | 17 +- .../EstimateItemCategoryNormalizer.php | 33 +- .../Normalizer/EstimateLineItemNormalizer.php | 17 +- .../EstimateLineItemsNormalizer.php | 25 +- .../Normalizer/EstimateMessageNormalizer.php | 37 +- .../EstimateMessageRecipientNormalizer.php | 17 +- .../EstimateMessageRecipientsNormalizer.php | 25 +- .../Normalizer/EstimateMessagesNormalizer.php | 25 +- generated/Normalizer/EstimateNormalizer.php | 69 +- ...esEstimateIdMessagesPostBodyNormalizer.php | 21 +- ...ssagesPostBodyRecipientsItemNormalizer.php | 17 +- ...mateIdPatchBodyLineItemsItemNormalizer.php | 17 +- ...EstimatesEstimateIdPatchBodyNormalizer.php | 21 +- generated/Normalizer/EstimatesNormalizer.php | 25 +- ...timatesPostBodyLineItemsItemNormalizer.php | 17 +- .../EstimatesPostBodyNormalizer.php | 21 +- ...esExpenseCategoryIdPatchBodyNormalizer.php | 17 +- .../ExpenseCategoriesNormalizer.php | 25 +- .../ExpenseCategoriesPostBodyNormalizer.php | 17 +- .../Normalizer/ExpenseCategoryNormalizer.php | 33 +- .../Normalizer/ExpenseClientNormalizer.php | 17 +- .../ExpenseExpenseCategoryNormalizer.php | 17 +- .../Normalizer/ExpenseInvoiceNormalizer.php | 17 +- generated/Normalizer/ExpenseNormalizer.php | 61 +- .../Normalizer/ExpenseProjectNormalizer.php | 17 +- .../Normalizer/ExpenseReceiptNormalizer.php | 17 +- .../ExpenseReportsResultNormalizer.php | 17 +- .../ExpenseReportsResultsNormalizer.php | 25 +- .../Normalizer/ExpenseUserNormalizer.php | 17 +- .../ExpensesExpenseIdPatchBodyNormalizer.php | 17 +- generated/Normalizer/ExpensesNormalizer.php | 25 +- .../Normalizer/ExpensesPostBodyNormalizer.php | 17 +- .../Normalizer/InvoiceClientNormalizer.php | 17 +- .../Normalizer/InvoiceCreatorNormalizer.php | 17 +- .../Normalizer/InvoiceEstimateNormalizer.php | 17 +- ...voiceItemCategoryIdPatchBodyNormalizer.php | 17 +- .../InvoiceItemCategoriesNormalizer.php | 25 +- ...nvoiceItemCategoriesPostBodyNormalizer.php | 17 +- .../InvoiceItemCategoryNormalizer.php | 33 +- .../Normalizer/InvoiceLineItemNormalizer.php | 21 +- .../InvoiceLineItemProjectNormalizer.php | 17 +- .../Normalizer/InvoiceLineItemsNormalizer.php | 25 +- .../Normalizer/InvoiceMessageNormalizer.php | 37 +- .../InvoiceMessageRecipientNormalizer.php | 17 +- .../InvoiceMessageRecipientsNormalizer.php | 25 +- ...InvoiceMessageSubjectAndBodyNormalizer.php | 17 +- .../Normalizer/InvoiceMessagesNormalizer.php | 25 +- generated/Normalizer/InvoiceNormalizer.php | 77 +- .../Normalizer/InvoicePaymentNormalizer.php | 45 +- ...InvoicePaymentPaymentGatewayNormalizer.php | 17 +- .../Normalizer/InvoicePaymentsNormalizer.php | 25 +- .../Normalizer/InvoiceRetainerNormalizer.php | 17 +- ...cesInvoiceIdMessagesPostBodyNormalizer.php | 21 +- ...ssagesPostBodyRecipientsItemNormalizer.php | 17 +- ...oiceIdPatchBodyLineItemsItemNormalizer.php | 17 +- .../InvoicesInvoiceIdPatchBodyNormalizer.php | 21 +- ...cesInvoiceIdPaymentsPostBodyNormalizer.php | 25 +- generated/Normalizer/InvoicesNormalizer.php | 25 +- ...tBodyLineItemsImportExpensesNormalizer.php | 25 +- ...oicesPostBodyLineItemsImportNormalizer.php | 25 +- ...sPostBodyLineItemsImportTimeNormalizer.php | 25 +- ...nvoicesPostBodyLineItemsItemNormalizer.php | 17 +- .../Normalizer/InvoicesPostBodyNormalizer.php | 25 +- generated/Normalizer/JaneObjectNormalizer.php | 873 +++++++++++++++++- .../Normalizer/PaginationLinksNormalizer.php | 17 +- .../ProjectAssignmentClientNormalizer.php | 17 +- .../ProjectAssignmentNormalizer.php | 45 +- .../ProjectAssignmentProjectNormalizer.php | 17 +- .../ProjectAssignmentsNormalizer.php | 25 +- .../ProjectBudgetReportResultNormalizer.php | 17 +- .../ProjectBudgetReportResultsNormalizer.php | 25 +- .../Normalizer/ProjectClientNormalizer.php | 17 +- generated/Normalizer/ProjectNormalizer.php | 37 +- generated/Normalizer/ProjectsNormalizer.php | 25 +- .../Normalizer/ProjectsPostBodyNormalizer.php | 17 +- .../ProjectsProjectIdPatchBodyNormalizer.php | 17 +- ...ectIdTaskAssignmentsPostBodyNormalizer.php | 17 +- ...ntsTaskAssignmentIdPatchBodyNormalizer.php | 17 +- ...ectIdUserAssignmentsPostBodyNormalizer.php | 17 +- ...ntsUserAssignmentIdPatchBodyNormalizer.php | 17 +- generated/Normalizer/RoleNormalizer.php | 33 +- generated/Normalizer/RolesNormalizer.php | 25 +- .../Normalizer/RolesPostBodyNormalizer.php | 17 +- .../RolesRoleIdPatchBodyNormalizer.php | 17 +- .../Normalizer/TaskAssignmentNormalizer.php | 41 +- .../TaskAssignmentProjectNormalizer.php | 17 +- .../TaskAssignmentTaskNormalizer.php | 17 +- .../Normalizer/TaskAssignmentsNormalizer.php | 25 +- generated/Normalizer/TaskNormalizer.php | 33 +- generated/Normalizer/TasksNormalizer.php | 25 +- .../Normalizer/TasksPostBodyNormalizer.php | 17 +- .../TasksTaskIdPatchBodyNormalizer.php | 17 +- generated/Normalizer/TeammateNormalizer.php | 17 +- generated/Normalizer/TeammatesNormalizer.php | 25 +- .../TeammatesPatchResponseNormalizer.php | 21 +- .../Normalizer/TimeEntriesNormalizer.php | 25 +- ...iesPostBodyExternalReferenceNormalizer.php | 17 +- .../TimeEntriesPostBodyNormalizer.php | 21 +- ...IdPatchBodyExternalReferenceNormalizer.php | 17 +- ...eEntriesTimeEntryIdPatchBodyNormalizer.php | 21 +- .../Normalizer/TimeEntryClientNormalizer.php | 17 +- .../TimeEntryExternalReferenceNormalizer.php | 17 +- .../Normalizer/TimeEntryInvoiceNormalizer.php | 17 +- generated/Normalizer/TimeEntryNormalizer.php | 73 +- .../Normalizer/TimeEntryProjectNormalizer.php | 17 +- .../Normalizer/TimeEntryTaskNormalizer.php | 17 +- .../Normalizer/TimeEntryUserNormalizer.php | 17 +- .../TimeReportsResultNormalizer.php | 17 +- .../TimeReportsResultsNormalizer.php | 25 +- .../UninvoicedReportResultNormalizer.php | 17 +- .../UninvoicedReportResultsNormalizer.php | 25 +- .../Normalizer/UserAssignmentNormalizer.php | 41 +- .../UserAssignmentProjectNormalizer.php | 17 +- .../UserAssignmentUserNormalizer.php | 17 +- .../Normalizer/UserAssignmentsNormalizer.php | 25 +- generated/Normalizer/UserNormalizer.php | 33 +- generated/Normalizer/UsersNormalizer.php | 25 +- .../Normalizer/UsersPostBodyNormalizer.php | 17 +- ...sUserIdBillableRatesPostBodyNormalizer.php | 17 +- ...UsersUserIdCostRatesPostBodyNormalizer.php | 17 +- .../UsersUserIdPatchBodyNormalizer.php | 17 +- ...sersUserIdTeammatesPatchBodyNormalizer.php | 17 +- generated/Runtime/Client/BaseEndpoint.php | 2 +- generated/Runtime/Client/Client.php | 2 +- generated/Runtime/Client/Endpoint.php | 2 - src/ClientFactory.php | 2 +- tests/ModelTest.php | 10 +- 263 files changed, 2364 insertions(+), 2227 deletions(-) diff --git a/generated/Authentication/AccountAuthAuthentication.php b/generated/Authentication/AccountAuthAuthentication.php index d333fe0..9683b40 100644 --- a/generated/Authentication/AccountAuthAuthentication.php +++ b/generated/Authentication/AccountAuthAuthentication.php @@ -22,9 +22,7 @@ public function __construct(string $apiKey) public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { - $request = $request->withHeader('Harvest-Account-Id', $this->{'apiKey'}); - - return $request; + return $request->withHeader('Harvest-Account-Id', $this->{'apiKey'}); } public function getScope(): string diff --git a/generated/Authentication/BearerAuthAuthentication.php b/generated/Authentication/BearerAuthAuthentication.php index 152ec10..3e2a6ea 100644 --- a/generated/Authentication/BearerAuthAuthentication.php +++ b/generated/Authentication/BearerAuthAuthentication.php @@ -22,9 +22,7 @@ public function __construct(string $apiKey) public function authentication(\Psr\Http\Message\RequestInterface $request): \Psr\Http\Message\RequestInterface { - $request = $request->withHeader('Authorization', $this->{'apiKey'}); - - return $request; + return $request->withHeader('Authorization', $this->{'apiKey'}); } public function getScope(): string diff --git a/generated/Endpoint/ClientsExpensesReport.php b/generated/Endpoint/ClientsExpensesReport.php index 3840e1a..0c9b81d 100644 --- a/generated/Endpoint/ClientsExpensesReport.php +++ b/generated/Endpoint/ClientsExpensesReport.php @@ -76,10 +76,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ExpenseReportsResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ClientsTimeReport.php b/generated/Endpoint/ClientsTimeReport.php index a5b1144..878dc23 100644 --- a/generated/Endpoint/ClientsTimeReport.php +++ b/generated/Endpoint/ClientsTimeReport.php @@ -78,10 +78,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeReportsResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateBillableRate.php b/generated/Endpoint/CreateBillableRate.php index 216a6ef..4dd30a3 100644 --- a/generated/Endpoint/CreateBillableRate.php +++ b/generated/Endpoint/CreateBillableRate.php @@ -65,10 +65,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\BillableRate', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\BillableRate', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateClient.php b/generated/Endpoint/CreateClient.php index 61c37d2..9facb7a 100644 --- a/generated/Endpoint/CreateClient.php +++ b/generated/Endpoint/CreateClient.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Client', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Client', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateContact.php b/generated/Endpoint/CreateContact.php index e170b99..789f1b8 100644 --- a/generated/Endpoint/CreateContact.php +++ b/generated/Endpoint/CreateContact.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Contact', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Contact', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateCostRate.php b/generated/Endpoint/CreateCostRate.php index 49d50fe..82cfc92 100644 --- a/generated/Endpoint/CreateCostRate.php +++ b/generated/Endpoint/CreateCostRate.php @@ -65,10 +65,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\CostRate', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\CostRate', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateEstimate.php b/generated/Endpoint/CreateEstimate.php index b498d2b..234a22e 100644 --- a/generated/Endpoint/CreateEstimate.php +++ b/generated/Endpoint/CreateEstimate.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Estimate', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Estimate', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateEstimateItemCategory.php b/generated/Endpoint/CreateEstimateItemCategory.php index 38cd740..b8da3bf 100644 --- a/generated/Endpoint/CreateEstimateItemCategory.php +++ b/generated/Endpoint/CreateEstimateItemCategory.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\EstimateItemCategory', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateEstimateMessage.php b/generated/Endpoint/CreateEstimateMessage.php index a2490be..aaf62b0 100644 --- a/generated/Endpoint/CreateEstimateMessage.php +++ b/generated/Endpoint/CreateEstimateMessage.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\EstimateMessage', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateExpense.php b/generated/Endpoint/CreateExpense.php index b1681f5..1749ad3 100644 --- a/generated/Endpoint/CreateExpense.php +++ b/generated/Endpoint/CreateExpense.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Expense', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Expense', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateExpenseCategory.php b/generated/Endpoint/CreateExpenseCategory.php index feb15b0..8584e03 100644 --- a/generated/Endpoint/CreateExpenseCategory.php +++ b/generated/Endpoint/CreateExpenseCategory.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ExpenseCategory', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateInvoice.php b/generated/Endpoint/CreateInvoice.php index 003d42e..f2e4391 100644 --- a/generated/Endpoint/CreateInvoice.php +++ b/generated/Endpoint/CreateInvoice.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Invoice', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Invoice', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateInvoiceItemCategory.php b/generated/Endpoint/CreateInvoiceItemCategory.php index b66516d..47ed85a 100644 --- a/generated/Endpoint/CreateInvoiceItemCategory.php +++ b/generated/Endpoint/CreateInvoiceItemCategory.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\InvoiceItemCategory', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateInvoiceMessage.php b/generated/Endpoint/CreateInvoiceMessage.php index 88133cc..1fdac34 100644 --- a/generated/Endpoint/CreateInvoiceMessage.php +++ b/generated/Endpoint/CreateInvoiceMessage.php @@ -64,10 +64,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\InvoiceMessage', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateInvoicePayment.php b/generated/Endpoint/CreateInvoicePayment.php index c9aa101..2064c5e 100644 --- a/generated/Endpoint/CreateInvoicePayment.php +++ b/generated/Endpoint/CreateInvoicePayment.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\InvoicePayment', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateProject.php b/generated/Endpoint/CreateProject.php index 875fe68..8298db8 100644 --- a/generated/Endpoint/CreateProject.php +++ b/generated/Endpoint/CreateProject.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Project', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Project', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateRole.php b/generated/Endpoint/CreateRole.php index ae536fe..9e56b58 100644 --- a/generated/Endpoint/CreateRole.php +++ b/generated/Endpoint/CreateRole.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Role', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Role', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateTask.php b/generated/Endpoint/CreateTask.php index e5a53f2..7502b53 100644 --- a/generated/Endpoint/CreateTask.php +++ b/generated/Endpoint/CreateTask.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Task', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Task', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateTaskAssignment.php b/generated/Endpoint/CreateTaskAssignment.php index 0817733..9e0b1f8 100644 --- a/generated/Endpoint/CreateTaskAssignment.php +++ b/generated/Endpoint/CreateTaskAssignment.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TaskAssignment', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateTimeEntry.php b/generated/Endpoint/CreateTimeEntry.php index 80a833f..bc4dd0d 100644 --- a/generated/Endpoint/CreateTimeEntry.php +++ b/generated/Endpoint/CreateTimeEntry.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeEntry', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateUser.php b/generated/Endpoint/CreateUser.php index ee7ecae..c58ccdb 100644 --- a/generated/Endpoint/CreateUser.php +++ b/generated/Endpoint/CreateUser.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\User', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\User', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/CreateUserAssignment.php b/generated/Endpoint/CreateUserAssignment.php index 3e18b4b..84ac710 100644 --- a/generated/Endpoint/CreateUserAssignment.php +++ b/generated/Endpoint/CreateUserAssignment.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (201 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\UserAssignment', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteClient.php b/generated/Endpoint/DeleteClient.php index 5b412be..77d62fd 100644 --- a/generated/Endpoint/DeleteClient.php +++ b/generated/Endpoint/DeleteClient.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteContact.php b/generated/Endpoint/DeleteContact.php index 8cb3a08..ed4832e 100644 --- a/generated/Endpoint/DeleteContact.php +++ b/generated/Endpoint/DeleteContact.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteEstimate.php b/generated/Endpoint/DeleteEstimate.php index d2e6a59..fd8dd0d 100644 --- a/generated/Endpoint/DeleteEstimate.php +++ b/generated/Endpoint/DeleteEstimate.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteEstimateItemCategory.php b/generated/Endpoint/DeleteEstimateItemCategory.php index 29098f7..65aa1b6 100644 --- a/generated/Endpoint/DeleteEstimateItemCategory.php +++ b/generated/Endpoint/DeleteEstimateItemCategory.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteEstimateMessage.php b/generated/Endpoint/DeleteEstimateMessage.php index b8b4a40..02813bc 100644 --- a/generated/Endpoint/DeleteEstimateMessage.php +++ b/generated/Endpoint/DeleteEstimateMessage.php @@ -62,7 +62,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteExpense.php b/generated/Endpoint/DeleteExpense.php index 110b234..b103863 100644 --- a/generated/Endpoint/DeleteExpense.php +++ b/generated/Endpoint/DeleteExpense.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteExpenseCategory.php b/generated/Endpoint/DeleteExpenseCategory.php index e65a161..f659f95 100644 --- a/generated/Endpoint/DeleteExpenseCategory.php +++ b/generated/Endpoint/DeleteExpenseCategory.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteInvoice.php b/generated/Endpoint/DeleteInvoice.php index cbcf70f..24a5c5a 100644 --- a/generated/Endpoint/DeleteInvoice.php +++ b/generated/Endpoint/DeleteInvoice.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteInvoiceItemCategory.php b/generated/Endpoint/DeleteInvoiceItemCategory.php index 4ca9446..b437256 100644 --- a/generated/Endpoint/DeleteInvoiceItemCategory.php +++ b/generated/Endpoint/DeleteInvoiceItemCategory.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteInvoiceMessage.php b/generated/Endpoint/DeleteInvoiceMessage.php index 497b067..ae39fd6 100644 --- a/generated/Endpoint/DeleteInvoiceMessage.php +++ b/generated/Endpoint/DeleteInvoiceMessage.php @@ -62,7 +62,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteInvoicePayment.php b/generated/Endpoint/DeleteInvoicePayment.php index 4156942..6550123 100644 --- a/generated/Endpoint/DeleteInvoicePayment.php +++ b/generated/Endpoint/DeleteInvoicePayment.php @@ -62,7 +62,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteProject.php b/generated/Endpoint/DeleteProject.php index f542dd9..5c19309 100644 --- a/generated/Endpoint/DeleteProject.php +++ b/generated/Endpoint/DeleteProject.php @@ -62,7 +62,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteRole.php b/generated/Endpoint/DeleteRole.php index 0056520..7f066ec 100644 --- a/generated/Endpoint/DeleteRole.php +++ b/generated/Endpoint/DeleteRole.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteTask.php b/generated/Endpoint/DeleteTask.php index 72616eb..5add342 100644 --- a/generated/Endpoint/DeleteTask.php +++ b/generated/Endpoint/DeleteTask.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteTaskAssignment.php b/generated/Endpoint/DeleteTaskAssignment.php index 1c927b7..544deb0 100644 --- a/generated/Endpoint/DeleteTaskAssignment.php +++ b/generated/Endpoint/DeleteTaskAssignment.php @@ -62,7 +62,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteTimeEntry.php b/generated/Endpoint/DeleteTimeEntry.php index 6135b80..fafc966 100644 --- a/generated/Endpoint/DeleteTimeEntry.php +++ b/generated/Endpoint/DeleteTimeEntry.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteTimeEntryExternalReference.php b/generated/Endpoint/DeleteTimeEntryExternalReference.php index 12a251a..8c95c3c 100644 --- a/generated/Endpoint/DeleteTimeEntryExternalReference.php +++ b/generated/Endpoint/DeleteTimeEntryExternalReference.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteUser.php b/generated/Endpoint/DeleteUser.php index 4900a63..6659cb9 100644 --- a/generated/Endpoint/DeleteUser.php +++ b/generated/Endpoint/DeleteUser.php @@ -60,7 +60,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/DeleteUserAssignment.php b/generated/Endpoint/DeleteUserAssignment.php index 6fe760d..89bb00f 100644 --- a/generated/Endpoint/DeleteUserAssignment.php +++ b/generated/Endpoint/DeleteUserAssignment.php @@ -62,7 +62,7 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re return null; } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ExpenseCategoriesReport.php b/generated/Endpoint/ExpenseCategoriesReport.php index ac2f84f..3e1c89d 100644 --- a/generated/Endpoint/ExpenseCategoriesReport.php +++ b/generated/Endpoint/ExpenseCategoriesReport.php @@ -76,10 +76,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ExpenseReportsResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListActiveProjectAssignments.php b/generated/Endpoint/ListActiveProjectAssignments.php index d1aea4d..7d4b313 100644 --- a/generated/Endpoint/ListActiveProjectAssignments.php +++ b/generated/Endpoint/ListActiveProjectAssignments.php @@ -82,10 +82,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ProjectAssignments', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListActiveProjectAssignmentsForTheCurrentlyAuthenticatedUser.php b/generated/Endpoint/ListActiveProjectAssignmentsForTheCurrentlyAuthenticatedUser.php index ec29cf3..4c325c0 100644 --- a/generated/Endpoint/ListActiveProjectAssignmentsForTheCurrentlyAuthenticatedUser.php +++ b/generated/Endpoint/ListActiveProjectAssignmentsForTheCurrentlyAuthenticatedUser.php @@ -76,10 +76,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ProjectAssignments', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListAssignedTeammatesForSpecificUser.php b/generated/Endpoint/ListAssignedTeammatesForSpecificUser.php index a3114ea..60e1fd8 100644 --- a/generated/Endpoint/ListAssignedTeammatesForSpecificUser.php +++ b/generated/Endpoint/ListAssignedTeammatesForSpecificUser.php @@ -80,10 +80,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Teammates', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Teammates', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListBillableRatesForSpecificUser.php b/generated/Endpoint/ListBillableRatesForSpecificUser.php index d1b8f08..7a0fa71 100644 --- a/generated/Endpoint/ListBillableRatesForSpecificUser.php +++ b/generated/Endpoint/ListBillableRatesForSpecificUser.php @@ -80,10 +80,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\BillableRates', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\BillableRates', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListClients.php b/generated/Endpoint/ListClients.php index 3703c9d..e9a8eb6 100644 --- a/generated/Endpoint/ListClients.php +++ b/generated/Endpoint/ListClients.php @@ -83,10 +83,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Clients', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Clients', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListContacts.php b/generated/Endpoint/ListContacts.php index 94981ce..bf9de0f 100644 --- a/generated/Endpoint/ListContacts.php +++ b/generated/Endpoint/ListContacts.php @@ -82,10 +82,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Contacts', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Contacts', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListCostRatesForSpecificUser.php b/generated/Endpoint/ListCostRatesForSpecificUser.php index 1e43b7a..80fb2f7 100644 --- a/generated/Endpoint/ListCostRatesForSpecificUser.php +++ b/generated/Endpoint/ListCostRatesForSpecificUser.php @@ -80,10 +80,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\CostRates', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\CostRates', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListEstimateItemCategories.php b/generated/Endpoint/ListEstimateItemCategories.php index 676967e..4a18c9e 100644 --- a/generated/Endpoint/ListEstimateItemCategories.php +++ b/generated/Endpoint/ListEstimateItemCategories.php @@ -80,10 +80,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\EstimateItemCategories', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListEstimates.php b/generated/Endpoint/ListEstimates.php index 39a2181..6d02417 100644 --- a/generated/Endpoint/ListEstimates.php +++ b/generated/Endpoint/ListEstimates.php @@ -86,10 +86,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Estimates', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Estimates', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListExpenseCategories.php b/generated/Endpoint/ListExpenseCategories.php index 5c11204..8004991 100644 --- a/generated/Endpoint/ListExpenseCategories.php +++ b/generated/Endpoint/ListExpenseCategories.php @@ -83,10 +83,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ExpenseCategories', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListExpenses.php b/generated/Endpoint/ListExpenses.php index e59c860..58820f9 100644 --- a/generated/Endpoint/ListExpenses.php +++ b/generated/Endpoint/ListExpenses.php @@ -91,10 +91,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Expenses', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Expenses', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListInvoiceItemCategories.php b/generated/Endpoint/ListInvoiceItemCategories.php index f3b20e6..dd9da91 100644 --- a/generated/Endpoint/ListInvoiceItemCategories.php +++ b/generated/Endpoint/ListInvoiceItemCategories.php @@ -80,10 +80,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\InvoiceItemCategories', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListInvoices.php b/generated/Endpoint/ListInvoices.php index 4152860..693070c 100644 --- a/generated/Endpoint/ListInvoices.php +++ b/generated/Endpoint/ListInvoices.php @@ -88,10 +88,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Invoices', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Invoices', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListMessagesForEstimate.php b/generated/Endpoint/ListMessagesForEstimate.php index 4ac8330..8f7a5fc 100644 --- a/generated/Endpoint/ListMessagesForEstimate.php +++ b/generated/Endpoint/ListMessagesForEstimate.php @@ -82,10 +82,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\EstimateMessages', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListMessagesForInvoice.php b/generated/Endpoint/ListMessagesForInvoice.php index faaac74..be3ecc7 100644 --- a/generated/Endpoint/ListMessagesForInvoice.php +++ b/generated/Endpoint/ListMessagesForInvoice.php @@ -82,10 +82,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\InvoiceMessages', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListPaymentsForInvoice.php b/generated/Endpoint/ListPaymentsForInvoice.php index 680cf3d..b18d718 100644 --- a/generated/Endpoint/ListPaymentsForInvoice.php +++ b/generated/Endpoint/ListPaymentsForInvoice.php @@ -82,10 +82,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\InvoicePayments', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListProjects.php b/generated/Endpoint/ListProjects.php index 8d3a19a..91bd5db 100644 --- a/generated/Endpoint/ListProjects.php +++ b/generated/Endpoint/ListProjects.php @@ -85,10 +85,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Projects', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Projects', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListRoles.php b/generated/Endpoint/ListRoles.php index 747ac3a..f9908e8 100644 --- a/generated/Endpoint/ListRoles.php +++ b/generated/Endpoint/ListRoles.php @@ -78,10 +78,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Roles', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Roles', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListTaskAssignments.php b/generated/Endpoint/ListTaskAssignments.php index e84729b..50c9e35 100644 --- a/generated/Endpoint/ListTaskAssignments.php +++ b/generated/Endpoint/ListTaskAssignments.php @@ -83,10 +83,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TaskAssignments', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListTaskAssignmentsForSpecificProject.php b/generated/Endpoint/ListTaskAssignmentsForSpecificProject.php index 6375597..e94af6a 100644 --- a/generated/Endpoint/ListTaskAssignmentsForSpecificProject.php +++ b/generated/Endpoint/ListTaskAssignmentsForSpecificProject.php @@ -83,10 +83,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TaskAssignments', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListTasks.php b/generated/Endpoint/ListTasks.php index 05a09b8..7abdb1d 100644 --- a/generated/Endpoint/ListTasks.php +++ b/generated/Endpoint/ListTasks.php @@ -83,10 +83,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Tasks', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Tasks', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListTimeEntries.php b/generated/Endpoint/ListTimeEntries.php index b0ff31b..af9f668 100644 --- a/generated/Endpoint/ListTimeEntries.php +++ b/generated/Endpoint/ListTimeEntries.php @@ -98,10 +98,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeEntries', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeEntries', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListUserAssignments.php b/generated/Endpoint/ListUserAssignments.php index 2ce3b54..00fe5df 100644 --- a/generated/Endpoint/ListUserAssignments.php +++ b/generated/Endpoint/ListUserAssignments.php @@ -85,10 +85,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\UserAssignments', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\UserAssignments', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListUserAssignmentsForSpecificProject.php b/generated/Endpoint/ListUserAssignmentsForSpecificProject.php index 196ee9b..e364976 100644 --- a/generated/Endpoint/ListUserAssignmentsForSpecificProject.php +++ b/generated/Endpoint/ListUserAssignmentsForSpecificProject.php @@ -85,10 +85,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\UserAssignments', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\UserAssignments', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ListUsers.php b/generated/Endpoint/ListUsers.php index 30c5933..5f72d67 100644 --- a/generated/Endpoint/ListUsers.php +++ b/generated/Endpoint/ListUsers.php @@ -83,10 +83,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Users', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Users', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ProjectBudgetReport.php b/generated/Endpoint/ProjectBudgetReport.php index e8165a1..2ee5ab6 100644 --- a/generated/Endpoint/ProjectBudgetReport.php +++ b/generated/Endpoint/ProjectBudgetReport.php @@ -77,10 +77,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ProjectBudgetReportResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ProjectsExpensesReport.php b/generated/Endpoint/ProjectsExpensesReport.php index 059f02e..0e7e961 100644 --- a/generated/Endpoint/ProjectsExpensesReport.php +++ b/generated/Endpoint/ProjectsExpensesReport.php @@ -76,10 +76,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ExpenseReportsResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/ProjectsTimeReport.php b/generated/Endpoint/ProjectsTimeReport.php index 1be0a5e..b4862e8 100644 --- a/generated/Endpoint/ProjectsTimeReport.php +++ b/generated/Endpoint/ProjectsTimeReport.php @@ -78,10 +78,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeReportsResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RestartStoppedTimeEntry.php b/generated/Endpoint/RestartStoppedTimeEntry.php index 55add6e..a41f9ac 100644 --- a/generated/Endpoint/RestartStoppedTimeEntry.php +++ b/generated/Endpoint/RestartStoppedTimeEntry.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeEntry', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveBillableRate.php b/generated/Endpoint/RetrieveBillableRate.php index 726e1c7..922a073 100644 --- a/generated/Endpoint/RetrieveBillableRate.php +++ b/generated/Endpoint/RetrieveBillableRate.php @@ -59,10 +59,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\BillableRate', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\BillableRate', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveClient.php b/generated/Endpoint/RetrieveClient.php index d1462b5..e39aa8a 100644 --- a/generated/Endpoint/RetrieveClient.php +++ b/generated/Endpoint/RetrieveClient.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Client', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Client', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveCompany.php b/generated/Endpoint/RetrieveCompany.php index cb6def6..7c20e84 100644 --- a/generated/Endpoint/RetrieveCompany.php +++ b/generated/Endpoint/RetrieveCompany.php @@ -48,10 +48,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Company', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Company', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveContact.php b/generated/Endpoint/RetrieveContact.php index 48165a7..f328ace 100644 --- a/generated/Endpoint/RetrieveContact.php +++ b/generated/Endpoint/RetrieveContact.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Contact', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Contact', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveCostRate.php b/generated/Endpoint/RetrieveCostRate.php index 59639cf..9797c3d 100644 --- a/generated/Endpoint/RetrieveCostRate.php +++ b/generated/Endpoint/RetrieveCostRate.php @@ -59,10 +59,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\CostRate', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\CostRate', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveEstimate.php b/generated/Endpoint/RetrieveEstimate.php index 612d23f..b9e0fbf 100644 --- a/generated/Endpoint/RetrieveEstimate.php +++ b/generated/Endpoint/RetrieveEstimate.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Estimate', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Estimate', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveEstimateItemCategory.php b/generated/Endpoint/RetrieveEstimateItemCategory.php index 5a3537a..81b6f78 100644 --- a/generated/Endpoint/RetrieveEstimateItemCategory.php +++ b/generated/Endpoint/RetrieveEstimateItemCategory.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\EstimateItemCategory', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveExpense.php b/generated/Endpoint/RetrieveExpense.php index a169683..135c5b5 100644 --- a/generated/Endpoint/RetrieveExpense.php +++ b/generated/Endpoint/RetrieveExpense.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Expense', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Expense', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveExpenseCategory.php b/generated/Endpoint/RetrieveExpenseCategory.php index 8fa24b0..bc5bc82 100644 --- a/generated/Endpoint/RetrieveExpenseCategory.php +++ b/generated/Endpoint/RetrieveExpenseCategory.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ExpenseCategory', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveInvoice.php b/generated/Endpoint/RetrieveInvoice.php index b499271..00f7438 100644 --- a/generated/Endpoint/RetrieveInvoice.php +++ b/generated/Endpoint/RetrieveInvoice.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Invoice', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Invoice', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveInvoiceItemCategory.php b/generated/Endpoint/RetrieveInvoiceItemCategory.php index 1d67e5e..a3b38a5 100644 --- a/generated/Endpoint/RetrieveInvoiceItemCategory.php +++ b/generated/Endpoint/RetrieveInvoiceItemCategory.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\InvoiceItemCategory', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveInvoiceMessageSubjectAndBodyForSpecificInvoice.php b/generated/Endpoint/RetrieveInvoiceMessageSubjectAndBodyForSpecificInvoice.php index 903bb63..c339f49 100644 --- a/generated/Endpoint/RetrieveInvoiceMessageSubjectAndBodyForSpecificInvoice.php +++ b/generated/Endpoint/RetrieveInvoiceMessageSubjectAndBodyForSpecificInvoice.php @@ -78,10 +78,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveProject.php b/generated/Endpoint/RetrieveProject.php index 7d557d3..bddc82a 100644 --- a/generated/Endpoint/RetrieveProject.php +++ b/generated/Endpoint/RetrieveProject.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Project', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Project', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveRole.php b/generated/Endpoint/RetrieveRole.php index 2171792..981065a 100644 --- a/generated/Endpoint/RetrieveRole.php +++ b/generated/Endpoint/RetrieveRole.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Role', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Role', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveTask.php b/generated/Endpoint/RetrieveTask.php index 9be7f5b..7619674 100644 --- a/generated/Endpoint/RetrieveTask.php +++ b/generated/Endpoint/RetrieveTask.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Task', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Task', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveTaskAssignment.php b/generated/Endpoint/RetrieveTaskAssignment.php index d9b53eb..7dcfcd9 100644 --- a/generated/Endpoint/RetrieveTaskAssignment.php +++ b/generated/Endpoint/RetrieveTaskAssignment.php @@ -59,10 +59,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TaskAssignment', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveTheCurrentlyAuthenticatedUser.php b/generated/Endpoint/RetrieveTheCurrentlyAuthenticatedUser.php index 9782137..c72cd00 100644 --- a/generated/Endpoint/RetrieveTheCurrentlyAuthenticatedUser.php +++ b/generated/Endpoint/RetrieveTheCurrentlyAuthenticatedUser.php @@ -48,10 +48,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\User', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\User', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveTimeEntry.php b/generated/Endpoint/RetrieveTimeEntry.php index 1593ad6..0ae0692 100644 --- a/generated/Endpoint/RetrieveTimeEntry.php +++ b/generated/Endpoint/RetrieveTimeEntry.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeEntry', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveUser.php b/generated/Endpoint/RetrieveUser.php index 4638a33..7818c1e 100644 --- a/generated/Endpoint/RetrieveUser.php +++ b/generated/Endpoint/RetrieveUser.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\User', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\User', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/RetrieveUserAssignment.php b/generated/Endpoint/RetrieveUserAssignment.php index 5c0d11d..e04aea6 100644 --- a/generated/Endpoint/RetrieveUserAssignment.php +++ b/generated/Endpoint/RetrieveUserAssignment.php @@ -59,10 +59,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\UserAssignment', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/StopRunningTimeEntry.php b/generated/Endpoint/StopRunningTimeEntry.php index e8a12e3..fa2a686 100644 --- a/generated/Endpoint/StopRunningTimeEntry.php +++ b/generated/Endpoint/StopRunningTimeEntry.php @@ -57,10 +57,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeEntry', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/TasksReport.php b/generated/Endpoint/TasksReport.php index 79068c6..cbc4f81 100644 --- a/generated/Endpoint/TasksReport.php +++ b/generated/Endpoint/TasksReport.php @@ -78,10 +78,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeReportsResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/TeamExpensesReport.php b/generated/Endpoint/TeamExpensesReport.php index eb052e4..4fea15a 100644 --- a/generated/Endpoint/TeamExpensesReport.php +++ b/generated/Endpoint/TeamExpensesReport.php @@ -76,10 +76,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ExpenseReportsResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/TeamTimeReport.php b/generated/Endpoint/TeamTimeReport.php index d4144c6..7549e2b 100644 --- a/generated/Endpoint/TeamTimeReport.php +++ b/generated/Endpoint/TeamTimeReport.php @@ -78,10 +78,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeReportsResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UninvoicedReport.php b/generated/Endpoint/UninvoicedReport.php index 189e8de..5302f6b 100644 --- a/generated/Endpoint/UninvoicedReport.php +++ b/generated/Endpoint/UninvoicedReport.php @@ -83,10 +83,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\UninvoicedReportResults', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateClient.php b/generated/Endpoint/UpdateClient.php index 1433277..bb1e900 100644 --- a/generated/Endpoint/UpdateClient.php +++ b/generated/Endpoint/UpdateClient.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Client', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Client', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateCompany.php b/generated/Endpoint/UpdateCompany.php index 93d3dd4..8986fe9 100644 --- a/generated/Endpoint/UpdateCompany.php +++ b/generated/Endpoint/UpdateCompany.php @@ -60,10 +60,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Company', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Company', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateContact.php b/generated/Endpoint/UpdateContact.php index 32704dd..6d99406 100644 --- a/generated/Endpoint/UpdateContact.php +++ b/generated/Endpoint/UpdateContact.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Contact', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Contact', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateEstimate.php b/generated/Endpoint/UpdateEstimate.php index c2200fd..cc811fb 100644 --- a/generated/Endpoint/UpdateEstimate.php +++ b/generated/Endpoint/UpdateEstimate.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Estimate', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Estimate', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateEstimateItemCategory.php b/generated/Endpoint/UpdateEstimateItemCategory.php index 26e42be..c6ed398 100644 --- a/generated/Endpoint/UpdateEstimateItemCategory.php +++ b/generated/Endpoint/UpdateEstimateItemCategory.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\EstimateItemCategory', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateExpense.php b/generated/Endpoint/UpdateExpense.php index 97cf454..0103750 100644 --- a/generated/Endpoint/UpdateExpense.php +++ b/generated/Endpoint/UpdateExpense.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Expense', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Expense', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateExpenseCategory.php b/generated/Endpoint/UpdateExpenseCategory.php index 630b565..548a7a1 100644 --- a/generated/Endpoint/UpdateExpenseCategory.php +++ b/generated/Endpoint/UpdateExpenseCategory.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\ExpenseCategory', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateInvoice.php b/generated/Endpoint/UpdateInvoice.php index 32ee039..de14437 100644 --- a/generated/Endpoint/UpdateInvoice.php +++ b/generated/Endpoint/UpdateInvoice.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Invoice', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Invoice', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateInvoiceItemCategory.php b/generated/Endpoint/UpdateInvoiceItemCategory.php index d1b9b41..579dfc2 100644 --- a/generated/Endpoint/UpdateInvoiceItemCategory.php +++ b/generated/Endpoint/UpdateInvoiceItemCategory.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\InvoiceItemCategory', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateProject.php b/generated/Endpoint/UpdateProject.php index dc108c2..f7ad05d 100644 --- a/generated/Endpoint/UpdateProject.php +++ b/generated/Endpoint/UpdateProject.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Project', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Project', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateRole.php b/generated/Endpoint/UpdateRole.php index bad1abf..eed3baf 100644 --- a/generated/Endpoint/UpdateRole.php +++ b/generated/Endpoint/UpdateRole.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Role', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Role', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateTask.php b/generated/Endpoint/UpdateTask.php index e68967c..1e7f905 100644 --- a/generated/Endpoint/UpdateTask.php +++ b/generated/Endpoint/UpdateTask.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Task', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Task', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateTaskAssignment.php b/generated/Endpoint/UpdateTaskAssignment.php index d073ddb..cd92e21 100644 --- a/generated/Endpoint/UpdateTaskAssignment.php +++ b/generated/Endpoint/UpdateTaskAssignment.php @@ -64,10 +64,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TaskAssignment', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateTimeEntry.php b/generated/Endpoint/UpdateTimeEntry.php index 2b17398..522f57c 100644 --- a/generated/Endpoint/UpdateTimeEntry.php +++ b/generated/Endpoint/UpdateTimeEntry.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TimeEntry', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateUser.php b/generated/Endpoint/UpdateUser.php index 11d0106..1bae650 100644 --- a/generated/Endpoint/UpdateUser.php +++ b/generated/Endpoint/UpdateUser.php @@ -62,10 +62,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\User', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\User', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateUserAssignedTeammates.php b/generated/Endpoint/UpdateUserAssignedTeammates.php index 1007883..e78a1f9 100644 --- a/generated/Endpoint/UpdateUserAssignedTeammates.php +++ b/generated/Endpoint/UpdateUserAssignedTeammates.php @@ -64,10 +64,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\TeammatesPatchResponse', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Endpoint/UpdateUserAssignment.php b/generated/Endpoint/UpdateUserAssignment.php index fff3c96..2ec9edb 100644 --- a/generated/Endpoint/UpdateUserAssignment.php +++ b/generated/Endpoint/UpdateUserAssignment.php @@ -64,10 +64,10 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re $status = $response->getStatusCode(); $body = (string) $response->getBody(); if ((null === $contentType) === false && (200 === $status && false !== mb_strpos($contentType, 'application/json'))) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\UserAssignment', 'json'); } if (false !== mb_strpos($contentType, 'application/json')) { - return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); + return $serializer->deserialize($body, 'JoliCode\Harvest\Api\Model\Error', 'json'); } } } diff --git a/generated/Normalizer/BillableRateNormalizer.php b/generated/Normalizer/BillableRateNormalizer.php index b0e6df3..707c05c 100644 --- a/generated/Normalizer/BillableRateNormalizer.php +++ b/generated/Normalizer/BillableRateNormalizer.php @@ -32,12 +32,12 @@ class BillableRateNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\BillableRate' === $type; + return \JoliCode\Harvest\Api\Model\BillableRate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\BillableRate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\BillableRate::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -80,13 +80,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setEndDate(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -116,10 +116,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['end_date'] = $object->getEndDate()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -132,7 +132,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\BillableRate' => false]; + return [\JoliCode\Harvest\Api\Model\BillableRate::class => false]; } } } else { @@ -145,17 +145,14 @@ class BillableRateNormalizer implements DenormalizerInterface, NormalizerInterfa public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\BillableRate' === $type; + return \JoliCode\Harvest\Api\Model\BillableRate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\BillableRate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\BillableRate::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -196,13 +193,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setEndDate(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -217,8 +214,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -237,10 +232,10 @@ public function normalize($object, $format = null, array $context = []) $data['end_date'] = $object->getEndDate()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -253,7 +248,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\BillableRate' => false]; + return [\JoliCode\Harvest\Api\Model\BillableRate::class => false]; } } } diff --git a/generated/Normalizer/BillableRatesNormalizer.php b/generated/Normalizer/BillableRatesNormalizer.php index 1acc58d..ade8eb6 100644 --- a/generated/Normalizer/BillableRatesNormalizer.php +++ b/generated/Normalizer/BillableRatesNormalizer.php @@ -32,12 +32,12 @@ class BillableRatesNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\BillableRates' === $type; + return \JoliCode\Harvest\Api\Model\BillableRates::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\BillableRates' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\BillableRates::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('billable_rates', $data)) { $values = []; foreach ($data['billable_rates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\BillableRate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\BillableRate::class, 'json', $context); } $object->setBillableRates($values); unset($data['billable_rates']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\BillableRates' => false]; + return [\JoliCode\Harvest\Api\Model\BillableRates::class => false]; } } } else { @@ -140,17 +140,14 @@ class BillableRatesNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\BillableRates' === $type; + return \JoliCode\Harvest\Api\Model\BillableRates::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\BillableRates' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\BillableRates::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('billable_rates', $data)) { $values = []; foreach ($data['billable_rates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\BillableRate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\BillableRate::class, 'json', $context); } $object->setBillableRates($values); unset($data['billable_rates']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\BillableRates' => false]; + return [\JoliCode\Harvest\Api\Model\BillableRates::class => false]; } } } diff --git a/generated/Normalizer/ClientNormalizer.php b/generated/Normalizer/ClientNormalizer.php index c5ad0b0..08a519d 100644 --- a/generated/Normalizer/ClientNormalizer.php +++ b/generated/Normalizer/ClientNormalizer.php @@ -32,12 +32,12 @@ class ClientNormalizer implements DenormalizerInterface, NormalizerInterface, De public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Client' === $type; + return \JoliCode\Harvest\Api\Model\Client::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Client' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Client::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -89,13 +89,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setCurrency(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -131,10 +131,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['currency'] = $object->getCurrency(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -147,7 +147,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Client' => false]; + return [\JoliCode\Harvest\Api\Model\Client::class => false]; } } } else { @@ -160,17 +160,14 @@ class ClientNormalizer implements DenormalizerInterface, NormalizerInterface, De public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Client' === $type; + return \JoliCode\Harvest\Api\Model\Client::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Client' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Client::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -220,13 +217,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setCurrency(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -241,8 +238,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -267,10 +262,10 @@ public function normalize($object, $format = null, array $context = []) $data['currency'] = $object->getCurrency(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -283,7 +278,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Client' => false]; + return [\JoliCode\Harvest\Api\Model\Client::class => false]; } } } diff --git a/generated/Normalizer/ClientsClientIdPatchBodyNormalizer.php b/generated/Normalizer/ClientsClientIdPatchBodyNormalizer.php index 8b6cc59..15122b4 100644 --- a/generated/Normalizer/ClientsClientIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ClientsClientIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class ClientsClientIdPatchBodyNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -111,7 +111,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class => false]; } } } else { @@ -124,17 +124,14 @@ class ClientsClientIdPatchBodyNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -181,8 +178,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -211,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/ClientsNormalizer.php b/generated/Normalizer/ClientsNormalizer.php index 3c3dd40..6a48be5 100644 --- a/generated/Normalizer/ClientsNormalizer.php +++ b/generated/Normalizer/ClientsNormalizer.php @@ -32,12 +32,12 @@ class ClientsNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Clients' === $type; + return \JoliCode\Harvest\Api\Model\Clients::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Clients' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Clients::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('clients', $data)) { $values = []; foreach ($data['clients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Client', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Client::class, 'json', $context); } $object->setClients($values); unset($data['clients']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Clients' => false]; + return [\JoliCode\Harvest\Api\Model\Clients::class => false]; } } } else { @@ -140,17 +140,14 @@ class ClientsNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Clients' === $type; + return \JoliCode\Harvest\Api\Model\Clients::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Clients' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Clients::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('clients', $data)) { $values = []; foreach ($data['clients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Client', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Client::class, 'json', $context); } $object->setClients($values); unset($data['clients']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Clients' => false]; + return [\JoliCode\Harvest\Api\Model\Clients::class => false]; } } } diff --git a/generated/Normalizer/ClientsPostBodyNormalizer.php b/generated/Normalizer/ClientsPostBodyNormalizer.php index a181b5f..028ee00 100644 --- a/generated/Normalizer/ClientsPostBodyNormalizer.php +++ b/generated/Normalizer/ClientsPostBodyNormalizer.php @@ -32,12 +32,12 @@ class ClientsPostBodyNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ClientsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ClientsPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -109,7 +109,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ClientsPostBody::class => false]; } } } else { @@ -122,17 +122,14 @@ class ClientsPostBodyNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ClientsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ClientsPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -179,8 +176,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -207,7 +202,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ClientsPostBody::class => false]; } } } diff --git a/generated/Normalizer/CompaniesNormalizer.php b/generated/Normalizer/CompaniesNormalizer.php index c4878d8..a758ffa 100644 --- a/generated/Normalizer/CompaniesNormalizer.php +++ b/generated/Normalizer/CompaniesNormalizer.php @@ -32,12 +32,12 @@ class CompaniesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Companies' === $type; + return \JoliCode\Harvest\Api\Model\Companies::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Companies' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Companies::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('companies', $data)) { $values = []; foreach ($data['companies'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Company', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Company::class, 'json', $context); } $object->setCompanies($values); unset($data['companies']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Companies' => false]; + return [\JoliCode\Harvest\Api\Model\Companies::class => false]; } } } else { @@ -140,17 +140,14 @@ class CompaniesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Companies' === $type; + return \JoliCode\Harvest\Api\Model\Companies::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Companies' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Companies::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('companies', $data)) { $values = []; foreach ($data['companies'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Company', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Company::class, 'json', $context); } $object->setCompanies($values); unset($data['companies']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Companies' => false]; + return [\JoliCode\Harvest\Api\Model\Companies::class => false]; } } } diff --git a/generated/Normalizer/CompanyNormalizer.php b/generated/Normalizer/CompanyNormalizer.php index af0d8d7..a5c21b4 100644 --- a/generated/Normalizer/CompanyNormalizer.php +++ b/generated/Normalizer/CompanyNormalizer.php @@ -32,12 +32,12 @@ class CompanyNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Company' === $type; + return \JoliCode\Harvest\Api\Model\Company::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Company' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Company::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -255,7 +255,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Company' => false]; + return [\JoliCode\Harvest\Api\Model\Company::class => false]; } } } else { @@ -268,17 +268,14 @@ class CompanyNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Company' === $type; + return \JoliCode\Harvest\Api\Model\Company::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Company' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Company::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -421,8 +418,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -499,7 +494,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Company' => false]; + return [\JoliCode\Harvest\Api\Model\Company::class => false]; } } } diff --git a/generated/Normalizer/CompanyPatchBodyNormalizer.php b/generated/Normalizer/CompanyPatchBodyNormalizer.php index 7c921e0..3090c57 100644 --- a/generated/Normalizer/CompanyPatchBodyNormalizer.php +++ b/generated/Normalizer/CompanyPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class CompanyPatchBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\CompanyPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\CompanyPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\CompanyPatchBody::class => false]; } } } else { @@ -106,17 +106,14 @@ class CompanyPatchBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\CompanyPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\CompanyPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\CompanyPatchBody::class => false]; } } } diff --git a/generated/Normalizer/ContactClientNormalizer.php b/generated/Normalizer/ContactClientNormalizer.php index 0adc416..5d0c0c4 100644 --- a/generated/Normalizer/ContactClientNormalizer.php +++ b/generated/Normalizer/ContactClientNormalizer.php @@ -32,12 +32,12 @@ class ContactClientNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ContactClient' === $type; + return \JoliCode\Harvest\Api\Model\ContactClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ContactClient::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ContactClient' => false]; + return [\JoliCode\Harvest\Api\Model\ContactClient::class => false]; } } } else { @@ -106,17 +106,14 @@ class ContactClientNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ContactClient' === $type; + return \JoliCode\Harvest\Api\Model\ContactClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ContactClient::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ContactClient' => false]; + return [\JoliCode\Harvest\Api\Model\ContactClient::class => false]; } } } diff --git a/generated/Normalizer/ContactNormalizer.php b/generated/Normalizer/ContactNormalizer.php index dd4ad96..3da7a9d 100644 --- a/generated/Normalizer/ContactNormalizer.php +++ b/generated/Normalizer/ContactNormalizer.php @@ -32,12 +32,12 @@ class ContactNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Contact' === $type; + return \JoliCode\Harvest\Api\Model\Contact::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Contact' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Contact::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -59,7 +59,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\ContactClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\ContactClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -107,13 +107,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setFax(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -158,10 +158,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['fax'] = $object->getFax(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -174,7 +174,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Contact' => false]; + return [\JoliCode\Harvest\Api\Model\Contact::class => false]; } } } else { @@ -187,17 +187,14 @@ class ContactNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Contact' === $type; + return \JoliCode\Harvest\Api\Model\Contact::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Contact' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Contact::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -217,7 +214,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\ContactClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\ContactClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -265,13 +262,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setFax(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -286,8 +283,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -321,10 +316,10 @@ public function normalize($object, $format = null, array $context = []) $data['fax'] = $object->getFax(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -337,7 +332,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Contact' => false]; + return [\JoliCode\Harvest\Api\Model\Contact::class => false]; } } } diff --git a/generated/Normalizer/ContactsContactIdPatchBodyNormalizer.php b/generated/Normalizer/ContactsContactIdPatchBodyNormalizer.php index b6ee002..654d761 100644 --- a/generated/Normalizer/ContactsContactIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ContactsContactIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class ContactsContactIdPatchBodyNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -147,7 +147,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class => false]; } } } else { @@ -160,17 +160,14 @@ class ContactsContactIdPatchBodyNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -241,8 +238,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -283,7 +278,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/ContactsNormalizer.php b/generated/Normalizer/ContactsNormalizer.php index dd9560b..c6738dc 100644 --- a/generated/Normalizer/ContactsNormalizer.php +++ b/generated/Normalizer/ContactsNormalizer.php @@ -32,12 +32,12 @@ class ContactsNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Contacts' === $type; + return \JoliCode\Harvest\Api\Model\Contacts::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Contacts' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Contacts::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('contacts', $data)) { $values = []; foreach ($data['contacts'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Contact', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Contact::class, 'json', $context); } $object->setContacts($values); unset($data['contacts']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Contacts' => false]; + return [\JoliCode\Harvest\Api\Model\Contacts::class => false]; } } } else { @@ -140,17 +140,14 @@ class ContactsNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Contacts' === $type; + return \JoliCode\Harvest\Api\Model\Contacts::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Contacts' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Contacts::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('contacts', $data)) { $values = []; foreach ($data['contacts'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Contact', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Contact::class, 'json', $context); } $object->setContacts($values); unset($data['contacts']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Contacts' => false]; + return [\JoliCode\Harvest\Api\Model\Contacts::class => false]; } } } diff --git a/generated/Normalizer/ContactsPostBodyNormalizer.php b/generated/Normalizer/ContactsPostBodyNormalizer.php index 9b3f192..7e684bf 100644 --- a/generated/Normalizer/ContactsPostBodyNormalizer.php +++ b/generated/Normalizer/ContactsPostBodyNormalizer.php @@ -32,12 +32,12 @@ class ContactsPostBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ContactsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ContactsPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -143,7 +143,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ContactsPostBody::class => false]; } } } else { @@ -156,17 +156,14 @@ class ContactsPostBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ContactsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ContactsPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -237,8 +234,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -275,7 +270,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ContactsPostBody::class => false]; } } } diff --git a/generated/Normalizer/CostRateNormalizer.php b/generated/Normalizer/CostRateNormalizer.php index a897bf6..e4ae077 100644 --- a/generated/Normalizer/CostRateNormalizer.php +++ b/generated/Normalizer/CostRateNormalizer.php @@ -32,12 +32,12 @@ class CostRateNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\CostRate' === $type; + return \JoliCode\Harvest\Api\Model\CostRate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CostRate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\CostRate::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -80,13 +80,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setEndDate(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -116,10 +116,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['end_date'] = $object->getEndDate()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -132,7 +132,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\CostRate' => false]; + return [\JoliCode\Harvest\Api\Model\CostRate::class => false]; } } } else { @@ -145,17 +145,14 @@ class CostRateNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\CostRate' === $type; + return \JoliCode\Harvest\Api\Model\CostRate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CostRate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\CostRate::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -196,13 +193,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setEndDate(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -217,8 +214,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -237,10 +232,10 @@ public function normalize($object, $format = null, array $context = []) $data['end_date'] = $object->getEndDate()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -253,7 +248,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\CostRate' => false]; + return [\JoliCode\Harvest\Api\Model\CostRate::class => false]; } } } diff --git a/generated/Normalizer/CostRatesNormalizer.php b/generated/Normalizer/CostRatesNormalizer.php index a8a5139..fb73769 100644 --- a/generated/Normalizer/CostRatesNormalizer.php +++ b/generated/Normalizer/CostRatesNormalizer.php @@ -32,12 +32,12 @@ class CostRatesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\CostRates' === $type; + return \JoliCode\Harvest\Api\Model\CostRates::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CostRates' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\CostRates::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('cost_rates', $data)) { $values = []; foreach ($data['cost_rates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\CostRate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\CostRate::class, 'json', $context); } $object->setCostRates($values); unset($data['cost_rates']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\CostRates' => false]; + return [\JoliCode\Harvest\Api\Model\CostRates::class => false]; } } } else { @@ -140,17 +140,14 @@ class CostRatesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\CostRates' === $type; + return \JoliCode\Harvest\Api\Model\CostRates::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\CostRates' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\CostRates::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('cost_rates', $data)) { $values = []; foreach ($data['cost_rates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\CostRate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\CostRate::class, 'json', $context); } $object->setCostRates($values); unset($data['cost_rates']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\CostRates' => false]; + return [\JoliCode\Harvest\Api\Model\CostRates::class => false]; } } } diff --git a/generated/Normalizer/ErrorNormalizer.php b/generated/Normalizer/ErrorNormalizer.php index 906e5f4..452eb0e 100644 --- a/generated/Normalizer/ErrorNormalizer.php +++ b/generated/Normalizer/ErrorNormalizer.php @@ -32,12 +32,12 @@ class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Error' === $type; + return \JoliCode\Harvest\Api\Model\Error::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Error' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Error::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -89,7 +89,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Error' => false]; + return [\JoliCode\Harvest\Api\Model\Error::class => false]; } } } else { @@ -102,17 +102,14 @@ class ErrorNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Error' === $type; + return \JoliCode\Harvest\Api\Model\Error::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Error' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Error::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -143,8 +140,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -167,7 +162,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Error' => false]; + return [\JoliCode\Harvest\Api\Model\Error::class => false]; } } } diff --git a/generated/Normalizer/EstimateClientNormalizer.php b/generated/Normalizer/EstimateClientNormalizer.php index 4ae8a5b..48d16aa 100644 --- a/generated/Normalizer/EstimateClientNormalizer.php +++ b/generated/Normalizer/EstimateClientNormalizer.php @@ -32,12 +32,12 @@ class EstimateClientNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' === $type; + return \JoliCode\Harvest\Api\Model\EstimateClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateClient::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateClient' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateClient::class => false]; } } } else { @@ -106,17 +106,14 @@ class EstimateClientNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' === $type; + return \JoliCode\Harvest\Api\Model\EstimateClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateClient::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateClient' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateClient::class => false]; } } } diff --git a/generated/Normalizer/EstimateCreatorNormalizer.php b/generated/Normalizer/EstimateCreatorNormalizer.php index 25cd65d..d16f740 100644 --- a/generated/Normalizer/EstimateCreatorNormalizer.php +++ b/generated/Normalizer/EstimateCreatorNormalizer.php @@ -32,12 +32,12 @@ class EstimateCreatorNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' === $type; + return \JoliCode\Harvest\Api\Model\EstimateCreator::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateCreator::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateCreator' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateCreator::class => false]; } } } else { @@ -106,17 +106,14 @@ class EstimateCreatorNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' === $type; + return \JoliCode\Harvest\Api\Model\EstimateCreator::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateCreator::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateCreator' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateCreator::class => false]; } } } diff --git a/generated/Normalizer/EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer.php b/generated/Normalizer/EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer.php index 669dac6..794e3f2 100644 --- a/generated/Normalizer/EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer.php +++ b/generated/Normalizer/EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer implements public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -84,7 +84,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class => false]; } } } else { @@ -97,17 +97,14 @@ class EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer implements public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -136,8 +133,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -157,7 +152,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/EstimateItemCategoriesNormalizer.php b/generated/Normalizer/EstimateItemCategoriesNormalizer.php index 321790e..57d774f 100644 --- a/generated/Normalizer/EstimateItemCategoriesNormalizer.php +++ b/generated/Normalizer/EstimateItemCategoriesNormalizer.php @@ -32,12 +32,12 @@ class EstimateItemCategoriesNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' === $type; + return \JoliCode\Harvest\Api\Model\EstimateItemCategories::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateItemCategories::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('estimate_item_categories', $data)) { $values = []; foreach ($data['estimate_item_categories'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateItemCategory::class, 'json', $context); } $object->setEstimateItemCategories($values); unset($data['estimate_item_categories']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateItemCategories::class => false]; } } } else { @@ -140,17 +140,14 @@ class EstimateItemCategoriesNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' === $type; + return \JoliCode\Harvest\Api\Model\EstimateItemCategories::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateItemCategories::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('estimate_item_categories', $data)) { $values = []; foreach ($data['estimate_item_categories'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateItemCategory::class, 'json', $context); } $object->setEstimateItemCategories($values); unset($data['estimate_item_categories']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateItemCategories::class => false]; } } } diff --git a/generated/Normalizer/EstimateItemCategoriesPostBodyNormalizer.php b/generated/Normalizer/EstimateItemCategoriesPostBodyNormalizer.php index 471bcc8..c9025c0 100644 --- a/generated/Normalizer/EstimateItemCategoriesPostBodyNormalizer.php +++ b/generated/Normalizer/EstimateItemCategoriesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class EstimateItemCategoriesPostBodyNormalizer implements DenormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -82,7 +82,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class => false]; } } } else { @@ -95,17 +95,14 @@ class EstimateItemCategoriesPostBodyNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -134,8 +131,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -153,7 +148,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class => false]; } } } diff --git a/generated/Normalizer/EstimateItemCategoryNormalizer.php b/generated/Normalizer/EstimateItemCategoryNormalizer.php index f6c3ce8..a06bac5 100644 --- a/generated/Normalizer/EstimateItemCategoryNormalizer.php +++ b/generated/Normalizer/EstimateItemCategoryNormalizer.php @@ -32,12 +32,12 @@ class EstimateItemCategoryNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' === $type; + return \JoliCode\Harvest\Api\Model\EstimateItemCategory::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateItemCategory::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -65,13 +65,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setName(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -95,10 +95,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['name'] = $object->getName(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -111,7 +111,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateItemCategory::class => false]; } } } else { @@ -124,17 +124,14 @@ class EstimateItemCategoryNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' === $type; + return \JoliCode\Harvest\Api\Model\EstimateItemCategory::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateItemCategory::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -160,13 +157,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setName(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -181,8 +178,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -195,10 +190,10 @@ public function normalize($object, $format = null, array $context = []) $data['name'] = $object->getName(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -211,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateItemCategory::class => false]; } } } diff --git a/generated/Normalizer/EstimateLineItemNormalizer.php b/generated/Normalizer/EstimateLineItemNormalizer.php index 67ae0a7..f324d3f 100644 --- a/generated/Normalizer/EstimateLineItemNormalizer.php +++ b/generated/Normalizer/EstimateLineItemNormalizer.php @@ -32,12 +32,12 @@ class EstimateLineItemNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' === $type; + return \JoliCode\Harvest\Api\Model\EstimateLineItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateLineItem::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -156,7 +156,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateLineItem::class => false]; } } } else { @@ -169,17 +169,14 @@ class EstimateLineItemNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' === $type; + return \JoliCode\Harvest\Api\Model\EstimateLineItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateLineItem::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -259,8 +256,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -301,7 +296,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateLineItem::class => false]; } } } diff --git a/generated/Normalizer/EstimateLineItemsNormalizer.php b/generated/Normalizer/EstimateLineItemsNormalizer.php index 23de8ff..d4d67b3 100644 --- a/generated/Normalizer/EstimateLineItemsNormalizer.php +++ b/generated/Normalizer/EstimateLineItemsNormalizer.php @@ -32,12 +32,12 @@ class EstimateLineItemsNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' === $type; + return \JoliCode\Harvest\Api\Model\EstimateLineItems::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateLineItems::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('estimate_line_items', $data)) { $values = []; foreach ($data['estimate_line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateLineItem::class, 'json', $context); } $object->setEstimateLineItems($values); unset($data['estimate_line_items']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateLineItems::class => false]; } } } else { @@ -140,17 +140,14 @@ class EstimateLineItemsNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' === $type; + return \JoliCode\Harvest\Api\Model\EstimateLineItems::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateLineItems::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('estimate_line_items', $data)) { $values = []; foreach ($data['estimate_line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateLineItem::class, 'json', $context); } $object->setEstimateLineItems($values); unset($data['estimate_line_items']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateLineItems::class => false]; } } } diff --git a/generated/Normalizer/EstimateMessageNormalizer.php b/generated/Normalizer/EstimateMessageNormalizer.php index 4b096a9..bc41dc0 100644 --- a/generated/Normalizer/EstimateMessageNormalizer.php +++ b/generated/Normalizer/EstimateMessageNormalizer.php @@ -32,12 +32,12 @@ class EstimateMessageNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' === $type; + return \JoliCode\Harvest\Api\Model\EstimateMessage::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateMessage::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -85,7 +85,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('recipients', $data) && null !== $data['recipients']) { $values = []; foreach ($data['recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class, 'json', $context); } $object->setRecipients($values); unset($data['recipients']); @@ -117,13 +117,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setEventType(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -175,10 +175,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['event_type'] = $object->getEventType(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -191,7 +191,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessage' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateMessage::class => false]; } } } else { @@ -204,17 +204,14 @@ class EstimateMessageNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' === $type; + return \JoliCode\Harvest\Api\Model\EstimateMessage::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateMessage::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -260,7 +257,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('recipients', $data) && null !== $data['recipients']) { $values = []; foreach ($data['recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class, 'json', $context); } $object->setRecipients($values); unset($data['recipients']); @@ -292,13 +289,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setEventType(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -313,8 +310,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -355,10 +350,10 @@ public function normalize($object, $format = null, array $context = []) $data['event_type'] = $object->getEventType(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -371,7 +366,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessage' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateMessage::class => false]; } } } diff --git a/generated/Normalizer/EstimateMessageRecipientNormalizer.php b/generated/Normalizer/EstimateMessageRecipientNormalizer.php index 8848525..dde1ae2 100644 --- a/generated/Normalizer/EstimateMessageRecipientNormalizer.php +++ b/generated/Normalizer/EstimateMessageRecipientNormalizer.php @@ -32,12 +32,12 @@ class EstimateMessageRecipientNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' === $type; + return \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class => false]; } } } else { @@ -106,17 +106,14 @@ class EstimateMessageRecipientNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' === $type; + return \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class => false]; } } } diff --git a/generated/Normalizer/EstimateMessageRecipientsNormalizer.php b/generated/Normalizer/EstimateMessageRecipientsNormalizer.php index fade864..3083ba2 100644 --- a/generated/Normalizer/EstimateMessageRecipientsNormalizer.php +++ b/generated/Normalizer/EstimateMessageRecipientsNormalizer.php @@ -32,12 +32,12 @@ class EstimateMessageRecipientsNormalizer implements DenormalizerInterface, Norm public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' === $type; + return \JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('estimate_message_recipients', $data)) { $values = []; foreach ($data['estimate_message_recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class, 'json', $context); } $object->setEstimateMessageRecipients($values); unset($data['estimate_message_recipients']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class => false]; } } } else { @@ -140,17 +140,14 @@ class EstimateMessageRecipientsNormalizer implements DenormalizerInterface, Norm public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' === $type; + return \JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('estimate_message_recipients', $data)) { $values = []; foreach ($data['estimate_message_recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class, 'json', $context); } $object->setEstimateMessageRecipients($values); unset($data['estimate_message_recipients']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class => false]; } } } diff --git a/generated/Normalizer/EstimateMessagesNormalizer.php b/generated/Normalizer/EstimateMessagesNormalizer.php index 9daca11..5c8c217 100644 --- a/generated/Normalizer/EstimateMessagesNormalizer.php +++ b/generated/Normalizer/EstimateMessagesNormalizer.php @@ -32,12 +32,12 @@ class EstimateMessagesNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' === $type; + return \JoliCode\Harvest\Api\Model\EstimateMessages::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateMessages::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('estimate_messages', $data)) { $values = []; foreach ($data['estimate_messages'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateMessage::class, 'json', $context); } $object->setEstimateMessages($values); unset($data['estimate_messages']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessages' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateMessages::class => false]; } } } else { @@ -140,17 +140,14 @@ class EstimateMessagesNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' === $type; + return \JoliCode\Harvest\Api\Model\EstimateMessages::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimateMessages::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('estimate_messages', $data)) { $values = []; foreach ($data['estimate_messages'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateMessage::class, 'json', $context); } $object->setEstimateMessages($values); unset($data['estimate_messages']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimateMessages' => false]; + return [\JoliCode\Harvest\Api\Model\EstimateMessages::class => false]; } } } diff --git a/generated/Normalizer/EstimateNormalizer.php b/generated/Normalizer/EstimateNormalizer.php index ab40819..ad57465 100644 --- a/generated/Normalizer/EstimateNormalizer.php +++ b/generated/Normalizer/EstimateNormalizer.php @@ -32,12 +32,12 @@ class EstimateNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Estimate' === $type; + return \JoliCode\Harvest\Api\Model\Estimate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Estimate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Estimate::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -80,7 +80,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\EstimateClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\EstimateClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -88,7 +88,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values = []; foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateLineItem::class, 'json', $context); } $object->setLineItems($values); unset($data['line_items']); @@ -96,7 +96,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setLineItems(null); } if (\array_key_exists('creator', $data) && null !== $data['creator']) { - $object->setCreator($this->denormalizer->denormalize($data['creator'], 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator', 'json', $context)); + $object->setCreator($this->denormalizer->denormalize($data['creator'], \JoliCode\Harvest\Api\Model\EstimateCreator::class, 'json', $context)); unset($data['creator']); } elseif (\array_key_exists('creator', $data) && null === $data['creator']) { $object->setCreator(null); @@ -192,31 +192,31 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setIssueDate(null); } if (\array_key_exists('sent_at', $data) && null !== $data['sent_at']) { - $object->setSentAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['sent_at'])); + $object->setSentAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['sent_at'])); unset($data['sent_at']); } elseif (\array_key_exists('sent_at', $data) && null === $data['sent_at']) { $object->setSentAt(null); } if (\array_key_exists('accepted_at', $data) && null !== $data['accepted_at']) { - $object->setAcceptedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['accepted_at'])); + $object->setAcceptedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['accepted_at'])); unset($data['accepted_at']); } elseif (\array_key_exists('accepted_at', $data) && null === $data['accepted_at']) { $object->setAcceptedAt(null); } if (\array_key_exists('declined_at', $data) && null !== $data['declined_at']) { - $object->setDeclinedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['declined_at'])); + $object->setDeclinedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['declined_at'])); unset($data['declined_at']); } elseif (\array_key_exists('declined_at', $data) && null === $data['declined_at']) { $object->setDeclinedAt(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -295,19 +295,19 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['issue_date'] = $object->getIssueDate()->format('Y-m-d'); } if ($object->isInitialized('sentAt') && null !== $object->getSentAt()) { - $data['sent_at'] = $object->getSentAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['sent_at'] = $object->getSentAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('acceptedAt') && null !== $object->getAcceptedAt()) { - $data['accepted_at'] = $object->getAcceptedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['accepted_at'] = $object->getAcceptedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('declinedAt') && null !== $object->getDeclinedAt()) { - $data['declined_at'] = $object->getDeclinedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['declined_at'] = $object->getDeclinedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -320,7 +320,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Estimate' => false]; + return [\JoliCode\Harvest\Api\Model\Estimate::class => false]; } } } else { @@ -333,17 +333,14 @@ class EstimateNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Estimate' === $type; + return \JoliCode\Harvest\Api\Model\Estimate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Estimate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Estimate::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -384,7 +381,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\EstimateClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\EstimateClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -392,7 +389,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values = []; foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimateLineItem::class, 'json', $context); } $object->setLineItems($values); unset($data['line_items']); @@ -400,7 +397,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setLineItems(null); } if (\array_key_exists('creator', $data) && null !== $data['creator']) { - $object->setCreator($this->denormalizer->denormalize($data['creator'], 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator', 'json', $context)); + $object->setCreator($this->denormalizer->denormalize($data['creator'], \JoliCode\Harvest\Api\Model\EstimateCreator::class, 'json', $context)); unset($data['creator']); } elseif (\array_key_exists('creator', $data) && null === $data['creator']) { $object->setCreator(null); @@ -496,31 +493,31 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setIssueDate(null); } if (\array_key_exists('sent_at', $data) && null !== $data['sent_at']) { - $object->setSentAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['sent_at'])); + $object->setSentAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['sent_at'])); unset($data['sent_at']); } elseif (\array_key_exists('sent_at', $data) && null === $data['sent_at']) { $object->setSentAt(null); } if (\array_key_exists('accepted_at', $data) && null !== $data['accepted_at']) { - $object->setAcceptedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['accepted_at'])); + $object->setAcceptedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['accepted_at'])); unset($data['accepted_at']); } elseif (\array_key_exists('accepted_at', $data) && null === $data['accepted_at']) { $object->setAcceptedAt(null); } if (\array_key_exists('declined_at', $data) && null !== $data['declined_at']) { - $object->setDeclinedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['declined_at'])); + $object->setDeclinedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['declined_at'])); unset($data['declined_at']); } elseif (\array_key_exists('declined_at', $data) && null === $data['declined_at']) { $object->setDeclinedAt(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -535,8 +532,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -604,19 +599,19 @@ public function normalize($object, $format = null, array $context = []) $data['issue_date'] = $object->getIssueDate()->format('Y-m-d'); } if ($object->isInitialized('sentAt') && null !== $object->getSentAt()) { - $data['sent_at'] = $object->getSentAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['sent_at'] = $object->getSentAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('acceptedAt') && null !== $object->getAcceptedAt()) { - $data['accepted_at'] = $object->getAcceptedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['accepted_at'] = $object->getAcceptedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('declinedAt') && null !== $object->getDeclinedAt()) { - $data['declined_at'] = $object->getDeclinedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['declined_at'] = $object->getDeclinedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -629,7 +624,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Estimate' => false]; + return [\JoliCode\Harvest\Api\Model\Estimate::class => false]; } } } diff --git a/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyNormalizer.php b/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyNormalizer.php index 6751efc..918a282 100644 --- a/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyNormalizer.php +++ b/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class EstimatesEstimateIdMessagesPostBodyNormalizer implements DenormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -61,7 +61,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('recipients', $data) && null !== $data['recipients']) { $values = []; foreach ($data['recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class, 'json', $context); } $object->setRecipients($values); unset($data['recipients']); @@ -126,7 +126,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class => false]; } } } else { @@ -139,17 +139,14 @@ class EstimatesEstimateIdMessagesPostBodyNormalizer implements DenormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -171,7 +168,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('recipients', $data) && null !== $data['recipients']) { $values = []; foreach ($data['recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class, 'json', $context); } $object->setRecipients($values); unset($data['recipients']); @@ -206,8 +203,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -241,7 +236,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class => false]; } } } diff --git a/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer.php b/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer.php index 13c7986..bcda999 100644 --- a/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer.php +++ b/generated/Normalizer/EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer.php @@ -32,12 +32,12 @@ class EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer implements Den public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -87,7 +87,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class => false]; } } } else { @@ -100,17 +100,14 @@ class EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer implements Den public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -141,8 +138,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -163,7 +158,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class => false]; } } } diff --git a/generated/Normalizer/EstimatesEstimateIdPatchBodyLineItemsItemNormalizer.php b/generated/Normalizer/EstimatesEstimateIdPatchBodyLineItemsItemNormalizer.php index 7386518..9d21270 100644 --- a/generated/Normalizer/EstimatesEstimateIdPatchBodyLineItemsItemNormalizer.php +++ b/generated/Normalizer/EstimatesEstimateIdPatchBodyLineItemsItemNormalizer.php @@ -32,12 +32,12 @@ class EstimatesEstimateIdPatchBodyLineItemsItemNormalizer implements Denormalize public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class => false]; } } } else { @@ -140,17 +140,14 @@ class EstimatesEstimateIdPatchBodyLineItemsItemNormalizer implements Denormalize public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -204,8 +201,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class => false]; } } } diff --git a/generated/Normalizer/EstimatesEstimateIdPatchBodyNormalizer.php b/generated/Normalizer/EstimatesEstimateIdPatchBodyNormalizer.php index f17441f..4d2d724 100644 --- a/generated/Normalizer/EstimatesEstimateIdPatchBodyNormalizer.php +++ b/generated/Normalizer/EstimatesEstimateIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class EstimatesEstimateIdPatchBodyNormalizer implements DenormalizerInterface, N public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -124,7 +124,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values = []; foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class, 'json', $context); } $object->setLineItems($values); unset($data['line_items']); @@ -191,7 +191,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class => false]; } } } else { @@ -204,17 +204,14 @@ class EstimatesEstimateIdPatchBodyNormalizer implements DenormalizerInterface, N public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -299,7 +296,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values = []; foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class, 'json', $context); } $object->setLineItems($values); unset($data['line_items']); @@ -316,8 +313,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -371,7 +366,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/EstimatesNormalizer.php b/generated/Normalizer/EstimatesNormalizer.php index c56122c..73be80e 100644 --- a/generated/Normalizer/EstimatesNormalizer.php +++ b/generated/Normalizer/EstimatesNormalizer.php @@ -32,12 +32,12 @@ class EstimatesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Estimates' === $type; + return \JoliCode\Harvest\Api\Model\Estimates::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Estimates' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Estimates::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('estimates', $data)) { $values = []; foreach ($data['estimates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Estimate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Estimate::class, 'json', $context); } $object->setEstimates($values); unset($data['estimates']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Estimates' => false]; + return [\JoliCode\Harvest\Api\Model\Estimates::class => false]; } } } else { @@ -140,17 +140,14 @@ class EstimatesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Estimates' === $type; + return \JoliCode\Harvest\Api\Model\Estimates::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Estimates' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Estimates::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('estimates', $data)) { $values = []; foreach ($data['estimates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Estimate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Estimate::class, 'json', $context); } $object->setEstimates($values); unset($data['estimates']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Estimates' => false]; + return [\JoliCode\Harvest\Api\Model\Estimates::class => false]; } } } diff --git a/generated/Normalizer/EstimatesPostBodyLineItemsItemNormalizer.php b/generated/Normalizer/EstimatesPostBodyLineItemsItemNormalizer.php index bb25d70..df78066 100644 --- a/generated/Normalizer/EstimatesPostBodyLineItemsItemNormalizer.php +++ b/generated/Normalizer/EstimatesPostBodyLineItemsItemNormalizer.php @@ -32,12 +32,12 @@ class EstimatesPostBodyLineItemsItemNormalizer implements DenormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -116,7 +116,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class => false]; } } } else { @@ -129,17 +129,14 @@ class EstimatesPostBodyLineItemsItemNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -189,8 +186,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -221,7 +216,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class => false]; } } } diff --git a/generated/Normalizer/EstimatesPostBodyNormalizer.php b/generated/Normalizer/EstimatesPostBodyNormalizer.php index a18fbb4..440892f 100644 --- a/generated/Normalizer/EstimatesPostBodyNormalizer.php +++ b/generated/Normalizer/EstimatesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class EstimatesPostBodyNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -124,7 +124,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values = []; foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class, 'json', $context); } $object->setLineItems($values); unset($data['line_items']); @@ -189,7 +189,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesPostBody::class => false]; } } } else { @@ -202,17 +202,14 @@ class EstimatesPostBodyNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\EstimatesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\EstimatesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -297,7 +294,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values = []; foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class, 'json', $context); } $object->setLineItems($values); unset($data['line_items']); @@ -314,8 +311,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -367,7 +362,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\EstimatesPostBody::class => false]; } } } diff --git a/generated/Normalizer/ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer.php b/generated/Normalizer/ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer.php index 1c5d7fd..380fa8f 100644 --- a/generated/Normalizer/ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer implements Denormali public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -114,7 +114,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class => false]; } } } else { @@ -127,17 +127,14 @@ class ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer implements Denormali public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -187,8 +184,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -217,7 +212,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/ExpenseCategoriesNormalizer.php b/generated/Normalizer/ExpenseCategoriesNormalizer.php index 27eef2d..39f88b3 100644 --- a/generated/Normalizer/ExpenseCategoriesNormalizer.php +++ b/generated/Normalizer/ExpenseCategoriesNormalizer.php @@ -32,12 +32,12 @@ class ExpenseCategoriesNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseCategories::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseCategories::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('expense_categories', $data)) { $values = []; foreach ($data['expense_categories'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\ExpenseCategory::class, 'json', $context); } $object->setExpenseCategories($values); unset($data['expense_categories']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseCategories::class => false]; } } } else { @@ -140,17 +140,14 @@ class ExpenseCategoriesNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseCategories::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseCategories::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('expense_categories', $data)) { $values = []; foreach ($data['expense_categories'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\ExpenseCategory::class, 'json', $context); } $object->setExpenseCategories($values); unset($data['expense_categories']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseCategories::class => false]; } } } diff --git a/generated/Normalizer/ExpenseCategoriesPostBodyNormalizer.php b/generated/Normalizer/ExpenseCategoriesPostBodyNormalizer.php index cefa110..9cfc163 100644 --- a/generated/Normalizer/ExpenseCategoriesPostBodyNormalizer.php +++ b/generated/Normalizer/ExpenseCategoriesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class ExpenseCategoriesPostBodyNormalizer implements DenormalizerInterface, Norm public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -112,7 +112,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class => false]; } } } else { @@ -125,17 +125,14 @@ class ExpenseCategoriesPostBodyNormalizer implements DenormalizerInterface, Norm public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -185,8 +182,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -213,7 +208,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class => false]; } } } diff --git a/generated/Normalizer/ExpenseCategoryNormalizer.php b/generated/Normalizer/ExpenseCategoryNormalizer.php index 051d9ca..1975bae 100644 --- a/generated/Normalizer/ExpenseCategoryNormalizer.php +++ b/generated/Normalizer/ExpenseCategoryNormalizer.php @@ -32,12 +32,12 @@ class ExpenseCategoryNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseCategory::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseCategory::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -86,13 +86,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setIsActive(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -125,10 +125,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['is_active'] = $object->getIsActive(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -141,7 +141,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseCategory::class => false]; } } } else { @@ -154,17 +154,14 @@ class ExpenseCategoryNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseCategory::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseCategory::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -211,13 +208,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setIsActive(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -232,8 +229,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -255,10 +250,10 @@ public function normalize($object, $format = null, array $context = []) $data['is_active'] = $object->getIsActive(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -271,7 +266,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseCategory::class => false]; } } } diff --git a/generated/Normalizer/ExpenseClientNormalizer.php b/generated/Normalizer/ExpenseClientNormalizer.php index 3057bf7..0b01142 100644 --- a/generated/Normalizer/ExpenseClientNormalizer.php +++ b/generated/Normalizer/ExpenseClientNormalizer.php @@ -32,12 +32,12 @@ class ExpenseClientNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseClient::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -102,7 +102,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseClient' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseClient::class => false]; } } } else { @@ -115,17 +115,14 @@ class ExpenseClientNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseClient::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,8 +163,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -193,7 +188,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseClient' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseClient::class => false]; } } } diff --git a/generated/Normalizer/ExpenseExpenseCategoryNormalizer.php b/generated/Normalizer/ExpenseExpenseCategoryNormalizer.php index 197c389..5ee7154 100644 --- a/generated/Normalizer/ExpenseExpenseCategoryNormalizer.php +++ b/generated/Normalizer/ExpenseExpenseCategoryNormalizer.php @@ -32,12 +32,12 @@ class ExpenseExpenseCategoryNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -111,7 +111,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class => false]; } } } else { @@ -124,17 +124,14 @@ class ExpenseExpenseCategoryNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -181,8 +178,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -211,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class => false]; } } } diff --git a/generated/Normalizer/ExpenseInvoiceNormalizer.php b/generated/Normalizer/ExpenseInvoiceNormalizer.php index 6fe220f..f3eb6fc 100644 --- a/generated/Normalizer/ExpenseInvoiceNormalizer.php +++ b/generated/Normalizer/ExpenseInvoiceNormalizer.php @@ -32,12 +32,12 @@ class ExpenseInvoiceNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseInvoice::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseInvoice::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseInvoice::class => false]; } } } else { @@ -106,17 +106,14 @@ class ExpenseInvoiceNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseInvoice::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseInvoice::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseInvoice::class => false]; } } } diff --git a/generated/Normalizer/ExpenseNormalizer.php b/generated/Normalizer/ExpenseNormalizer.php index 62a39c6..f2e081e 100644 --- a/generated/Normalizer/ExpenseNormalizer.php +++ b/generated/Normalizer/ExpenseNormalizer.php @@ -32,12 +32,12 @@ class ExpenseNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Expense' === $type; + return \JoliCode\Harvest\Api\Model\Expense::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Expense' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Expense::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -62,41 +62,41 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\ExpenseClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\ExpenseProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('expense_category', $data) && null !== $data['expense_category']) { - $object->setExpenseCategory($this->denormalizer->denormalize($data['expense_category'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory', 'json', $context)); + $object->setExpenseCategory($this->denormalizer->denormalize($data['expense_category'], \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class, 'json', $context)); unset($data['expense_category']); } elseif (\array_key_exists('expense_category', $data) && null === $data['expense_category']) { $object->setExpenseCategory(null); } if (\array_key_exists('user', $data) && null !== $data['user']) { - $object->setUser($this->denormalizer->denormalize($data['user'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser', 'json', $context)); + $object->setUser($this->denormalizer->denormalize($data['user'], \JoliCode\Harvest\Api\Model\ExpenseUser::class, 'json', $context)); unset($data['user']); } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } if (\array_key_exists('user_assignment', $data)) { - $object->setUserAssignment($this->denormalizer->denormalize($data['user_assignment'], 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json', $context)); + $object->setUserAssignment($this->denormalizer->denormalize($data['user_assignment'], \JoliCode\Harvest\Api\Model\UserAssignment::class, 'json', $context)); unset($data['user_assignment']); } if (\array_key_exists('receipt', $data) && null !== $data['receipt']) { - $object->setReceipt($this->denormalizer->denormalize($data['receipt'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt', 'json', $context)); + $object->setReceipt($this->denormalizer->denormalize($data['receipt'], \JoliCode\Harvest\Api\Model\ExpenseReceipt::class, 'json', $context)); unset($data['receipt']); } elseif (\array_key_exists('receipt', $data) && null === $data['receipt']) { $object->setReceipt(null); } if (\array_key_exists('invoice', $data) && null !== $data['invoice']) { - $object->setInvoice($this->denormalizer->denormalize($data['invoice'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice', 'json', $context)); + $object->setInvoice($this->denormalizer->denormalize($data['invoice'], \JoliCode\Harvest\Api\Model\ExpenseInvoice::class, 'json', $context)); unset($data['invoice']); } elseif (\array_key_exists('invoice', $data) && null === $data['invoice']) { $object->setInvoice(null); @@ -156,13 +156,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setSpentDate(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -231,10 +231,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['spent_date'] = $object->getSpentDate()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -247,7 +247,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Expense' => false]; + return [\JoliCode\Harvest\Api\Model\Expense::class => false]; } } } else { @@ -260,17 +260,14 @@ class ExpenseNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Expense' === $type; + return \JoliCode\Harvest\Api\Model\Expense::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Expense' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Expense::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -293,41 +290,41 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\ExpenseClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\ExpenseProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('expense_category', $data) && null !== $data['expense_category']) { - $object->setExpenseCategory($this->denormalizer->denormalize($data['expense_category'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory', 'json', $context)); + $object->setExpenseCategory($this->denormalizer->denormalize($data['expense_category'], \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class, 'json', $context)); unset($data['expense_category']); } elseif (\array_key_exists('expense_category', $data) && null === $data['expense_category']) { $object->setExpenseCategory(null); } if (\array_key_exists('user', $data) && null !== $data['user']) { - $object->setUser($this->denormalizer->denormalize($data['user'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser', 'json', $context)); + $object->setUser($this->denormalizer->denormalize($data['user'], \JoliCode\Harvest\Api\Model\ExpenseUser::class, 'json', $context)); unset($data['user']); } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } if (\array_key_exists('user_assignment', $data)) { - $object->setUserAssignment($this->denormalizer->denormalize($data['user_assignment'], 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json', $context)); + $object->setUserAssignment($this->denormalizer->denormalize($data['user_assignment'], \JoliCode\Harvest\Api\Model\UserAssignment::class, 'json', $context)); unset($data['user_assignment']); } if (\array_key_exists('receipt', $data) && null !== $data['receipt']) { - $object->setReceipt($this->denormalizer->denormalize($data['receipt'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt', 'json', $context)); + $object->setReceipt($this->denormalizer->denormalize($data['receipt'], \JoliCode\Harvest\Api\Model\ExpenseReceipt::class, 'json', $context)); unset($data['receipt']); } elseif (\array_key_exists('receipt', $data) && null === $data['receipt']) { $object->setReceipt(null); } if (\array_key_exists('invoice', $data) && null !== $data['invoice']) { - $object->setInvoice($this->denormalizer->denormalize($data['invoice'], 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice', 'json', $context)); + $object->setInvoice($this->denormalizer->denormalize($data['invoice'], \JoliCode\Harvest\Api\Model\ExpenseInvoice::class, 'json', $context)); unset($data['invoice']); } elseif (\array_key_exists('invoice', $data) && null === $data['invoice']) { $object->setInvoice(null); @@ -387,13 +384,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setSpentDate(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -408,8 +405,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -467,10 +462,10 @@ public function normalize($object, $format = null, array $context = []) $data['spent_date'] = $object->getSpentDate()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -483,7 +478,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Expense' => false]; + return [\JoliCode\Harvest\Api\Model\Expense::class => false]; } } } diff --git a/generated/Normalizer/ExpenseProjectNormalizer.php b/generated/Normalizer/ExpenseProjectNormalizer.php index 6a023a0..dce0a04 100644 --- a/generated/Normalizer/ExpenseProjectNormalizer.php +++ b/generated/Normalizer/ExpenseProjectNormalizer.php @@ -32,12 +32,12 @@ class ExpenseProjectNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseProject::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -102,7 +102,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseProject' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseProject::class => false]; } } } else { @@ -115,17 +115,14 @@ class ExpenseProjectNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseProject::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,8 +163,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -193,7 +188,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseProject' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseProject::class => false]; } } } diff --git a/generated/Normalizer/ExpenseReceiptNormalizer.php b/generated/Normalizer/ExpenseReceiptNormalizer.php index 96c94ae..b69e592 100644 --- a/generated/Normalizer/ExpenseReceiptNormalizer.php +++ b/generated/Normalizer/ExpenseReceiptNormalizer.php @@ -32,12 +32,12 @@ class ExpenseReceiptNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseReceipt::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseReceipt::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -111,7 +111,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseReceipt::class => false]; } } } else { @@ -124,17 +124,14 @@ class ExpenseReceiptNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseReceipt::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseReceipt::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -181,8 +178,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -211,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseReceipt::class => false]; } } } diff --git a/generated/Normalizer/ExpenseReportsResultNormalizer.php b/generated/Normalizer/ExpenseReportsResultNormalizer.php index 0823c32..b0bb719 100644 --- a/generated/Normalizer/ExpenseReportsResultNormalizer.php +++ b/generated/Normalizer/ExpenseReportsResultNormalizer.php @@ -32,12 +32,12 @@ class ExpenseReportsResultNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -189,7 +189,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseReportsResult::class => false]; } } } else { @@ -202,17 +202,14 @@ class ExpenseReportsResultNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -313,8 +310,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -367,7 +362,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseReportsResult::class => false]; } } } diff --git a/generated/Normalizer/ExpenseReportsResultsNormalizer.php b/generated/Normalizer/ExpenseReportsResultsNormalizer.php index df22b43..9e0fd55 100644 --- a/generated/Normalizer/ExpenseReportsResultsNormalizer.php +++ b/generated/Normalizer/ExpenseReportsResultsNormalizer.php @@ -32,12 +32,12 @@ class ExpenseReportsResultsNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseReportsResults::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseReportsResults::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseReportsResults::class => false]; } } } else { @@ -140,17 +140,14 @@ class ExpenseReportsResultsNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseReportsResults::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseReportsResults::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseReportsResults::class => false]; } } } diff --git a/generated/Normalizer/ExpenseUserNormalizer.php b/generated/Normalizer/ExpenseUserNormalizer.php index a7f6865..8831976 100644 --- a/generated/Normalizer/ExpenseUserNormalizer.php +++ b/generated/Normalizer/ExpenseUserNormalizer.php @@ -32,12 +32,12 @@ class ExpenseUserNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseUser::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseUser::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseUser' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseUser::class => false]; } } } else { @@ -106,17 +106,14 @@ class ExpenseUserNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' === $type; + return \JoliCode\Harvest\Api\Model\ExpenseUser::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpenseUser::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpenseUser' => false]; + return [\JoliCode\Harvest\Api\Model\ExpenseUser::class => false]; } } } diff --git a/generated/Normalizer/ExpensesExpenseIdPatchBodyNormalizer.php b/generated/Normalizer/ExpensesExpenseIdPatchBodyNormalizer.php index 53a2313..f72e0e9 100644 --- a/generated/Normalizer/ExpensesExpenseIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ExpensesExpenseIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class ExpensesExpenseIdPatchBodyNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -159,7 +159,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class => false]; } } } else { @@ -172,17 +172,14 @@ class ExpensesExpenseIdPatchBodyNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -262,8 +259,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -307,7 +302,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/ExpensesNormalizer.php b/generated/Normalizer/ExpensesNormalizer.php index 6583f8a..da5cdf9 100644 --- a/generated/Normalizer/ExpensesNormalizer.php +++ b/generated/Normalizer/ExpensesNormalizer.php @@ -32,12 +32,12 @@ class ExpensesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Expenses' === $type; + return \JoliCode\Harvest\Api\Model\Expenses::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Expenses' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Expenses::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('expenses', $data)) { $values = []; foreach ($data['expenses'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Expense', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Expense::class, 'json', $context); } $object->setExpenses($values); unset($data['expenses']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Expenses' => false]; + return [\JoliCode\Harvest\Api\Model\Expenses::class => false]; } } } else { @@ -140,17 +140,14 @@ class ExpensesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Expenses' === $type; + return \JoliCode\Harvest\Api\Model\Expenses::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Expenses' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Expenses::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('expenses', $data)) { $values = []; foreach ($data['expenses'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Expense', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Expense::class, 'json', $context); } $object->setExpenses($values); unset($data['expenses']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Expenses' => false]; + return [\JoliCode\Harvest\Api\Model\Expenses::class => false]; } } } diff --git a/generated/Normalizer/ExpensesPostBodyNormalizer.php b/generated/Normalizer/ExpensesPostBodyNormalizer.php index 25b7dbe..ecf70b2 100644 --- a/generated/Normalizer/ExpensesPostBodyNormalizer.php +++ b/generated/Normalizer/ExpensesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class ExpensesPostBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ExpensesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpensesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -153,7 +153,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ExpensesPostBody::class => false]; } } } else { @@ -166,17 +166,14 @@ class ExpensesPostBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ExpensesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ExpensesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -256,8 +253,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -295,7 +290,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ExpensesPostBody::class => false]; } } } diff --git a/generated/Normalizer/InvoiceClientNormalizer.php b/generated/Normalizer/InvoiceClientNormalizer.php index ab4de76..3a6af05 100644 --- a/generated/Normalizer/InvoiceClientNormalizer.php +++ b/generated/Normalizer/InvoiceClientNormalizer.php @@ -32,12 +32,12 @@ class InvoiceClientNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceClient::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceClient' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceClient::class => false]; } } } else { @@ -106,17 +106,14 @@ class InvoiceClientNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceClient::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceClient' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceClient::class => false]; } } } diff --git a/generated/Normalizer/InvoiceCreatorNormalizer.php b/generated/Normalizer/InvoiceCreatorNormalizer.php index ceb6cc9..548d213 100644 --- a/generated/Normalizer/InvoiceCreatorNormalizer.php +++ b/generated/Normalizer/InvoiceCreatorNormalizer.php @@ -32,12 +32,12 @@ class InvoiceCreatorNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceCreator::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceCreator::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceCreator::class => false]; } } } else { @@ -106,17 +106,14 @@ class InvoiceCreatorNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceCreator::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceCreator::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceCreator::class => false]; } } } diff --git a/generated/Normalizer/InvoiceEstimateNormalizer.php b/generated/Normalizer/InvoiceEstimateNormalizer.php index c03ea65..1286c03 100644 --- a/generated/Normalizer/InvoiceEstimateNormalizer.php +++ b/generated/Normalizer/InvoiceEstimateNormalizer.php @@ -32,12 +32,12 @@ class InvoiceEstimateNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceEstimate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceEstimate::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -84,7 +84,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceEstimate::class => false]; } } } else { @@ -97,17 +97,14 @@ class InvoiceEstimateNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceEstimate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceEstimate::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -136,8 +133,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -157,7 +152,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceEstimate::class => false]; } } } diff --git a/generated/Normalizer/InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer.php b/generated/Normalizer/InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer.php index d781131..cfe537e 100644 --- a/generated/Normalizer/InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer.php +++ b/generated/Normalizer/InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer implements D public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -84,7 +84,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class => false]; } } } else { @@ -97,17 +97,14 @@ class InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer implements D public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -136,8 +133,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -157,7 +152,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/InvoiceItemCategoriesNormalizer.php b/generated/Normalizer/InvoiceItemCategoriesNormalizer.php index 158f54f..9faea35 100644 --- a/generated/Normalizer/InvoiceItemCategoriesNormalizer.php +++ b/generated/Normalizer/InvoiceItemCategoriesNormalizer.php @@ -32,12 +32,12 @@ class InvoiceItemCategoriesNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceItemCategories::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceItemCategories::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('invoice_item_categories', $data)) { $values = []; foreach ($data['invoice_item_categories'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class, 'json', $context); } $object->setInvoiceItemCategories($values); unset($data['invoice_item_categories']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceItemCategories::class => false]; } } } else { @@ -140,17 +140,14 @@ class InvoiceItemCategoriesNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceItemCategories::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceItemCategories::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('invoice_item_categories', $data)) { $values = []; foreach ($data['invoice_item_categories'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class, 'json', $context); } $object->setInvoiceItemCategories($values); unset($data['invoice_item_categories']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceItemCategories::class => false]; } } } diff --git a/generated/Normalizer/InvoiceItemCategoriesPostBodyNormalizer.php b/generated/Normalizer/InvoiceItemCategoriesPostBodyNormalizer.php index 71f9a22..a9609fb 100644 --- a/generated/Normalizer/InvoiceItemCategoriesPostBodyNormalizer.php +++ b/generated/Normalizer/InvoiceItemCategoriesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class InvoiceItemCategoriesPostBodyNormalizer implements DenormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -82,7 +82,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class => false]; } } } else { @@ -95,17 +95,14 @@ class InvoiceItemCategoriesPostBodyNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -134,8 +131,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -153,7 +148,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class => false]; } } } diff --git a/generated/Normalizer/InvoiceItemCategoryNormalizer.php b/generated/Normalizer/InvoiceItemCategoryNormalizer.php index 0b0ae43..c96e0d5 100644 --- a/generated/Normalizer/InvoiceItemCategoryNormalizer.php +++ b/generated/Normalizer/InvoiceItemCategoryNormalizer.php @@ -32,12 +32,12 @@ class InvoiceItemCategoryNormalizer implements DenormalizerInterface, Normalizer public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -77,13 +77,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setUseAsExpense(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -113,10 +113,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['use_as_expense'] = $object->getUseAsExpense(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -129,7 +129,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceItemCategory::class => false]; } } } else { @@ -142,17 +142,14 @@ class InvoiceItemCategoryNormalizer implements DenormalizerInterface, Normalizer public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -190,13 +187,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setUseAsExpense(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -211,8 +208,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -231,10 +226,10 @@ public function normalize($object, $format = null, array $context = []) $data['use_as_expense'] = $object->getUseAsExpense(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -247,7 +242,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceItemCategory::class => false]; } } } diff --git a/generated/Normalizer/InvoiceLineItemNormalizer.php b/generated/Normalizer/InvoiceLineItemNormalizer.php index 59d2d90..48de753 100644 --- a/generated/Normalizer/InvoiceLineItemNormalizer.php +++ b/generated/Normalizer/InvoiceLineItemNormalizer.php @@ -32,12 +32,12 @@ class InvoiceLineItemNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceLineItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceLineItem::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -68,7 +68,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); @@ -165,7 +165,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceLineItem::class => false]; } } } else { @@ -178,17 +178,14 @@ class InvoiceLineItemNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceLineItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceLineItem::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -217,7 +214,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); @@ -274,8 +271,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -319,7 +314,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceLineItem::class => false]; } } } diff --git a/generated/Normalizer/InvoiceLineItemProjectNormalizer.php b/generated/Normalizer/InvoiceLineItemProjectNormalizer.php index a6b711a..c6fa783 100644 --- a/generated/Normalizer/InvoiceLineItemProjectNormalizer.php +++ b/generated/Normalizer/InvoiceLineItemProjectNormalizer.php @@ -32,12 +32,12 @@ class InvoiceLineItemProjectNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -102,7 +102,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class => false]; } } } else { @@ -115,17 +115,14 @@ class InvoiceLineItemProjectNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,8 +163,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -193,7 +188,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class => false]; } } } diff --git a/generated/Normalizer/InvoiceLineItemsNormalizer.php b/generated/Normalizer/InvoiceLineItemsNormalizer.php index f44f629..5c0f628 100644 --- a/generated/Normalizer/InvoiceLineItemsNormalizer.php +++ b/generated/Normalizer/InvoiceLineItemsNormalizer.php @@ -32,12 +32,12 @@ class InvoiceLineItemsNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceLineItems::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceLineItems::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('invoice_line_items', $data)) { $values = []; foreach ($data['invoice_line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceLineItem::class, 'json', $context); } $object->setInvoiceLineItems($values); unset($data['invoice_line_items']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceLineItems::class => false]; } } } else { @@ -140,17 +140,14 @@ class InvoiceLineItemsNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceLineItems::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceLineItems::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('invoice_line_items', $data)) { $values = []; foreach ($data['invoice_line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceLineItem::class, 'json', $context); } $object->setInvoiceLineItems($values); unset($data['invoice_line_items']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceLineItems::class => false]; } } } diff --git a/generated/Normalizer/InvoiceMessageNormalizer.php b/generated/Normalizer/InvoiceMessageNormalizer.php index 204ff85..52d9f94 100644 --- a/generated/Normalizer/InvoiceMessageNormalizer.php +++ b/generated/Normalizer/InvoiceMessageNormalizer.php @@ -32,12 +32,12 @@ class InvoiceMessageNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessage::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessage::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -85,7 +85,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('recipients', $data) && null !== $data['recipients']) { $values = []; foreach ($data['recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class, 'json', $context); } $object->setRecipients($values); unset($data['recipients']); @@ -147,13 +147,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setSendReminderOn(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -220,10 +220,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['send_reminder_on'] = $object->getSendReminderOn()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -236,7 +236,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessage::class => false]; } } } else { @@ -249,17 +249,14 @@ class InvoiceMessageNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessage::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessage::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -305,7 +302,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('recipients', $data) && null !== $data['recipients']) { $values = []; foreach ($data['recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class, 'json', $context); } $object->setRecipients($values); unset($data['recipients']); @@ -367,13 +364,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setSendReminderOn(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -388,8 +385,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -445,10 +440,10 @@ public function normalize($object, $format = null, array $context = []) $data['send_reminder_on'] = $object->getSendReminderOn()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -461,7 +456,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessage::class => false]; } } } diff --git a/generated/Normalizer/InvoiceMessageRecipientNormalizer.php b/generated/Normalizer/InvoiceMessageRecipientNormalizer.php index 52920c9..f4e1a85 100644 --- a/generated/Normalizer/InvoiceMessageRecipientNormalizer.php +++ b/generated/Normalizer/InvoiceMessageRecipientNormalizer.php @@ -32,12 +32,12 @@ class InvoiceMessageRecipientNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class => false]; } } } else { @@ -106,17 +106,14 @@ class InvoiceMessageRecipientNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class => false]; } } } diff --git a/generated/Normalizer/InvoiceMessageRecipientsNormalizer.php b/generated/Normalizer/InvoiceMessageRecipientsNormalizer.php index cfd0dce..1ab31d3 100644 --- a/generated/Normalizer/InvoiceMessageRecipientsNormalizer.php +++ b/generated/Normalizer/InvoiceMessageRecipientsNormalizer.php @@ -32,12 +32,12 @@ class InvoiceMessageRecipientsNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('invoice_message_recipients', $data)) { $values = []; foreach ($data['invoice_message_recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class, 'json', $context); } $object->setInvoiceMessageRecipients($values); unset($data['invoice_message_recipients']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class => false]; } } } else { @@ -140,17 +140,14 @@ class InvoiceMessageRecipientsNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('invoice_message_recipients', $data)) { $values = []; foreach ($data['invoice_message_recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class, 'json', $context); } $object->setInvoiceMessageRecipients($values); unset($data['invoice_message_recipients']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class => false]; } } } diff --git a/generated/Normalizer/InvoiceMessageSubjectAndBodyNormalizer.php b/generated/Normalizer/InvoiceMessageSubjectAndBodyNormalizer.php index a14347b..cb04f08 100644 --- a/generated/Normalizer/InvoiceMessageSubjectAndBodyNormalizer.php +++ b/generated/Normalizer/InvoiceMessageSubjectAndBodyNormalizer.php @@ -32,12 +32,12 @@ class InvoiceMessageSubjectAndBodyNormalizer implements DenormalizerInterface, N public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -100,7 +100,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class => false]; } } } else { @@ -113,17 +113,14 @@ class InvoiceMessageSubjectAndBodyNormalizer implements DenormalizerInterface, N public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,8 +163,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -189,7 +184,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class => false]; } } } diff --git a/generated/Normalizer/InvoiceMessagesNormalizer.php b/generated/Normalizer/InvoiceMessagesNormalizer.php index e8369fd..677ad04 100644 --- a/generated/Normalizer/InvoiceMessagesNormalizer.php +++ b/generated/Normalizer/InvoiceMessagesNormalizer.php @@ -32,12 +32,12 @@ class InvoiceMessagesNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessages::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessages::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('invoice_messages', $data)) { $values = []; foreach ($data['invoice_messages'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceMessage::class, 'json', $context); } $object->setInvoiceMessages($values); unset($data['invoice_messages']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessages::class => false]; } } } else { @@ -140,17 +140,14 @@ class InvoiceMessagesNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceMessages::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceMessages::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('invoice_messages', $data)) { $values = []; foreach ($data['invoice_messages'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceMessage::class, 'json', $context); } $object->setInvoiceMessages($values); unset($data['invoice_messages']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceMessages::class => false]; } } } diff --git a/generated/Normalizer/InvoiceNormalizer.php b/generated/Normalizer/InvoiceNormalizer.php index 95e3d27..37db9d9 100644 --- a/generated/Normalizer/InvoiceNormalizer.php +++ b/generated/Normalizer/InvoiceNormalizer.php @@ -32,12 +32,12 @@ class InvoiceNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Invoice' === $type; + return \JoliCode\Harvest\Api\Model\Invoice::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Invoice' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Invoice::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -83,7 +83,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\InvoiceClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -91,7 +91,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values = []; foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceLineItem::class, 'json', $context); } $object->setLineItems($values); unset($data['line_items']); @@ -99,19 +99,19 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setLineItems(null); } if (\array_key_exists('estimate', $data) && null !== $data['estimate']) { - $object->setEstimate($this->denormalizer->denormalize($data['estimate'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate', 'json', $context)); + $object->setEstimate($this->denormalizer->denormalize($data['estimate'], \JoliCode\Harvest\Api\Model\InvoiceEstimate::class, 'json', $context)); unset($data['estimate']); } elseif (\array_key_exists('estimate', $data) && null === $data['estimate']) { $object->setEstimate(null); } if (\array_key_exists('retainer', $data) && null !== $data['retainer']) { - $object->setRetainer($this->denormalizer->denormalize($data['retainer'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer', 'json', $context)); + $object->setRetainer($this->denormalizer->denormalize($data['retainer'], \JoliCode\Harvest\Api\Model\InvoiceRetainer::class, 'json', $context)); unset($data['retainer']); } elseif (\array_key_exists('retainer', $data) && null === $data['retainer']) { $object->setRetainer(null); } if (\array_key_exists('creator', $data) && null !== $data['creator']) { - $object->setCreator($this->denormalizer->denormalize($data['creator'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator', 'json', $context)); + $object->setCreator($this->denormalizer->denormalize($data['creator'], \JoliCode\Harvest\Api\Model\InvoiceCreator::class, 'json', $context)); unset($data['creator']); } elseif (\array_key_exists('creator', $data) && null === $data['creator']) { $object->setCreator(null); @@ -247,13 +247,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setPaymentOptions(null); } if (\array_key_exists('sent_at', $data) && null !== $data['sent_at']) { - $object->setSentAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['sent_at'])); + $object->setSentAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['sent_at'])); unset($data['sent_at']); } elseif (\array_key_exists('sent_at', $data) && null === $data['sent_at']) { $object->setSentAt(null); } if (\array_key_exists('paid_at', $data) && null !== $data['paid_at']) { - $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['paid_at'])); + $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['paid_at'])); unset($data['paid_at']); } elseif (\array_key_exists('paid_at', $data) && null === $data['paid_at']) { $object->setPaidAt(null); @@ -265,7 +265,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setPaidDate(null); } if (\array_key_exists('closed_at', $data) && null !== $data['closed_at']) { - $object->setClosedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['closed_at'])); + $object->setClosedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['closed_at'])); unset($data['closed_at']); } elseif (\array_key_exists('closed_at', $data) && null === $data['closed_at']) { $object->setClosedAt(null); @@ -277,13 +277,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setRecurringInvoiceId(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -390,25 +390,25 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['payment_options'] = $values_1; } if ($object->isInitialized('sentAt') && null !== $object->getSentAt()) { - $data['sent_at'] = $object->getSentAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['sent_at'] = $object->getSentAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('paidAt') && null !== $object->getPaidAt()) { - $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('paidDate') && null !== $object->getPaidDate()) { $data['paid_date'] = $object->getPaidDate()->format('Y-m-d'); } if ($object->isInitialized('closedAt') && null !== $object->getClosedAt()) { - $data['closed_at'] = $object->getClosedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['closed_at'] = $object->getClosedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('recurringInvoiceId') && null !== $object->getRecurringInvoiceId()) { $data['recurring_invoice_id'] = $object->getRecurringInvoiceId(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { @@ -421,7 +421,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Invoice' => false]; + return [\JoliCode\Harvest\Api\Model\Invoice::class => false]; } } } else { @@ -434,17 +434,14 @@ class InvoiceNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Invoice' === $type; + return \JoliCode\Harvest\Api\Model\Invoice::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Invoice' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Invoice::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -488,7 +485,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\InvoiceClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -496,7 +493,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values = []; foreach ($data['line_items'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoiceLineItem::class, 'json', $context); } $object->setLineItems($values); unset($data['line_items']); @@ -504,19 +501,19 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setLineItems(null); } if (\array_key_exists('estimate', $data) && null !== $data['estimate']) { - $object->setEstimate($this->denormalizer->denormalize($data['estimate'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate', 'json', $context)); + $object->setEstimate($this->denormalizer->denormalize($data['estimate'], \JoliCode\Harvest\Api\Model\InvoiceEstimate::class, 'json', $context)); unset($data['estimate']); } elseif (\array_key_exists('estimate', $data) && null === $data['estimate']) { $object->setEstimate(null); } if (\array_key_exists('retainer', $data) && null !== $data['retainer']) { - $object->setRetainer($this->denormalizer->denormalize($data['retainer'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer', 'json', $context)); + $object->setRetainer($this->denormalizer->denormalize($data['retainer'], \JoliCode\Harvest\Api\Model\InvoiceRetainer::class, 'json', $context)); unset($data['retainer']); } elseif (\array_key_exists('retainer', $data) && null === $data['retainer']) { $object->setRetainer(null); } if (\array_key_exists('creator', $data) && null !== $data['creator']) { - $object->setCreator($this->denormalizer->denormalize($data['creator'], 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator', 'json', $context)); + $object->setCreator($this->denormalizer->denormalize($data['creator'], \JoliCode\Harvest\Api\Model\InvoiceCreator::class, 'json', $context)); unset($data['creator']); } elseif (\array_key_exists('creator', $data) && null === $data['creator']) { $object->setCreator(null); @@ -652,13 +649,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setPaymentOptions(null); } if (\array_key_exists('sent_at', $data) && null !== $data['sent_at']) { - $object->setSentAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['sent_at'])); + $object->setSentAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['sent_at'])); unset($data['sent_at']); } elseif (\array_key_exists('sent_at', $data) && null === $data['sent_at']) { $object->setSentAt(null); } if (\array_key_exists('paid_at', $data) && null !== $data['paid_at']) { - $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['paid_at'])); + $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['paid_at'])); unset($data['paid_at']); } elseif (\array_key_exists('paid_at', $data) && null === $data['paid_at']) { $object->setPaidAt(null); @@ -670,7 +667,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setPaidDate(null); } if (\array_key_exists('closed_at', $data) && null !== $data['closed_at']) { - $object->setClosedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['closed_at'])); + $object->setClosedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['closed_at'])); unset($data['closed_at']); } elseif (\array_key_exists('closed_at', $data) && null === $data['closed_at']) { $object->setClosedAt(null); @@ -682,13 +679,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setRecurringInvoiceId(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -703,8 +700,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -800,25 +795,25 @@ public function normalize($object, $format = null, array $context = []) $data['payment_options'] = $values_1; } if ($object->isInitialized('sentAt') && null !== $object->getSentAt()) { - $data['sent_at'] = $object->getSentAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['sent_at'] = $object->getSentAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('paidAt') && null !== $object->getPaidAt()) { - $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('paidDate') && null !== $object->getPaidDate()) { $data['paid_date'] = $object->getPaidDate()->format('Y-m-d'); } if ($object->isInitialized('closedAt') && null !== $object->getClosedAt()) { - $data['closed_at'] = $object->getClosedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['closed_at'] = $object->getClosedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('recurringInvoiceId') && null !== $object->getRecurringInvoiceId()) { $data['recurring_invoice_id'] = $object->getRecurringInvoiceId(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { @@ -831,7 +826,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Invoice' => false]; + return [\JoliCode\Harvest\Api\Model\Invoice::class => false]; } } } diff --git a/generated/Normalizer/InvoicePaymentNormalizer.php b/generated/Normalizer/InvoicePaymentNormalizer.php index 788feb4..49e7258 100644 --- a/generated/Normalizer/InvoicePaymentNormalizer.php +++ b/generated/Normalizer/InvoicePaymentNormalizer.php @@ -32,12 +32,12 @@ class InvoicePaymentNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' === $type; + return \JoliCode\Harvest\Api\Model\InvoicePayment::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicePayment::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -68,7 +68,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setAmount(null); } if (\array_key_exists('paid_at', $data) && null !== $data['paid_at']) { - $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['paid_at'])); + $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['paid_at'])); unset($data['paid_at']); } elseif (\array_key_exists('paid_at', $data) && null === $data['paid_at']) { $object->setPaidAt(null); @@ -104,19 +104,19 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setTransactionId(null); } if (\array_key_exists('payment_gateway', $data) && null !== $data['payment_gateway']) { - $object->setPaymentGateway($this->denormalizer->denormalize($data['payment_gateway'], 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway', 'json', $context)); + $object->setPaymentGateway($this->denormalizer->denormalize($data['payment_gateway'], \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class, 'json', $context)); unset($data['payment_gateway']); } elseif (\array_key_exists('payment_gateway', $data) && null === $data['payment_gateway']) { $object->setPaymentGateway(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -140,7 +140,7 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['amount'] = $object->getAmount(); } if ($object->isInitialized('paidAt') && null !== $object->getPaidAt()) { - $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('paidDate') && null !== $object->getPaidDate()) { $data['paid_date'] = $object->getPaidDate()->format('Y-m-d'); @@ -161,10 +161,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['payment_gateway'] = $this->normalizer->normalize($object->getPaymentGateway(), 'json', $context); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -177,7 +177,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicePayment' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicePayment::class => false]; } } } else { @@ -190,17 +190,14 @@ class InvoicePaymentNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' === $type; + return \JoliCode\Harvest\Api\Model\InvoicePayment::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicePayment::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -229,7 +226,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setAmount(null); } if (\array_key_exists('paid_at', $data) && null !== $data['paid_at']) { - $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['paid_at'])); + $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['paid_at'])); unset($data['paid_at']); } elseif (\array_key_exists('paid_at', $data) && null === $data['paid_at']) { $object->setPaidAt(null); @@ -265,19 +262,19 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setTransactionId(null); } if (\array_key_exists('payment_gateway', $data) && null !== $data['payment_gateway']) { - $object->setPaymentGateway($this->denormalizer->denormalize($data['payment_gateway'], 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway', 'json', $context)); + $object->setPaymentGateway($this->denormalizer->denormalize($data['payment_gateway'], \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class, 'json', $context)); unset($data['payment_gateway']); } elseif (\array_key_exists('payment_gateway', $data) && null === $data['payment_gateway']) { $object->setPaymentGateway(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -292,8 +289,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -306,7 +301,7 @@ public function normalize($object, $format = null, array $context = []) $data['amount'] = $object->getAmount(); } if ($object->isInitialized('paidAt') && null !== $object->getPaidAt()) { - $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('paidDate') && null !== $object->getPaidDate()) { $data['paid_date'] = $object->getPaidDate()->format('Y-m-d'); @@ -327,10 +322,10 @@ public function normalize($object, $format = null, array $context = []) $data['payment_gateway'] = $this->normalizer->normalize($object->getPaymentGateway(), 'json', $context); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -343,7 +338,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicePayment' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicePayment::class => false]; } } } diff --git a/generated/Normalizer/InvoicePaymentPaymentGatewayNormalizer.php b/generated/Normalizer/InvoicePaymentPaymentGatewayNormalizer.php index ab07b5a..85fa8b2 100644 --- a/generated/Normalizer/InvoicePaymentPaymentGatewayNormalizer.php +++ b/generated/Normalizer/InvoicePaymentPaymentGatewayNormalizer.php @@ -32,12 +32,12 @@ class InvoicePaymentPaymentGatewayNormalizer implements DenormalizerInterface, N public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' === $type; + return \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class => false]; } } } else { @@ -106,17 +106,14 @@ class InvoicePaymentPaymentGatewayNormalizer implements DenormalizerInterface, N public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' === $type; + return \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class => false]; } } } diff --git a/generated/Normalizer/InvoicePaymentsNormalizer.php b/generated/Normalizer/InvoicePaymentsNormalizer.php index c746af6..346c802 100644 --- a/generated/Normalizer/InvoicePaymentsNormalizer.php +++ b/generated/Normalizer/InvoicePaymentsNormalizer.php @@ -32,12 +32,12 @@ class InvoicePaymentsNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' === $type; + return \JoliCode\Harvest\Api\Model\InvoicePayments::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicePayments::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('invoice_payments', $data)) { $values = []; foreach ($data['invoice_payments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoicePayment::class, 'json', $context); } $object->setInvoicePayments($values); unset($data['invoice_payments']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicePayments' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicePayments::class => false]; } } } else { @@ -140,17 +140,14 @@ class InvoicePaymentsNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' === $type; + return \JoliCode\Harvest\Api\Model\InvoicePayments::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicePayments::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('invoice_payments', $data)) { $values = []; foreach ($data['invoice_payments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoicePayment::class, 'json', $context); } $object->setInvoicePayments($values); unset($data['invoice_payments']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicePayments' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicePayments::class => false]; } } } diff --git a/generated/Normalizer/InvoiceRetainerNormalizer.php b/generated/Normalizer/InvoiceRetainerNormalizer.php index 5cd89ac..07161da 100644 --- a/generated/Normalizer/InvoiceRetainerNormalizer.php +++ b/generated/Normalizer/InvoiceRetainerNormalizer.php @@ -32,12 +32,12 @@ class InvoiceRetainerNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceRetainer::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceRetainer::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -84,7 +84,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceRetainer::class => false]; } } } else { @@ -97,17 +97,14 @@ class InvoiceRetainerNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' === $type; + return \JoliCode\Harvest\Api\Model\InvoiceRetainer::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoiceRetainer::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -136,8 +133,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -157,7 +152,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' => false]; + return [\JoliCode\Harvest\Api\Model\InvoiceRetainer::class => false]; } } } diff --git a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php index 2ae9ecf..20de216 100644 --- a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class InvoicesInvoiceIdMessagesPostBodyNormalizer implements DenormalizerInterfa public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -61,7 +61,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('recipients', $data) && null !== $data['recipients']) { $values = []; foreach ($data['recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class, 'json', $context); } $object->setRecipients($values); unset($data['recipients']); @@ -155,7 +155,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class => false]; } } } else { @@ -168,17 +168,14 @@ class InvoicesInvoiceIdMessagesPostBodyNormalizer implements DenormalizerInterfa public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('recipients', $data) && null !== $data['recipients']) { $values = []; foreach ($data['recipients'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class, 'json', $context); } $object->setRecipients($values); unset($data['recipients']); @@ -253,8 +250,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -299,7 +294,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class => false]; } } } diff --git a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer.php index 8b89f3e..7f51448 100644 --- a/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer.php @@ -32,12 +32,12 @@ class InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer implements Denor public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -87,7 +87,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class => false]; } } } else { @@ -100,17 +100,14 @@ class InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer implements Denor public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -141,8 +138,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -163,7 +158,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class => false]; } } } diff --git a/generated/Normalizer/InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer.php index 89a13f9..38093ea 100644 --- a/generated/Normalizer/InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer.php @@ -32,12 +32,12 @@ class InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer implements DenormalizerI public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -137,7 +137,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class => false]; } } } else { @@ -150,17 +150,14 @@ class InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -221,8 +218,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -263,7 +258,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class => false]; } } } diff --git a/generated/Normalizer/InvoicesInvoiceIdPatchBodyNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdPatchBodyNormalizer.php index 12739b9..dc13eaa 100644 --- a/generated/Normalizer/InvoicesInvoiceIdPatchBodyNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class InvoicesInvoiceIdPatchBodyNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -158,7 +158,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values_1 = []; foreach ($data['line_items'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class, 'json', $context); } $object->setLineItems($values_1); unset($data['line_items']); @@ -244,7 +244,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class => false]; } } } else { @@ -257,17 +257,14 @@ class InvoicesInvoiceIdPatchBodyNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -386,7 +383,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values_1 = []; foreach ($data['line_items'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class, 'json', $context); } $object->setLineItems($values_1); unset($data['line_items']); @@ -403,8 +400,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -477,7 +472,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/InvoicesInvoiceIdPaymentsPostBodyNormalizer.php b/generated/Normalizer/InvoicesInvoiceIdPaymentsPostBodyNormalizer.php index b6c720a..99a3eb6 100644 --- a/generated/Normalizer/InvoicesInvoiceIdPaymentsPostBodyNormalizer.php +++ b/generated/Normalizer/InvoicesInvoiceIdPaymentsPostBodyNormalizer.php @@ -32,12 +32,12 @@ class InvoicesInvoiceIdPaymentsPostBodyNormalizer implements DenormalizerInterfa public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -62,7 +62,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setAmount(null); } if (\array_key_exists('paid_at', $data) && null !== $data['paid_at']) { - $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['paid_at'])); + $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['paid_at'])); unset($data['paid_at']); } elseif (\array_key_exists('paid_at', $data) && null === $data['paid_at']) { $object->setPaidAt(null); @@ -99,7 +99,7 @@ public function normalize(mixed $object, ?string $format = null, array $context $data = []; $data['amount'] = $object->getAmount(); if ($object->isInitialized('paidAt') && null !== $object->getPaidAt()) { - $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('paidDate') && null !== $object->getPaidDate()) { $data['paid_date'] = $object->getPaidDate()->format('Y-m-d'); @@ -121,7 +121,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class => false]; } } } else { @@ -134,17 +134,14 @@ class InvoicesInvoiceIdPaymentsPostBodyNormalizer implements DenormalizerInterfa public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -167,7 +164,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setAmount(null); } if (\array_key_exists('paid_at', $data) && null !== $data['paid_at']) { - $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['paid_at'])); + $object->setPaidAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['paid_at'])); unset($data['paid_at']); } elseif (\array_key_exists('paid_at', $data) && null === $data['paid_at']) { $object->setPaidAt(null); @@ -200,8 +197,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -209,7 +204,7 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['amount'] = $object->getAmount(); if ($object->isInitialized('paidAt') && null !== $object->getPaidAt()) { - $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['paid_at'] = $object->getPaidAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('paidDate') && null !== $object->getPaidDate()) { $data['paid_date'] = $object->getPaidDate()->format('Y-m-d'); @@ -231,7 +226,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class => false]; } } } diff --git a/generated/Normalizer/InvoicesNormalizer.php b/generated/Normalizer/InvoicesNormalizer.php index 6bb76d2..b2f0c03 100644 --- a/generated/Normalizer/InvoicesNormalizer.php +++ b/generated/Normalizer/InvoicesNormalizer.php @@ -32,12 +32,12 @@ class InvoicesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Invoices' === $type; + return \JoliCode\Harvest\Api\Model\Invoices::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Invoices' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Invoices::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('invoices', $data)) { $values = []; foreach ($data['invoices'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Invoice', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Invoice::class, 'json', $context); } $object->setInvoices($values); unset($data['invoices']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Invoices' => false]; + return [\JoliCode\Harvest\Api\Model\Invoices::class => false]; } } } else { @@ -140,17 +140,14 @@ class InvoicesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Invoices' === $type; + return \JoliCode\Harvest\Api\Model\Invoices::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Invoices' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Invoices::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('invoices', $data)) { $values = []; foreach ($data['invoices'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Invoice', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Invoice::class, 'json', $context); } $object->setInvoices($values); unset($data['invoices']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Invoices' => false]; + return [\JoliCode\Harvest\Api\Model\Invoices::class => false]; } } } diff --git a/generated/Normalizer/InvoicesPostBodyLineItemsImportExpensesNormalizer.php b/generated/Normalizer/InvoicesPostBodyLineItemsImportExpensesNormalizer.php index fb277e1..bcea485 100644 --- a/generated/Normalizer/InvoicesPostBodyLineItemsImportExpensesNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyLineItemsImportExpensesNormalizer.php @@ -32,12 +32,12 @@ class InvoicesPostBodyLineItemsImportExpensesNormalizer implements DenormalizerI public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -82,10 +82,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data = []; $data['summary_type'] = $object->getSummaryType(); if ($object->isInitialized('from') && null !== $object->getFrom()) { - $data['from'] = $object->getFrom()->format('Y-m-d'); + $data['from'] = $object->getFrom()?->format('Y-m-d'); } if ($object->isInitialized('to') && null !== $object->getTo()) { - $data['to'] = $object->getTo()->format('Y-m-d'); + $data['to'] = $object->getTo()?->format('Y-m-d'); } if ($object->isInitialized('attachReceipt') && null !== $object->getAttachReceipt()) { $data['attach_receipt'] = $object->getAttachReceipt(); @@ -101,7 +101,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class => false]; } } } else { @@ -114,17 +114,14 @@ class InvoicesPostBodyLineItemsImportExpensesNormalizer implements DenormalizerI public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -163,8 +160,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -172,10 +167,10 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['summary_type'] = $object->getSummaryType(); if ($object->isInitialized('from') && null !== $object->getFrom()) { - $data['from'] = $object->getFrom()->format('Y-m-d'); + $data['from'] = $object->getFrom()?->format('Y-m-d'); } if ($object->isInitialized('to') && null !== $object->getTo()) { - $data['to'] = $object->getTo()->format('Y-m-d'); + $data['to'] = $object->getTo()?->format('Y-m-d'); } if ($object->isInitialized('attachReceipt') && null !== $object->getAttachReceipt()) { $data['attach_receipt'] = $object->getAttachReceipt(); @@ -191,7 +186,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class => false]; } } } diff --git a/generated/Normalizer/InvoicesPostBodyLineItemsImportNormalizer.php b/generated/Normalizer/InvoicesPostBodyLineItemsImportNormalizer.php index cc6c557..a92f1c9 100644 --- a/generated/Normalizer/InvoicesPostBodyLineItemsImportNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyLineItemsImportNormalizer.php @@ -32,12 +32,12 @@ class InvoicesPostBodyLineItemsImportNormalizer implements DenormalizerInterface public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -61,11 +61,11 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['project_ids']); } if (\array_key_exists('time', $data)) { - $object->setTime($this->denormalizer->denormalize($data['time'], 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime', 'json', $context)); + $object->setTime($this->denormalizer->denormalize($data['time'], \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class, 'json', $context)); unset($data['time']); } if (\array_key_exists('expenses', $data)) { - $object->setExpenses($this->denormalizer->denormalize($data['expenses'], 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses', 'json', $context)); + $object->setExpenses($this->denormalizer->denormalize($data['expenses'], \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class, 'json', $context)); unset($data['expenses']); } foreach ($data as $key => $value_1) { @@ -102,7 +102,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class => false]; } } } else { @@ -115,17 +115,14 @@ class InvoicesPostBodyLineItemsImportNormalizer implements DenormalizerInterface public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -147,11 +144,11 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['project_ids']); } if (\array_key_exists('time', $data)) { - $object->setTime($this->denormalizer->denormalize($data['time'], 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime', 'json', $context)); + $object->setTime($this->denormalizer->denormalize($data['time'], \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class, 'json', $context)); unset($data['time']); } if (\array_key_exists('expenses', $data)) { - $object->setExpenses($this->denormalizer->denormalize($data['expenses'], 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses', 'json', $context)); + $object->setExpenses($this->denormalizer->denormalize($data['expenses'], \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class, 'json', $context)); unset($data['expenses']); } foreach ($data as $key => $value_1) { @@ -164,8 +161,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -193,7 +188,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class => false]; } } } diff --git a/generated/Normalizer/InvoicesPostBodyLineItemsImportTimeNormalizer.php b/generated/Normalizer/InvoicesPostBodyLineItemsImportTimeNormalizer.php index e58e4d3..99042df 100644 --- a/generated/Normalizer/InvoicesPostBodyLineItemsImportTimeNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyLineItemsImportTimeNormalizer.php @@ -32,12 +32,12 @@ class InvoicesPostBodyLineItemsImportTimeNormalizer implements DenormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -78,10 +78,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data = []; $data['summary_type'] = $object->getSummaryType(); if ($object->isInitialized('from') && null !== $object->getFrom()) { - $data['from'] = $object->getFrom()->format('Y-m-d'); + $data['from'] = $object->getFrom()?->format('Y-m-d'); } if ($object->isInitialized('to') && null !== $object->getTo()) { - $data['to'] = $object->getTo()->format('Y-m-d'); + $data['to'] = $object->getTo()?->format('Y-m-d'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -94,7 +94,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class => false]; } } } else { @@ -107,17 +107,14 @@ class InvoicesPostBodyLineItemsImportTimeNormalizer implements DenormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -152,8 +149,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -161,10 +156,10 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['summary_type'] = $object->getSummaryType(); if ($object->isInitialized('from') && null !== $object->getFrom()) { - $data['from'] = $object->getFrom()->format('Y-m-d'); + $data['from'] = $object->getFrom()?->format('Y-m-d'); } if ($object->isInitialized('to') && null !== $object->getTo()) { - $data['to'] = $object->getTo()->format('Y-m-d'); + $data['to'] = $object->getTo()?->format('Y-m-d'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -177,7 +172,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class => false]; } } } diff --git a/generated/Normalizer/InvoicesPostBodyLineItemsItemNormalizer.php b/generated/Normalizer/InvoicesPostBodyLineItemsItemNormalizer.php index cefaad7..773a2c3 100644 --- a/generated/Normalizer/InvoicesPostBodyLineItemsItemNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyLineItemsItemNormalizer.php @@ -32,12 +32,12 @@ class InvoicesPostBodyLineItemsItemNormalizer implements DenormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -126,7 +126,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class => false]; } } } else { @@ -139,17 +139,14 @@ class InvoicesPostBodyLineItemsItemNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -206,8 +203,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -241,7 +236,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class => false]; } } } diff --git a/generated/Normalizer/InvoicesPostBodyNormalizer.php b/generated/Normalizer/InvoicesPostBodyNormalizer.php index 89f640d..ed446d5 100644 --- a/generated/Normalizer/InvoicesPostBodyNormalizer.php +++ b/generated/Normalizer/InvoicesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class InvoicesPostBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -150,7 +150,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setPaymentOptions(null); } if (\array_key_exists('line_items_import', $data) && null !== $data['line_items_import']) { - $object->setLineItemsImport($this->denormalizer->denormalize($data['line_items_import'], 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport', 'json', $context)); + $object->setLineItemsImport($this->denormalizer->denormalize($data['line_items_import'], \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class, 'json', $context)); unset($data['line_items_import']); } elseif (\array_key_exists('line_items_import', $data) && null === $data['line_items_import']) { $object->setLineItemsImport(null); @@ -164,7 +164,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values_1 = []; foreach ($data['line_items'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class, 'json', $context); } $object->setLineItems($values_1); unset($data['line_items']); @@ -251,7 +251,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBody::class => false]; } } } else { @@ -264,17 +264,14 @@ class InvoicesPostBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\InvoicesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\InvoicesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -385,7 +382,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setPaymentOptions(null); } if (\array_key_exists('line_items_import', $data) && null !== $data['line_items_import']) { - $object->setLineItemsImport($this->denormalizer->denormalize($data['line_items_import'], 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport', 'json', $context)); + $object->setLineItemsImport($this->denormalizer->denormalize($data['line_items_import'], \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class, 'json', $context)); unset($data['line_items_import']); } elseif (\array_key_exists('line_items_import', $data) && null === $data['line_items_import']) { $object->setLineItemsImport(null); @@ -399,7 +396,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('line_items', $data) && null !== $data['line_items']) { $values_1 = []; foreach ($data['line_items'] as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem', 'json', $context); + $values_1[] = $this->denormalizer->denormalize($value_1, \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class, 'json', $context); } $object->setLineItems($values_1); unset($data['line_items']); @@ -416,8 +413,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -491,7 +486,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\InvoicesPostBody::class => false]; } } } diff --git a/generated/Normalizer/JaneObjectNormalizer.php b/generated/Normalizer/JaneObjectNormalizer.php index 57f4788..d5ad78c 100644 --- a/generated/Normalizer/JaneObjectNormalizer.php +++ b/generated/Normalizer/JaneObjectNormalizer.php @@ -28,7 +28,293 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use ValidatorTrait; - protected $normalizers = ['JoliCode\\Harvest\\Api\\Model\\Contact' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ContactClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Client' => 'JoliCode\\Harvest\\Api\\Normalizer\\ClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Company' => 'JoliCode\\Harvest\\Api\\Normalizer\\CompanyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessageNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessageRecipientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicePaymentNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicePaymentPaymentGatewayNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Invoice' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceEstimateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceRetainerNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceCreatorNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceLineItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceLineItemProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceItemCategoryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateMessageNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateMessageRecipientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Estimate' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateCreatorNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateLineItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateItemCategoryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Expense' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseExpenseCategoryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseUserNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseReceiptNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseInvoiceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseCategoryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Task' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryUserNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryTaskNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryExternalReferenceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryInvoiceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserAssignmentNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserAssignmentProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserAssignmentUserNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskAssignmentNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskAssignmentProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskAssignmentTaskNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Project' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Role' => 'JoliCode\\Harvest\\Api\\Normalizer\\RoleNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Teammate' => 'JoliCode\\Harvest\\Api\\Normalizer\\TeammateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\BillableRate' => 'JoliCode\\Harvest\\Api\\Normalizer\\BillableRateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\CostRate' => 'JoliCode\\Harvest\\Api\\Normalizer\\CostRateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectAssignmentNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectAssignmentProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectAssignmentClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\User' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseReportsResultNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' => 'JoliCode\\Harvest\\Api\\Normalizer\\UninvoicedReportResultNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeReportsResultNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectBudgetReportResultNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Contacts' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Clients' => 'JoliCode\\Harvest\\Api\\Normalizer\\ClientsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Companies' => 'JoliCode\\Harvest\\Api\\Normalizer\\CompaniesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessagesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessageRecipientsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicePaymentsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Invoices' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceLineItemsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceItemCategoriesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateMessagesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateMessageRecipientsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Estimates' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateLineItemsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateItemCategoriesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Expenses' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpensesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseCategoriesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Tasks' => 'JoliCode\\Harvest\\Api\\Normalizer\\TasksNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserAssignmentsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskAssignmentsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Projects' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Roles' => 'JoliCode\\Harvest\\Api\\Normalizer\\RolesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Teammates' => 'JoliCode\\Harvest\\Api\\Normalizer\\TeammatesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\BillableRates' => 'JoliCode\\Harvest\\Api\\Normalizer\\BillableRatesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\CostRates' => 'JoliCode\\Harvest\\Api\\Normalizer\\CostRatesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectAssignmentsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Users' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseReportsResultsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' => 'JoliCode\\Harvest\\Api\\Normalizer\\UninvoicedReportResultsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeReportsResultsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectBudgetReportResultsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Error' => 'JoliCode\\Harvest\\Api\\Normalizer\\ErrorNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessageSubjectAndBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' => 'JoliCode\\Harvest\\Api\\Normalizer\\PaginationLinksNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' => 'JoliCode\\Harvest\\Api\\Normalizer\\TeammatesPatchResponseNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ClientsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ClientsClientIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\CompanyPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactsContactIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateItemCategoriesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesPostBodyLineItemsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesEstimateIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesEstimateIdPatchBodyLineItemsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesEstimateIdMessagesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseCategoriesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpensesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpensesExpenseIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceItemCategoriesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyLineItemsImportNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyLineItemsImportTimeNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyLineItemsImportExpensesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyLineItemsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdMessagesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdPaymentsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdTaskAssignmentsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdUserAssignmentsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\RolesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\RolesRoleIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\TasksPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\TasksTaskIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesPostBodyExternalReferenceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesTimeEntryIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersUserIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersUserIdBillableRatesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersUserIdCostRatesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersUserIdTeammatesPatchBodyNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\JoliCode\\Harvest\\Api\\Runtime\\Normalizer\\ReferenceNormalizer']; + protected $normalizers = [ + \JoliCode\Harvest\Api\Model\Contact::class => ContactNormalizer::class, + + \JoliCode\Harvest\Api\Model\ContactClient::class => ContactClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\Client::class => ClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\Company::class => CompanyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessage::class => InvoiceMessageNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class => InvoiceMessageRecipientNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicePayment::class => InvoicePaymentNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class => InvoicePaymentPaymentGatewayNormalizer::class, + + \JoliCode\Harvest\Api\Model\Invoice::class => InvoiceNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceClient::class => InvoiceClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceEstimate::class => InvoiceEstimateNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceRetainer::class => InvoiceRetainerNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceCreator::class => InvoiceCreatorNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceLineItem::class => InvoiceLineItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class => InvoiceLineItemProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class => InvoiceItemCategoryNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateMessage::class => EstimateMessageNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class => EstimateMessageRecipientNormalizer::class, + + \JoliCode\Harvest\Api\Model\Estimate::class => EstimateNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateClient::class => EstimateClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateCreator::class => EstimateCreatorNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateLineItem::class => EstimateLineItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateItemCategory::class => EstimateItemCategoryNormalizer::class, + + \JoliCode\Harvest\Api\Model\Expense::class => ExpenseNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseClient::class => ExpenseClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseProject::class => ExpenseProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class => ExpenseExpenseCategoryNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseUser::class => ExpenseUserNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseReceipt::class => ExpenseReceiptNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseInvoice::class => ExpenseInvoiceNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseCategory::class => ExpenseCategoryNormalizer::class, + + \JoliCode\Harvest\Api\Model\Task::class => TaskNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntry::class => TimeEntryNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryUser::class => TimeEntryUserNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryClient::class => TimeEntryClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryProject::class => TimeEntryProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryTask::class => TimeEntryTaskNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class => TimeEntryExternalReferenceNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class => TimeEntryInvoiceNormalizer::class, + + \JoliCode\Harvest\Api\Model\UserAssignment::class => UserAssignmentNormalizer::class, + + \JoliCode\Harvest\Api\Model\UserAssignmentProject::class => UserAssignmentProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\UserAssignmentUser::class => UserAssignmentUserNormalizer::class, + + \JoliCode\Harvest\Api\Model\TaskAssignment::class => TaskAssignmentNormalizer::class, + + \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class => TaskAssignmentProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class => TaskAssignmentTaskNormalizer::class, + + \JoliCode\Harvest\Api\Model\Project::class => ProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectClient::class => ProjectClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\Role::class => RoleNormalizer::class, + + \JoliCode\Harvest\Api\Model\Teammate::class => TeammateNormalizer::class, + + \JoliCode\Harvest\Api\Model\BillableRate::class => BillableRateNormalizer::class, + + \JoliCode\Harvest\Api\Model\CostRate::class => CostRateNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectAssignment::class => ProjectAssignmentNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class => ProjectAssignmentProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class => ProjectAssignmentClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\User::class => UserNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class => ExpenseReportsResultNormalizer::class, + + \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class => UninvoicedReportResultNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeReportsResult::class => TimeReportsResultNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class => ProjectBudgetReportResultNormalizer::class, + + \JoliCode\Harvest\Api\Model\Contacts::class => ContactsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Clients::class => ClientsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Companies::class => CompaniesNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessages::class => InvoiceMessagesNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class => InvoiceMessageRecipientsNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicePayments::class => InvoicePaymentsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Invoices::class => InvoicesNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceLineItems::class => InvoiceLineItemsNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceItemCategories::class => InvoiceItemCategoriesNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateMessages::class => EstimateMessagesNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class => EstimateMessageRecipientsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Estimates::class => EstimatesNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateLineItems::class => EstimateLineItemsNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateItemCategories::class => EstimateItemCategoriesNormalizer::class, + + \JoliCode\Harvest\Api\Model\Expenses::class => ExpensesNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseCategories::class => ExpenseCategoriesNormalizer::class, + + \JoliCode\Harvest\Api\Model\Tasks::class => TasksNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntries::class => TimeEntriesNormalizer::class, + + \JoliCode\Harvest\Api\Model\UserAssignments::class => UserAssignmentsNormalizer::class, + + \JoliCode\Harvest\Api\Model\TaskAssignments::class => TaskAssignmentsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Projects::class => ProjectsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Roles::class => RolesNormalizer::class, + + \JoliCode\Harvest\Api\Model\Teammates::class => TeammatesNormalizer::class, + + \JoliCode\Harvest\Api\Model\BillableRates::class => BillableRatesNormalizer::class, + + \JoliCode\Harvest\Api\Model\CostRates::class => CostRatesNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectAssignments::class => ProjectAssignmentsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Users::class => UsersNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseReportsResults::class => ExpenseReportsResultsNormalizer::class, + + \JoliCode\Harvest\Api\Model\UninvoicedReportResults::class => UninvoicedReportResultsNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeReportsResults::class => TimeReportsResultsNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class => ProjectBudgetReportResultsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Error::class => ErrorNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class => InvoiceMessageSubjectAndBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\PaginationLinks::class => PaginationLinksNormalizer::class, + + \JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class => TeammatesPatchResponseNormalizer::class, + + \JoliCode\Harvest\Api\Model\ClientsPostBody::class => ClientsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class => ClientsClientIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\CompanyPatchBody::class => CompanyPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ContactsPostBody::class => ContactsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class => ContactsContactIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class => EstimateItemCategoriesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class => EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesPostBody::class => EstimatesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class => EstimatesPostBodyLineItemsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class => EstimatesEstimateIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class => EstimatesEstimateIdPatchBodyLineItemsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class => EstimatesEstimateIdMessagesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class => EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class => ExpenseCategoriesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class => ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpensesPostBody::class => ExpensesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class => ExpensesExpenseIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class => InvoiceItemCategoriesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class => InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBody::class => InvoicesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class => InvoicesPostBodyLineItemsImportNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class => InvoicesPostBodyLineItemsImportTimeNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class => InvoicesPostBodyLineItemsImportExpensesNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class => InvoicesPostBodyLineItemsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class => InvoicesInvoiceIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class => InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class => InvoicesInvoiceIdMessagesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class => InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class => InvoicesInvoiceIdPaymentsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsPostBody::class => ProjectsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class => ProjectsProjectIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class => ProjectsProjectIdTaskAssignmentsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class => ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class => ProjectsProjectIdUserAssignmentsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class => ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\RolesPostBody::class => RolesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class => RolesRoleIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TasksPostBody::class => TasksPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class => TasksTaskIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class => TimeEntriesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class => TimeEntriesPostBodyExternalReferenceNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class => TimeEntriesTimeEntryIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class => TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersPostBody::class => UsersPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class => UsersUserIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class => UsersUserIdBillableRatesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class => UsersUserIdCostRatesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class => UsersUserIdTeammatesPatchBodyNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \JoliCode\Harvest\Api\Runtime\Normalizer\ReferenceNormalizer::class, + ]; protected $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool @@ -59,7 +345,151 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Contact' => false, 'JoliCode\\Harvest\\Api\\Model\\ContactClient' => false, 'JoliCode\\Harvest\\Api\\Model\\Client' => false, 'JoliCode\\Harvest\\Api\\Model\\Company' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' => false, 'JoliCode\\Harvest\\Api\\Model\\Invoice' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' => false, 'JoliCode\\Harvest\\Api\\Model\\Estimate' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\Expense' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\Task' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' => false, 'JoliCode\\Harvest\\Api\\Model\\Project' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' => false, 'JoliCode\\Harvest\\Api\\Model\\Role' => false, 'JoliCode\\Harvest\\Api\\Model\\Teammate' => false, 'JoliCode\\Harvest\\Api\\Model\\BillableRate' => false, 'JoliCode\\Harvest\\Api\\Model\\CostRate' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' => false, 'JoliCode\\Harvest\\Api\\Model\\User' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' => false, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' => false, 'JoliCode\\Harvest\\Api\\Model\\Contacts' => false, 'JoliCode\\Harvest\\Api\\Model\\Clients' => false, 'JoliCode\\Harvest\\Api\\Model\\Companies' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' => false, 'JoliCode\\Harvest\\Api\\Model\\Invoices' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' => false, 'JoliCode\\Harvest\\Api\\Model\\Estimates' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' => false, 'JoliCode\\Harvest\\Api\\Model\\Expenses' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' => false, 'JoliCode\\Harvest\\Api\\Model\\Tasks' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' => false, 'JoliCode\\Harvest\\Api\\Model\\Projects' => false, 'JoliCode\\Harvest\\Api\\Model\\Roles' => false, 'JoliCode\\Harvest\\Api\\Model\\Teammates' => false, 'JoliCode\\Harvest\\Api\\Model\\BillableRates' => false, 'JoliCode\\Harvest\\Api\\Model\\CostRates' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' => false, 'JoliCode\\Harvest\\Api\\Model\\Users' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' => false, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' => false, 'JoliCode\\Harvest\\Api\\Model\\Error' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' => false, 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' => false, 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' => false, 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false]; + return [ + \JoliCode\Harvest\Api\Model\Contact::class => false, + \JoliCode\Harvest\Api\Model\ContactClient::class => false, + \JoliCode\Harvest\Api\Model\Client::class => false, + \JoliCode\Harvest\Api\Model\Company::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessage::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class => false, + \JoliCode\Harvest\Api\Model\InvoicePayment::class => false, + \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class => false, + \JoliCode\Harvest\Api\Model\Invoice::class => false, + \JoliCode\Harvest\Api\Model\InvoiceClient::class => false, + \JoliCode\Harvest\Api\Model\InvoiceEstimate::class => false, + \JoliCode\Harvest\Api\Model\InvoiceRetainer::class => false, + \JoliCode\Harvest\Api\Model\InvoiceCreator::class => false, + \JoliCode\Harvest\Api\Model\InvoiceLineItem::class => false, + \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class => false, + \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class => false, + \JoliCode\Harvest\Api\Model\EstimateMessage::class => false, + \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class => false, + \JoliCode\Harvest\Api\Model\Estimate::class => false, + \JoliCode\Harvest\Api\Model\EstimateClient::class => false, + \JoliCode\Harvest\Api\Model\EstimateCreator::class => false, + \JoliCode\Harvest\Api\Model\EstimateLineItem::class => false, + \JoliCode\Harvest\Api\Model\EstimateItemCategory::class => false, + \JoliCode\Harvest\Api\Model\Expense::class => false, + \JoliCode\Harvest\Api\Model\ExpenseClient::class => false, + \JoliCode\Harvest\Api\Model\ExpenseProject::class => false, + \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class => false, + \JoliCode\Harvest\Api\Model\ExpenseUser::class => false, + \JoliCode\Harvest\Api\Model\ExpenseReceipt::class => false, + \JoliCode\Harvest\Api\Model\ExpenseInvoice::class => false, + \JoliCode\Harvest\Api\Model\ExpenseCategory::class => false, + \JoliCode\Harvest\Api\Model\Task::class => false, + \JoliCode\Harvest\Api\Model\TimeEntry::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryUser::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryClient::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryProject::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryTask::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class => false, + \JoliCode\Harvest\Api\Model\UserAssignment::class => false, + \JoliCode\Harvest\Api\Model\UserAssignmentProject::class => false, + \JoliCode\Harvest\Api\Model\UserAssignmentUser::class => false, + \JoliCode\Harvest\Api\Model\TaskAssignment::class => false, + \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class => false, + \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class => false, + \JoliCode\Harvest\Api\Model\Project::class => false, + \JoliCode\Harvest\Api\Model\ProjectClient::class => false, + \JoliCode\Harvest\Api\Model\Role::class => false, + \JoliCode\Harvest\Api\Model\Teammate::class => false, + \JoliCode\Harvest\Api\Model\BillableRate::class => false, + \JoliCode\Harvest\Api\Model\CostRate::class => false, + \JoliCode\Harvest\Api\Model\ProjectAssignment::class => false, + \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class => false, + \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class => false, + \JoliCode\Harvest\Api\Model\User::class => false, + \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class => false, + \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class => false, + \JoliCode\Harvest\Api\Model\TimeReportsResult::class => false, + \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class => false, + \JoliCode\Harvest\Api\Model\Contacts::class => false, + \JoliCode\Harvest\Api\Model\Clients::class => false, + \JoliCode\Harvest\Api\Model\Companies::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessages::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class => false, + \JoliCode\Harvest\Api\Model\InvoicePayments::class => false, + \JoliCode\Harvest\Api\Model\Invoices::class => false, + \JoliCode\Harvest\Api\Model\InvoiceLineItems::class => false, + \JoliCode\Harvest\Api\Model\InvoiceItemCategories::class => false, + \JoliCode\Harvest\Api\Model\EstimateMessages::class => false, + \JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class => false, + \JoliCode\Harvest\Api\Model\Estimates::class => false, + \JoliCode\Harvest\Api\Model\EstimateLineItems::class => false, + \JoliCode\Harvest\Api\Model\EstimateItemCategories::class => false, + \JoliCode\Harvest\Api\Model\Expenses::class => false, + \JoliCode\Harvest\Api\Model\ExpenseCategories::class => false, + \JoliCode\Harvest\Api\Model\Tasks::class => false, + \JoliCode\Harvest\Api\Model\TimeEntries::class => false, + \JoliCode\Harvest\Api\Model\UserAssignments::class => false, + \JoliCode\Harvest\Api\Model\TaskAssignments::class => false, + \JoliCode\Harvest\Api\Model\Projects::class => false, + \JoliCode\Harvest\Api\Model\Roles::class => false, + \JoliCode\Harvest\Api\Model\Teammates::class => false, + \JoliCode\Harvest\Api\Model\BillableRates::class => false, + \JoliCode\Harvest\Api\Model\CostRates::class => false, + \JoliCode\Harvest\Api\Model\ProjectAssignments::class => false, + \JoliCode\Harvest\Api\Model\Users::class => false, + \JoliCode\Harvest\Api\Model\ExpenseReportsResults::class => false, + \JoliCode\Harvest\Api\Model\UninvoicedReportResults::class => false, + \JoliCode\Harvest\Api\Model\TimeReportsResults::class => false, + \JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class => false, + \JoliCode\Harvest\Api\Model\Error::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class => false, + \JoliCode\Harvest\Api\Model\PaginationLinks::class => false, + \JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class => false, + \JoliCode\Harvest\Api\Model\ClientsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\CompanyPatchBody::class => false, + \JoliCode\Harvest\Api\Model\ContactsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class => false, + \JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\EstimatesPostBody::class => false, + \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class => false, + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class => false, + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class => false, + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class => false, + \JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class => false, + \JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\ExpensesPostBody::class => false, + \JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class => false, + \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBody::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\RolesPostBody::class => false, + \JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\TasksPostBody::class => false, + \JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class => false, + \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class => false, + \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class => false, + \JoliCode\Harvest\Api\Model\UsersPostBody::class => false, + \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class => false, + \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class => false, + \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class => false, + \Jane\Component\JsonSchemaRuntime\Reference::class => false, + ]; } private function getNormalizer(string $normalizerClass) @@ -84,7 +514,293 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use DenormalizerAwareTrait; use NormalizerAwareTrait; use ValidatorTrait; - protected $normalizers = ['JoliCode\\Harvest\\Api\\Model\\Contact' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ContactClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Client' => 'JoliCode\\Harvest\\Api\\Normalizer\\ClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Company' => 'JoliCode\\Harvest\\Api\\Normalizer\\CompanyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessageNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessageRecipientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicePaymentNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicePaymentPaymentGatewayNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Invoice' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceEstimateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceRetainerNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceCreatorNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceLineItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceLineItemProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceItemCategoryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateMessageNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateMessageRecipientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Estimate' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateCreatorNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateLineItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateItemCategoryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Expense' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseExpenseCategoryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseUserNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseReceiptNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseInvoiceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseCategoryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Task' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryUserNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryTaskNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryExternalReferenceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntryInvoiceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserAssignmentNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserAssignmentProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserAssignmentUserNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskAssignmentNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskAssignmentProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskAssignmentTaskNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Project' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Role' => 'JoliCode\\Harvest\\Api\\Normalizer\\RoleNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Teammate' => 'JoliCode\\Harvest\\Api\\Normalizer\\TeammateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\BillableRate' => 'JoliCode\\Harvest\\Api\\Normalizer\\BillableRateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\CostRate' => 'JoliCode\\Harvest\\Api\\Normalizer\\CostRateNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectAssignmentNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectAssignmentProjectNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectAssignmentClientNormalizer', 'JoliCode\\Harvest\\Api\\Model\\User' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseReportsResultNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' => 'JoliCode\\Harvest\\Api\\Normalizer\\UninvoicedReportResultNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeReportsResultNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectBudgetReportResultNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Contacts' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Clients' => 'JoliCode\\Harvest\\Api\\Normalizer\\ClientsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Companies' => 'JoliCode\\Harvest\\Api\\Normalizer\\CompaniesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessagesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessageRecipientsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicePaymentsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Invoices' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceLineItemsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceItemCategoriesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateMessagesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateMessageRecipientsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Estimates' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateLineItemsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateItemCategoriesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Expenses' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpensesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseCategoriesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Tasks' => 'JoliCode\\Harvest\\Api\\Normalizer\\TasksNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' => 'JoliCode\\Harvest\\Api\\Normalizer\\UserAssignmentsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' => 'JoliCode\\Harvest\\Api\\Normalizer\\TaskAssignmentsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Projects' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Roles' => 'JoliCode\\Harvest\\Api\\Normalizer\\RolesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Teammates' => 'JoliCode\\Harvest\\Api\\Normalizer\\TeammatesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\BillableRates' => 'JoliCode\\Harvest\\Api\\Normalizer\\BillableRatesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\CostRates' => 'JoliCode\\Harvest\\Api\\Normalizer\\CostRatesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectAssignmentsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Users' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseReportsResultsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' => 'JoliCode\\Harvest\\Api\\Normalizer\\UninvoicedReportResultsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeReportsResultsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectBudgetReportResultsNormalizer', 'JoliCode\\Harvest\\Api\\Model\\Error' => 'JoliCode\\Harvest\\Api\\Normalizer\\ErrorNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceMessageSubjectAndBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' => 'JoliCode\\Harvest\\Api\\Normalizer\\PaginationLinksNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' => 'JoliCode\\Harvest\\Api\\Normalizer\\TeammatesPatchResponseNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ClientsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ClientsClientIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\CompanyPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ContactsContactIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateItemCategoriesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesPostBodyLineItemsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesEstimateIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesEstimateIdPatchBodyLineItemsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesEstimateIdMessagesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseCategoriesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpensesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ExpensesExpenseIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceItemCategoriesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyLineItemsImportNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyLineItemsImportTimeNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyLineItemsImportExpensesNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesPostBodyLineItemsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdMessagesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer', 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\InvoicesInvoiceIdPaymentsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdTaskAssignmentsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdUserAssignmentsPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\RolesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\RolesRoleIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\TasksPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\TasksTaskIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesPostBodyExternalReferenceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesTimeEntryIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' => 'JoliCode\\Harvest\\Api\\Normalizer\\TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersUserIdPatchBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersUserIdBillableRatesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersUserIdCostRatesPostBodyNormalizer', 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' => 'JoliCode\\Harvest\\Api\\Normalizer\\UsersUserIdTeammatesPatchBodyNormalizer', '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => '\\JoliCode\\Harvest\\Api\\Runtime\\Normalizer\\ReferenceNormalizer']; + protected $normalizers = [ + \JoliCode\Harvest\Api\Model\Contact::class => ContactNormalizer::class, + + \JoliCode\Harvest\Api\Model\ContactClient::class => ContactClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\Client::class => ClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\Company::class => CompanyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessage::class => InvoiceMessageNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class => InvoiceMessageRecipientNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicePayment::class => InvoicePaymentNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class => InvoicePaymentPaymentGatewayNormalizer::class, + + \JoliCode\Harvest\Api\Model\Invoice::class => InvoiceNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceClient::class => InvoiceClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceEstimate::class => InvoiceEstimateNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceRetainer::class => InvoiceRetainerNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceCreator::class => InvoiceCreatorNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceLineItem::class => InvoiceLineItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class => InvoiceLineItemProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class => InvoiceItemCategoryNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateMessage::class => EstimateMessageNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class => EstimateMessageRecipientNormalizer::class, + + \JoliCode\Harvest\Api\Model\Estimate::class => EstimateNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateClient::class => EstimateClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateCreator::class => EstimateCreatorNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateLineItem::class => EstimateLineItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateItemCategory::class => EstimateItemCategoryNormalizer::class, + + \JoliCode\Harvest\Api\Model\Expense::class => ExpenseNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseClient::class => ExpenseClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseProject::class => ExpenseProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class => ExpenseExpenseCategoryNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseUser::class => ExpenseUserNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseReceipt::class => ExpenseReceiptNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseInvoice::class => ExpenseInvoiceNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseCategory::class => ExpenseCategoryNormalizer::class, + + \JoliCode\Harvest\Api\Model\Task::class => TaskNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntry::class => TimeEntryNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryUser::class => TimeEntryUserNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryClient::class => TimeEntryClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryProject::class => TimeEntryProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryTask::class => TimeEntryTaskNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class => TimeEntryExternalReferenceNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class => TimeEntryInvoiceNormalizer::class, + + \JoliCode\Harvest\Api\Model\UserAssignment::class => UserAssignmentNormalizer::class, + + \JoliCode\Harvest\Api\Model\UserAssignmentProject::class => UserAssignmentProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\UserAssignmentUser::class => UserAssignmentUserNormalizer::class, + + \JoliCode\Harvest\Api\Model\TaskAssignment::class => TaskAssignmentNormalizer::class, + + \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class => TaskAssignmentProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class => TaskAssignmentTaskNormalizer::class, + + \JoliCode\Harvest\Api\Model\Project::class => ProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectClient::class => ProjectClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\Role::class => RoleNormalizer::class, + + \JoliCode\Harvest\Api\Model\Teammate::class => TeammateNormalizer::class, + + \JoliCode\Harvest\Api\Model\BillableRate::class => BillableRateNormalizer::class, + + \JoliCode\Harvest\Api\Model\CostRate::class => CostRateNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectAssignment::class => ProjectAssignmentNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class => ProjectAssignmentProjectNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class => ProjectAssignmentClientNormalizer::class, + + \JoliCode\Harvest\Api\Model\User::class => UserNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class => ExpenseReportsResultNormalizer::class, + + \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class => UninvoicedReportResultNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeReportsResult::class => TimeReportsResultNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class => ProjectBudgetReportResultNormalizer::class, + + \JoliCode\Harvest\Api\Model\Contacts::class => ContactsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Clients::class => ClientsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Companies::class => CompaniesNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessages::class => InvoiceMessagesNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class => InvoiceMessageRecipientsNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicePayments::class => InvoicePaymentsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Invoices::class => InvoicesNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceLineItems::class => InvoiceLineItemsNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceItemCategories::class => InvoiceItemCategoriesNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateMessages::class => EstimateMessagesNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class => EstimateMessageRecipientsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Estimates::class => EstimatesNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateLineItems::class => EstimateLineItemsNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateItemCategories::class => EstimateItemCategoriesNormalizer::class, + + \JoliCode\Harvest\Api\Model\Expenses::class => ExpensesNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseCategories::class => ExpenseCategoriesNormalizer::class, + + \JoliCode\Harvest\Api\Model\Tasks::class => TasksNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntries::class => TimeEntriesNormalizer::class, + + \JoliCode\Harvest\Api\Model\UserAssignments::class => UserAssignmentsNormalizer::class, + + \JoliCode\Harvest\Api\Model\TaskAssignments::class => TaskAssignmentsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Projects::class => ProjectsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Roles::class => RolesNormalizer::class, + + \JoliCode\Harvest\Api\Model\Teammates::class => TeammatesNormalizer::class, + + \JoliCode\Harvest\Api\Model\BillableRates::class => BillableRatesNormalizer::class, + + \JoliCode\Harvest\Api\Model\CostRates::class => CostRatesNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectAssignments::class => ProjectAssignmentsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Users::class => UsersNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseReportsResults::class => ExpenseReportsResultsNormalizer::class, + + \JoliCode\Harvest\Api\Model\UninvoicedReportResults::class => UninvoicedReportResultsNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeReportsResults::class => TimeReportsResultsNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class => ProjectBudgetReportResultsNormalizer::class, + + \JoliCode\Harvest\Api\Model\Error::class => ErrorNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class => InvoiceMessageSubjectAndBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\PaginationLinks::class => PaginationLinksNormalizer::class, + + \JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class => TeammatesPatchResponseNormalizer::class, + + \JoliCode\Harvest\Api\Model\ClientsPostBody::class => ClientsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class => ClientsClientIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\CompanyPatchBody::class => CompanyPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ContactsPostBody::class => ContactsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class => ContactsContactIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class => EstimateItemCategoriesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class => EstimateItemCategoriesEstimateItemCategoryIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesPostBody::class => EstimatesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class => EstimatesPostBodyLineItemsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class => EstimatesEstimateIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class => EstimatesEstimateIdPatchBodyLineItemsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class => EstimatesEstimateIdMessagesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class => EstimatesEstimateIdMessagesPostBodyRecipientsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class => ExpenseCategoriesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class => ExpenseCategoriesExpenseCategoryIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpensesPostBody::class => ExpensesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class => ExpensesExpenseIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class => InvoiceItemCategoriesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class => InvoiceItemCategoriesInvoiceItemCategoryIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBody::class => InvoicesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class => InvoicesPostBodyLineItemsImportNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class => InvoicesPostBodyLineItemsImportTimeNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class => InvoicesPostBodyLineItemsImportExpensesNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class => InvoicesPostBodyLineItemsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class => InvoicesInvoiceIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class => InvoicesInvoiceIdPatchBodyLineItemsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class => InvoicesInvoiceIdMessagesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class => InvoicesInvoiceIdMessagesPostBodyRecipientsItemNormalizer::class, + + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class => InvoicesInvoiceIdPaymentsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsPostBody::class => ProjectsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class => ProjectsProjectIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class => ProjectsProjectIdTaskAssignmentsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class => ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class => ProjectsProjectIdUserAssignmentsPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class => ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\RolesPostBody::class => RolesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class => RolesRoleIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TasksPostBody::class => TasksPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class => TasksTaskIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class => TimeEntriesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class => TimeEntriesPostBodyExternalReferenceNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class => TimeEntriesTimeEntryIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class => TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersPostBody::class => UsersPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class => UsersUserIdPatchBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class => UsersUserIdBillableRatesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class => UsersUserIdCostRatesPostBodyNormalizer::class, + + \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class => UsersUserIdTeammatesPatchBodyNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \JoliCode\Harvest\Api\Runtime\Normalizer\ReferenceNormalizer::class, + ]; protected $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool @@ -98,8 +814,6 @@ public function supportsNormalization($data, $format = null, array $context = [] } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -110,9 +824,6 @@ public function normalize($object, $format = null, array $context = []) return $normalizer->normalize($object, $format, $context); } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { $denormalizerClass = $this->normalizers[$type]; @@ -123,7 +834,151 @@ public function denormalize($data, $type, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Contact' => false, 'JoliCode\\Harvest\\Api\\Model\\ContactClient' => false, 'JoliCode\\Harvest\\Api\\Model\\Client' => false, 'JoliCode\\Harvest\\Api\\Model\\Company' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessage' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipient' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayment' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicePaymentPaymentGateway' => false, 'JoliCode\\Harvest\\Api\\Model\\Invoice' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceClient' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceEstimate' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceRetainer' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceCreator' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItemProject' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessage' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipient' => false, 'JoliCode\\Harvest\\Api\\Model\\Estimate' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateClient' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateCreator' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItem' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\Expense' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseClient' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseProject' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseExpenseCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseUser' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReceipt' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseInvoice' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategory' => false, 'JoliCode\\Harvest\\Api\\Model\\Task' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' => false, 'JoliCode\\Harvest\\Api\\Model\\Project' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' => false, 'JoliCode\\Harvest\\Api\\Model\\Role' => false, 'JoliCode\\Harvest\\Api\\Model\\Teammate' => false, 'JoliCode\\Harvest\\Api\\Model\\BillableRate' => false, 'JoliCode\\Harvest\\Api\\Model\\CostRate' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' => false, 'JoliCode\\Harvest\\Api\\Model\\User' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult' => false, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' => false, 'JoliCode\\Harvest\\Api\\Model\\Contacts' => false, 'JoliCode\\Harvest\\Api\\Model\\Clients' => false, 'JoliCode\\Harvest\\Api\\Model\\Companies' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessages' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageRecipients' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicePayments' => false, 'JoliCode\\Harvest\\Api\\Model\\Invoices' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceLineItems' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategories' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessages' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateMessageRecipients' => false, 'JoliCode\\Harvest\\Api\\Model\\Estimates' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateLineItems' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategories' => false, 'JoliCode\\Harvest\\Api\\Model\\Expenses' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategories' => false, 'JoliCode\\Harvest\\Api\\Model\\Tasks' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' => false, 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' => false, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' => false, 'JoliCode\\Harvest\\Api\\Model\\Projects' => false, 'JoliCode\\Harvest\\Api\\Model\\Roles' => false, 'JoliCode\\Harvest\\Api\\Model\\Teammates' => false, 'JoliCode\\Harvest\\Api\\Model\\BillableRates' => false, 'JoliCode\\Harvest\\Api\\Model\\CostRates' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' => false, 'JoliCode\\Harvest\\Api\\Model\\Users' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults' => false, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' => false, 'JoliCode\\Harvest\\Api\\Model\\Error' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceMessageSubjectAndBody' => false, 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' => false, 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' => false, 'JoliCode\\Harvest\\Api\\Model\\ClientsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ClientsClientIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\CompanyPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ContactsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ContactsContactIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimateItemCategoriesEstimateItemCategoryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesPostBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdPatchBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\EstimatesEstimateIdMessagesPostBodyRecipientsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpenseCategoriesExpenseCategoryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpensesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ExpensesExpenseIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImport' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportTime' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsImportExpenses' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesPostBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPatchBodyLineItemsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdMessagesPostBodyRecipientsItem' => false, 'JoliCode\\Harvest\\Api\\Model\\InvoicesInvoiceIdPaymentsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' => false, 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' => false, '\\Jane\\Component\\JsonSchemaRuntime\\Reference' => false]; + return [ + \JoliCode\Harvest\Api\Model\Contact::class => false, + \JoliCode\Harvest\Api\Model\ContactClient::class => false, + \JoliCode\Harvest\Api\Model\Client::class => false, + \JoliCode\Harvest\Api\Model\Company::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessage::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessageRecipient::class => false, + \JoliCode\Harvest\Api\Model\InvoicePayment::class => false, + \JoliCode\Harvest\Api\Model\InvoicePaymentPaymentGateway::class => false, + \JoliCode\Harvest\Api\Model\Invoice::class => false, + \JoliCode\Harvest\Api\Model\InvoiceClient::class => false, + \JoliCode\Harvest\Api\Model\InvoiceEstimate::class => false, + \JoliCode\Harvest\Api\Model\InvoiceRetainer::class => false, + \JoliCode\Harvest\Api\Model\InvoiceCreator::class => false, + \JoliCode\Harvest\Api\Model\InvoiceLineItem::class => false, + \JoliCode\Harvest\Api\Model\InvoiceLineItemProject::class => false, + \JoliCode\Harvest\Api\Model\InvoiceItemCategory::class => false, + \JoliCode\Harvest\Api\Model\EstimateMessage::class => false, + \JoliCode\Harvest\Api\Model\EstimateMessageRecipient::class => false, + \JoliCode\Harvest\Api\Model\Estimate::class => false, + \JoliCode\Harvest\Api\Model\EstimateClient::class => false, + \JoliCode\Harvest\Api\Model\EstimateCreator::class => false, + \JoliCode\Harvest\Api\Model\EstimateLineItem::class => false, + \JoliCode\Harvest\Api\Model\EstimateItemCategory::class => false, + \JoliCode\Harvest\Api\Model\Expense::class => false, + \JoliCode\Harvest\Api\Model\ExpenseClient::class => false, + \JoliCode\Harvest\Api\Model\ExpenseProject::class => false, + \JoliCode\Harvest\Api\Model\ExpenseExpenseCategory::class => false, + \JoliCode\Harvest\Api\Model\ExpenseUser::class => false, + \JoliCode\Harvest\Api\Model\ExpenseReceipt::class => false, + \JoliCode\Harvest\Api\Model\ExpenseInvoice::class => false, + \JoliCode\Harvest\Api\Model\ExpenseCategory::class => false, + \JoliCode\Harvest\Api\Model\Task::class => false, + \JoliCode\Harvest\Api\Model\TimeEntry::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryUser::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryClient::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryProject::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryTask::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class => false, + \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class => false, + \JoliCode\Harvest\Api\Model\UserAssignment::class => false, + \JoliCode\Harvest\Api\Model\UserAssignmentProject::class => false, + \JoliCode\Harvest\Api\Model\UserAssignmentUser::class => false, + \JoliCode\Harvest\Api\Model\TaskAssignment::class => false, + \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class => false, + \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class => false, + \JoliCode\Harvest\Api\Model\Project::class => false, + \JoliCode\Harvest\Api\Model\ProjectClient::class => false, + \JoliCode\Harvest\Api\Model\Role::class => false, + \JoliCode\Harvest\Api\Model\Teammate::class => false, + \JoliCode\Harvest\Api\Model\BillableRate::class => false, + \JoliCode\Harvest\Api\Model\CostRate::class => false, + \JoliCode\Harvest\Api\Model\ProjectAssignment::class => false, + \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class => false, + \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class => false, + \JoliCode\Harvest\Api\Model\User::class => false, + \JoliCode\Harvest\Api\Model\ExpenseReportsResult::class => false, + \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class => false, + \JoliCode\Harvest\Api\Model\TimeReportsResult::class => false, + \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class => false, + \JoliCode\Harvest\Api\Model\Contacts::class => false, + \JoliCode\Harvest\Api\Model\Clients::class => false, + \JoliCode\Harvest\Api\Model\Companies::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessages::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessageRecipients::class => false, + \JoliCode\Harvest\Api\Model\InvoicePayments::class => false, + \JoliCode\Harvest\Api\Model\Invoices::class => false, + \JoliCode\Harvest\Api\Model\InvoiceLineItems::class => false, + \JoliCode\Harvest\Api\Model\InvoiceItemCategories::class => false, + \JoliCode\Harvest\Api\Model\EstimateMessages::class => false, + \JoliCode\Harvest\Api\Model\EstimateMessageRecipients::class => false, + \JoliCode\Harvest\Api\Model\Estimates::class => false, + \JoliCode\Harvest\Api\Model\EstimateLineItems::class => false, + \JoliCode\Harvest\Api\Model\EstimateItemCategories::class => false, + \JoliCode\Harvest\Api\Model\Expenses::class => false, + \JoliCode\Harvest\Api\Model\ExpenseCategories::class => false, + \JoliCode\Harvest\Api\Model\Tasks::class => false, + \JoliCode\Harvest\Api\Model\TimeEntries::class => false, + \JoliCode\Harvest\Api\Model\UserAssignments::class => false, + \JoliCode\Harvest\Api\Model\TaskAssignments::class => false, + \JoliCode\Harvest\Api\Model\Projects::class => false, + \JoliCode\Harvest\Api\Model\Roles::class => false, + \JoliCode\Harvest\Api\Model\Teammates::class => false, + \JoliCode\Harvest\Api\Model\BillableRates::class => false, + \JoliCode\Harvest\Api\Model\CostRates::class => false, + \JoliCode\Harvest\Api\Model\ProjectAssignments::class => false, + \JoliCode\Harvest\Api\Model\Users::class => false, + \JoliCode\Harvest\Api\Model\ExpenseReportsResults::class => false, + \JoliCode\Harvest\Api\Model\UninvoicedReportResults::class => false, + \JoliCode\Harvest\Api\Model\TimeReportsResults::class => false, + \JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class => false, + \JoliCode\Harvest\Api\Model\Error::class => false, + \JoliCode\Harvest\Api\Model\InvoiceMessageSubjectAndBody::class => false, + \JoliCode\Harvest\Api\Model\PaginationLinks::class => false, + \JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class => false, + \JoliCode\Harvest\Api\Model\ClientsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ClientsClientIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\CompanyPatchBody::class => false, + \JoliCode\Harvest\Api\Model\ContactsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ContactsContactIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\EstimateItemCategoriesPostBody::class => false, + \JoliCode\Harvest\Api\Model\EstimateItemCategoriesEstimateItemCategoryIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\EstimatesPostBody::class => false, + \JoliCode\Harvest\Api\Model\EstimatesPostBodyLineItemsItem::class => false, + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdPatchBodyLineItemsItem::class => false, + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBody::class => false, + \JoliCode\Harvest\Api\Model\EstimatesEstimateIdMessagesPostBodyRecipientsItem::class => false, + \JoliCode\Harvest\Api\Model\ExpenseCategoriesPostBody::class => false, + \JoliCode\Harvest\Api\Model\ExpenseCategoriesExpenseCategoryIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\ExpensesPostBody::class => false, + \JoliCode\Harvest\Api\Model\ExpensesExpenseIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesPostBody::class => false, + \JoliCode\Harvest\Api\Model\InvoiceItemCategoriesInvoiceItemCategoryIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBody::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImport::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportTime::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsImportExpenses::class => false, + \JoliCode\Harvest\Api\Model\InvoicesPostBodyLineItemsItem::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPatchBodyLineItemsItem::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBody::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdMessagesPostBodyRecipientsItem::class => false, + \JoliCode\Harvest\Api\Model\InvoicesInvoiceIdPaymentsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class => false, + \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\RolesPostBody::class => false, + \JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\TasksPostBody::class => false, + \JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class => false, + \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class => false, + \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class => false, + \JoliCode\Harvest\Api\Model\UsersPostBody::class => false, + \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class => false, + \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class => false, + \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class => false, + \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class => false, + \Jane\Component\JsonSchemaRuntime\Reference::class => false, + ]; } private function getNormalizer(string $normalizerClass) diff --git a/generated/Normalizer/PaginationLinksNormalizer.php b/generated/Normalizer/PaginationLinksNormalizer.php index 414f6ad..2db9a34 100644 --- a/generated/Normalizer/PaginationLinksNormalizer.php +++ b/generated/Normalizer/PaginationLinksNormalizer.php @@ -32,12 +32,12 @@ class PaginationLinksNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' === $type; + return \JoliCode\Harvest\Api\Model\PaginationLinks::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\PaginationLinks::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -103,7 +103,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\PaginationLinks' => false]; + return [\JoliCode\Harvest\Api\Model\PaginationLinks::class => false]; } } } else { @@ -116,17 +116,14 @@ class PaginationLinksNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' === $type; + return \JoliCode\Harvest\Api\Model\PaginationLinks::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\PaginationLinks::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -169,8 +166,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -195,7 +190,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\PaginationLinks' => false]; + return [\JoliCode\Harvest\Api\Model\PaginationLinks::class => false]; } } } diff --git a/generated/Normalizer/ProjectAssignmentClientNormalizer.php b/generated/Normalizer/ProjectAssignmentClientNormalizer.php index 42b948a..60753cf 100644 --- a/generated/Normalizer/ProjectAssignmentClientNormalizer.php +++ b/generated/Normalizer/ProjectAssignmentClientNormalizer.php @@ -32,12 +32,12 @@ class ProjectAssignmentClientNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' === $type; + return \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class => false]; } } } else { @@ -106,17 +106,14 @@ class ProjectAssignmentClientNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' === $type; + return \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class => false]; } } } diff --git a/generated/Normalizer/ProjectAssignmentNormalizer.php b/generated/Normalizer/ProjectAssignmentNormalizer.php index c8c7396..4363674 100644 --- a/generated/Normalizer/ProjectAssignmentNormalizer.php +++ b/generated/Normalizer/ProjectAssignmentNormalizer.php @@ -32,12 +32,12 @@ class ProjectAssignmentNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' === $type; + return \JoliCode\Harvest\Api\Model\ProjectAssignment::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectAssignment::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -95,25 +95,25 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setBudget(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -121,7 +121,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('task_assignments', $data) && null !== $data['task_assignments']) { $values = []; foreach ($data['task_assignments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\TaskAssignment::class, 'json', $context); } $object->setTaskAssignments($values); unset($data['task_assignments']); @@ -159,10 +159,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['budget'] = $object->getBudget(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('project') && null !== $object->getProject()) { $data['project'] = $this->normalizer->normalize($object->getProject(), 'json', $context); @@ -188,7 +188,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectAssignment::class => false]; } } } else { @@ -201,17 +201,14 @@ class ProjectAssignmentNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' === $type; + return \JoliCode\Harvest\Api\Model\ProjectAssignment::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectAssignment::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -267,25 +264,25 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setBudget(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\ProjectAssignmentClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -293,7 +290,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('task_assignments', $data) && null !== $data['task_assignments']) { $values = []; foreach ($data['task_assignments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\TaskAssignment::class, 'json', $context); } $object->setTaskAssignments($values); unset($data['task_assignments']); @@ -310,8 +307,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -336,10 +331,10 @@ public function normalize($object, $format = null, array $context = []) $data['budget'] = $object->getBudget(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('project') && null !== $object->getProject()) { $data['project'] = $this->normalizer->normalize($object->getProject(), 'json', $context); @@ -365,7 +360,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignment' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectAssignment::class => false]; } } } diff --git a/generated/Normalizer/ProjectAssignmentProjectNormalizer.php b/generated/Normalizer/ProjectAssignmentProjectNormalizer.php index 979557c..d0397c7 100644 --- a/generated/Normalizer/ProjectAssignmentProjectNormalizer.php +++ b/generated/Normalizer/ProjectAssignmentProjectNormalizer.php @@ -32,12 +32,12 @@ class ProjectAssignmentProjectNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' === $type; + return \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -102,7 +102,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class => false]; } } } else { @@ -115,17 +115,14 @@ class ProjectAssignmentProjectNormalizer implements DenormalizerInterface, Norma public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' === $type; + return \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,8 +163,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -193,7 +188,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignmentProject' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectAssignmentProject::class => false]; } } } diff --git a/generated/Normalizer/ProjectAssignmentsNormalizer.php b/generated/Normalizer/ProjectAssignmentsNormalizer.php index ce308bd..990dd85 100644 --- a/generated/Normalizer/ProjectAssignmentsNormalizer.php +++ b/generated/Normalizer/ProjectAssignmentsNormalizer.php @@ -32,12 +32,12 @@ class ProjectAssignmentsNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' === $type; + return \JoliCode\Harvest\Api\Model\ProjectAssignments::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectAssignments::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('project_assignments', $data)) { $values = []; foreach ($data['project_assignments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\ProjectAssignment::class, 'json', $context); } $object->setProjectAssignments($values); unset($data['project_assignments']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectAssignments::class => false]; } } } else { @@ -140,17 +140,14 @@ class ProjectAssignmentsNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' === $type; + return \JoliCode\Harvest\Api\Model\ProjectAssignments::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectAssignments::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('project_assignments', $data)) { $values = []; foreach ($data['project_assignments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\ProjectAssignment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\ProjectAssignment::class, 'json', $context); } $object->setProjectAssignments($values); unset($data['project_assignments']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectAssignments' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectAssignments::class => false]; } } } diff --git a/generated/Normalizer/ProjectBudgetReportResultNormalizer.php b/generated/Normalizer/ProjectBudgetReportResultNormalizer.php index 3fb533b..ad7ceb2 100644 --- a/generated/Normalizer/ProjectBudgetReportResultNormalizer.php +++ b/generated/Normalizer/ProjectBudgetReportResultNormalizer.php @@ -32,12 +32,12 @@ class ProjectBudgetReportResultNormalizer implements DenormalizerInterface, Norm public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' === $type; + return \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -174,7 +174,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class => false]; } } } else { @@ -187,17 +187,14 @@ class ProjectBudgetReportResultNormalizer implements DenormalizerInterface, Norm public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' === $type; + return \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -289,8 +286,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -337,7 +332,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class => false]; } } } diff --git a/generated/Normalizer/ProjectBudgetReportResultsNormalizer.php b/generated/Normalizer/ProjectBudgetReportResultsNormalizer.php index 6316932..88b89b3 100644 --- a/generated/Normalizer/ProjectBudgetReportResultsNormalizer.php +++ b/generated/Normalizer/ProjectBudgetReportResultsNormalizer.php @@ -32,12 +32,12 @@ class ProjectBudgetReportResultsNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' === $type; + return \JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class => false]; } } } else { @@ -140,17 +140,14 @@ class ProjectBudgetReportResultsNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' === $type; + return \JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\ProjectBudgetReportResult::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectBudgetReportResults::class => false]; } } } diff --git a/generated/Normalizer/ProjectClientNormalizer.php b/generated/Normalizer/ProjectClientNormalizer.php index 69fe30d..22ca60c 100644 --- a/generated/Normalizer/ProjectClientNormalizer.php +++ b/generated/Normalizer/ProjectClientNormalizer.php @@ -32,12 +32,12 @@ class ProjectClientNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' === $type; + return \JoliCode\Harvest\Api\Model\ProjectClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectClient::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -102,7 +102,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectClient' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectClient::class => false]; } } } else { @@ -115,17 +115,14 @@ class ProjectClientNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' === $type; + return \JoliCode\Harvest\Api\Model\ProjectClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectClient::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,8 +163,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -193,7 +188,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectClient' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectClient::class => false]; } } } diff --git a/generated/Normalizer/ProjectNormalizer.php b/generated/Normalizer/ProjectNormalizer.php index fca7918..e75e7d9 100644 --- a/generated/Normalizer/ProjectNormalizer.php +++ b/generated/Normalizer/ProjectNormalizer.php @@ -32,12 +32,12 @@ class ProjectNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Project' === $type; + return \JoliCode\Harvest\Api\Model\Project::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Project' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Project::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -74,7 +74,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\ProjectClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\ProjectClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -200,13 +200,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setEndsOn(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -290,10 +290,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['ends_on'] = $object->getEndsOn()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -306,7 +306,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Project' => false]; + return [\JoliCode\Harvest\Api\Model\Project::class => false]; } } } else { @@ -319,17 +319,14 @@ class ProjectNormalizer implements DenormalizerInterface, NormalizerInterface, D public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Project' === $type; + return \JoliCode\Harvest\Api\Model\Project::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Project' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Project::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -364,7 +361,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId(null); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\ProjectClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\ProjectClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); @@ -490,13 +487,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setEndsOn(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -511,8 +508,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -585,10 +580,10 @@ public function normalize($object, $format = null, array $context = []) $data['ends_on'] = $object->getEndsOn()->format('Y-m-d'); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -601,7 +596,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Project' => false]; + return [\JoliCode\Harvest\Api\Model\Project::class => false]; } } } diff --git a/generated/Normalizer/ProjectsNormalizer.php b/generated/Normalizer/ProjectsNormalizer.php index fb94d8a..6d425dc 100644 --- a/generated/Normalizer/ProjectsNormalizer.php +++ b/generated/Normalizer/ProjectsNormalizer.php @@ -32,12 +32,12 @@ class ProjectsNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Projects' === $type; + return \JoliCode\Harvest\Api\Model\Projects::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Projects' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Projects::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('projects', $data)) { $values = []; foreach ($data['projects'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Project', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Project::class, 'json', $context); } $object->setProjects($values); unset($data['projects']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Projects' => false]; + return [\JoliCode\Harvest\Api\Model\Projects::class => false]; } } } else { @@ -140,17 +140,14 @@ class ProjectsNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Projects' === $type; + return \JoliCode\Harvest\Api\Model\Projects::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Projects' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Projects::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('projects', $data)) { $values = []; foreach ($data['projects'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Project', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Project::class, 'json', $context); } $object->setProjects($values); unset($data['projects']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Projects' => false]; + return [\JoliCode\Harvest\Api\Model\Projects::class => false]; } } } diff --git a/generated/Normalizer/ProjectsPostBodyNormalizer.php b/generated/Normalizer/ProjectsPostBodyNormalizer.php index 92f993d..521bd47 100644 --- a/generated/Normalizer/ProjectsPostBodyNormalizer.php +++ b/generated/Normalizer/ProjectsPostBodyNormalizer.php @@ -32,12 +32,12 @@ class ProjectsPostBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -260,7 +260,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsPostBody::class => false]; } } } else { @@ -273,17 +273,14 @@ class ProjectsPostBodyNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -441,8 +438,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -509,7 +504,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsPostBody::class => false]; } } } diff --git a/generated/Normalizer/ProjectsProjectIdPatchBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdPatchBodyNormalizer.php index 1b703f1..53cd96b 100644 --- a/generated/Normalizer/ProjectsProjectIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class ProjectsProjectIdPatchBodyNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -270,7 +270,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class => false]; } } } else { @@ -283,17 +283,14 @@ class ProjectsProjectIdPatchBodyNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -451,8 +448,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -529,7 +524,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/ProjectsProjectIdTaskAssignmentsPostBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdTaskAssignmentsPostBodyNormalizer.php index 49c7932..da0a72c 100644 --- a/generated/Normalizer/ProjectsProjectIdTaskAssignmentsPostBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdTaskAssignmentsPostBodyNormalizer.php @@ -32,12 +32,12 @@ class ProjectsProjectIdTaskAssignmentsPostBodyNormalizer implements Denormalizer public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -124,7 +124,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class => false]; } } } else { @@ -137,17 +137,14 @@ class ProjectsProjectIdTaskAssignmentsPostBodyNormalizer implements Denormalizer public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -206,8 +203,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -237,7 +232,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsPostBody::class => false]; } } } diff --git a/generated/Normalizer/ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer.php index 03fb733..23f802f 100644 --- a/generated/Normalizer/ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer implem public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -117,7 +117,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class => false]; } } } else { @@ -130,17 +130,14 @@ class ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBodyNormalizer implem public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -193,8 +190,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -223,7 +218,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdTaskAssignmentsTaskAssignmentIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/ProjectsProjectIdUserAssignmentsPostBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdUserAssignmentsPostBodyNormalizer.php index 34c32dd..2bf26f9 100644 --- a/generated/Normalizer/ProjectsProjectIdUserAssignmentsPostBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdUserAssignmentsPostBodyNormalizer.php @@ -32,12 +32,12 @@ class ProjectsProjectIdUserAssignmentsPostBodyNormalizer implements Denormalizer public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -133,7 +133,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class => false]; } } } else { @@ -146,17 +146,14 @@ class ProjectsProjectIdUserAssignmentsPostBodyNormalizer implements Denormalizer public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -221,8 +218,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -255,7 +250,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsPostBody::class => false]; } } } diff --git a/generated/Normalizer/ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer.php b/generated/Normalizer/ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer.php index 82132e3..a9c68b6 100644 --- a/generated/Normalizer/ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer.php +++ b/generated/Normalizer/ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer implem public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -126,7 +126,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class => false]; } } } else { @@ -139,17 +139,14 @@ class ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBodyNormalizer implem public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -208,8 +205,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -241,7 +236,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\ProjectsProjectIdUserAssignmentsUserAssignmentIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/RoleNormalizer.php b/generated/Normalizer/RoleNormalizer.php index bcb7da0..2e5223b 100644 --- a/generated/Normalizer/RoleNormalizer.php +++ b/generated/Normalizer/RoleNormalizer.php @@ -32,12 +32,12 @@ class RoleNormalizer implements DenormalizerInterface, NormalizerInterface, Deno public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Role' === $type; + return \JoliCode\Harvest\Api\Model\Role::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Role' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Role::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -75,13 +75,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setUserIds(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -112,10 +112,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['user_ids'] = $values; } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -128,7 +128,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Role' => false]; + return [\JoliCode\Harvest\Api\Model\Role::class => false]; } } } else { @@ -141,17 +141,14 @@ class RoleNormalizer implements DenormalizerInterface, NormalizerInterface, Deno public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Role' === $type; + return \JoliCode\Harvest\Api\Model\Role::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Role' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Role::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -187,13 +184,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setUserIds(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -208,8 +205,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -229,10 +224,10 @@ public function normalize($object, $format = null, array $context = []) $data['user_ids'] = $values; } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_1) { if (preg_match('/.*/', (string) $key)) { @@ -245,7 +240,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Role' => false]; + return [\JoliCode\Harvest\Api\Model\Role::class => false]; } } } diff --git a/generated/Normalizer/RolesNormalizer.php b/generated/Normalizer/RolesNormalizer.php index af0ff96..1700062 100644 --- a/generated/Normalizer/RolesNormalizer.php +++ b/generated/Normalizer/RolesNormalizer.php @@ -32,12 +32,12 @@ class RolesNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Roles' === $type; + return \JoliCode\Harvest\Api\Model\Roles::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Roles' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Roles::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('roles', $data)) { $values = []; foreach ($data['roles'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Role', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Role::class, 'json', $context); } $object->setRoles($values); unset($data['roles']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Roles' => false]; + return [\JoliCode\Harvest\Api\Model\Roles::class => false]; } } } else { @@ -140,17 +140,14 @@ class RolesNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Roles' === $type; + return \JoliCode\Harvest\Api\Model\Roles::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Roles' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Roles::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('roles', $data)) { $values = []; foreach ($data['roles'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Role', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Role::class, 'json', $context); } $object->setRoles($values); unset($data['roles']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Roles' => false]; + return [\JoliCode\Harvest\Api\Model\Roles::class => false]; } } } diff --git a/generated/Normalizer/RolesPostBodyNormalizer.php b/generated/Normalizer/RolesPostBodyNormalizer.php index 3fb08a4..c9b3024 100644 --- a/generated/Normalizer/RolesPostBodyNormalizer.php +++ b/generated/Normalizer/RolesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class RolesPostBodyNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\RolesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\RolesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -99,7 +99,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\RolesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\RolesPostBody::class => false]; } } } else { @@ -112,17 +112,14 @@ class RolesPostBodyNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\RolesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\RolesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\RolesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -161,8 +158,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -187,7 +182,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\RolesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\RolesPostBody::class => false]; } } } diff --git a/generated/Normalizer/RolesRoleIdPatchBodyNormalizer.php b/generated/Normalizer/RolesRoleIdPatchBodyNormalizer.php index a49cec6..0b4c150 100644 --- a/generated/Normalizer/RolesRoleIdPatchBodyNormalizer.php +++ b/generated/Normalizer/RolesRoleIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class RolesRoleIdPatchBodyNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -101,7 +101,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class => false]; } } } else { @@ -114,17 +114,14 @@ class RolesRoleIdPatchBodyNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -163,8 +160,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -191,7 +186,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\RolesRoleIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\RolesRoleIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/TaskAssignmentNormalizer.php b/generated/Normalizer/TaskAssignmentNormalizer.php index dad4225..709bba0 100644 --- a/generated/Normalizer/TaskAssignmentNormalizer.php +++ b/generated/Normalizer/TaskAssignmentNormalizer.php @@ -32,12 +32,12 @@ class TaskAssignmentNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' === $type; + return \JoliCode\Harvest\Api\Model\TaskAssignment::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TaskAssignment::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -65,13 +65,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('task', $data) && null !== $data['task']) { - $object->setTask($this->denormalizer->denormalize($data['task'], 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask', 'json', $context)); + $object->setTask($this->denormalizer->denormalize($data['task'], \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class, 'json', $context)); unset($data['task']); } elseif (\array_key_exists('task', $data) && null === $data['task']) { $object->setTask(null); @@ -101,13 +101,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setBudget(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -146,10 +146,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['budget'] = $object->getBudget(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -162,7 +162,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignment' => false]; + return [\JoliCode\Harvest\Api\Model\TaskAssignment::class => false]; } } } else { @@ -175,17 +175,14 @@ class TaskAssignmentNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' === $type; + return \JoliCode\Harvest\Api\Model\TaskAssignment::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TaskAssignment::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -211,13 +208,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('task', $data) && null !== $data['task']) { - $object->setTask($this->denormalizer->denormalize($data['task'], 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask', 'json', $context)); + $object->setTask($this->denormalizer->denormalize($data['task'], \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class, 'json', $context)); unset($data['task']); } elseif (\array_key_exists('task', $data) && null === $data['task']) { $object->setTask(null); @@ -247,13 +244,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setBudget(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -268,8 +265,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -297,10 +292,10 @@ public function normalize($object, $format = null, array $context = []) $data['budget'] = $object->getBudget(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -313,7 +308,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignment' => false]; + return [\JoliCode\Harvest\Api\Model\TaskAssignment::class => false]; } } } diff --git a/generated/Normalizer/TaskAssignmentProjectNormalizer.php b/generated/Normalizer/TaskAssignmentProjectNormalizer.php index 215e2d0..a7254e0 100644 --- a/generated/Normalizer/TaskAssignmentProjectNormalizer.php +++ b/generated/Normalizer/TaskAssignmentProjectNormalizer.php @@ -32,12 +32,12 @@ class TaskAssignmentProjectNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' === $type; + return \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -102,7 +102,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' => false]; + return [\JoliCode\Harvest\Api\Model\TaskAssignmentProject::class => false]; } } } else { @@ -115,17 +115,14 @@ class TaskAssignmentProjectNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' === $type; + return \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TaskAssignmentProject::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,8 +163,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -193,7 +188,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignmentProject' => false]; + return [\JoliCode\Harvest\Api\Model\TaskAssignmentProject::class => false]; } } } diff --git a/generated/Normalizer/TaskAssignmentTaskNormalizer.php b/generated/Normalizer/TaskAssignmentTaskNormalizer.php index 6fd7422..0c30af7 100644 --- a/generated/Normalizer/TaskAssignmentTaskNormalizer.php +++ b/generated/Normalizer/TaskAssignmentTaskNormalizer.php @@ -32,12 +32,12 @@ class TaskAssignmentTaskNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' === $type; + return \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' => false]; + return [\JoliCode\Harvest\Api\Model\TaskAssignmentTask::class => false]; } } } else { @@ -106,17 +106,14 @@ class TaskAssignmentTaskNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' === $type; + return \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TaskAssignmentTask::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignmentTask' => false]; + return [\JoliCode\Harvest\Api\Model\TaskAssignmentTask::class => false]; } } } diff --git a/generated/Normalizer/TaskAssignmentsNormalizer.php b/generated/Normalizer/TaskAssignmentsNormalizer.php index 47c823d..f8402ed 100644 --- a/generated/Normalizer/TaskAssignmentsNormalizer.php +++ b/generated/Normalizer/TaskAssignmentsNormalizer.php @@ -32,12 +32,12 @@ class TaskAssignmentsNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' === $type; + return \JoliCode\Harvest\Api\Model\TaskAssignments::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TaskAssignments::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('task_assignments', $data)) { $values = []; foreach ($data['task_assignments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\TaskAssignment::class, 'json', $context); } $object->setTaskAssignments($values); unset($data['task_assignments']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignments' => false]; + return [\JoliCode\Harvest\Api\Model\TaskAssignments::class => false]; } } } else { @@ -140,17 +140,14 @@ class TaskAssignmentsNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' === $type; + return \JoliCode\Harvest\Api\Model\TaskAssignments::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TaskAssignments' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TaskAssignments::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('task_assignments', $data)) { $values = []; foreach ($data['task_assignments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\TaskAssignment::class, 'json', $context); } $object->setTaskAssignments($values); unset($data['task_assignments']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TaskAssignments' => false]; + return [\JoliCode\Harvest\Api\Model\TaskAssignments::class => false]; } } } diff --git a/generated/Normalizer/TaskNormalizer.php b/generated/Normalizer/TaskNormalizer.php index edfd38f..eb4d5d5 100644 --- a/generated/Normalizer/TaskNormalizer.php +++ b/generated/Normalizer/TaskNormalizer.php @@ -32,12 +32,12 @@ class TaskNormalizer implements DenormalizerInterface, NormalizerInterface, Deno public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Task' === $type; + return \JoliCode\Harvest\Api\Model\Task::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Task' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Task::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -92,13 +92,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setIsActive(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -134,10 +134,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['is_active'] = $object->getIsActive(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -150,7 +150,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Task' => false]; + return [\JoliCode\Harvest\Api\Model\Task::class => false]; } } } else { @@ -163,17 +163,14 @@ class TaskNormalizer implements DenormalizerInterface, NormalizerInterface, Deno public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Task' === $type; + return \JoliCode\Harvest\Api\Model\Task::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Task' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Task::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -226,13 +223,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setIsActive(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -247,8 +244,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -273,10 +268,10 @@ public function normalize($object, $format = null, array $context = []) $data['is_active'] = $object->getIsActive(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -289,7 +284,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Task' => false]; + return [\JoliCode\Harvest\Api\Model\Task::class => false]; } } } diff --git a/generated/Normalizer/TasksNormalizer.php b/generated/Normalizer/TasksNormalizer.php index 8b558f2..1acfe9a 100644 --- a/generated/Normalizer/TasksNormalizer.php +++ b/generated/Normalizer/TasksNormalizer.php @@ -32,12 +32,12 @@ class TasksNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Tasks' === $type; + return \JoliCode\Harvest\Api\Model\Tasks::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Tasks' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Tasks::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('tasks', $data)) { $values = []; foreach ($data['tasks'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Task', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Task::class, 'json', $context); } $object->setTasks($values); unset($data['tasks']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Tasks' => false]; + return [\JoliCode\Harvest\Api\Model\Tasks::class => false]; } } } else { @@ -140,17 +140,14 @@ class TasksNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Tasks' === $type; + return \JoliCode\Harvest\Api\Model\Tasks::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Tasks' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Tasks::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('tasks', $data)) { $values = []; foreach ($data['tasks'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Task', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Task::class, 'json', $context); } $object->setTasks($values); unset($data['tasks']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Tasks' => false]; + return [\JoliCode\Harvest\Api\Model\Tasks::class => false]; } } } diff --git a/generated/Normalizer/TasksPostBodyNormalizer.php b/generated/Normalizer/TasksPostBodyNormalizer.php index da63e31..b4ce08c 100644 --- a/generated/Normalizer/TasksPostBodyNormalizer.php +++ b/generated/Normalizer/TasksPostBodyNormalizer.php @@ -32,12 +32,12 @@ class TasksPostBodyNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' === $type; + return \JoliCode\Harvest\Api\Model\TasksPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TasksPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -121,7 +121,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TasksPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\TasksPostBody::class => false]; } } } else { @@ -134,17 +134,14 @@ class TasksPostBodyNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' === $type; + return \JoliCode\Harvest\Api\Model\TasksPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TasksPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TasksPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -200,8 +197,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -231,7 +226,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TasksPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\TasksPostBody::class => false]; } } } diff --git a/generated/Normalizer/TasksTaskIdPatchBodyNormalizer.php b/generated/Normalizer/TasksTaskIdPatchBodyNormalizer.php index 42a8a58..c97b2cd 100644 --- a/generated/Normalizer/TasksTaskIdPatchBodyNormalizer.php +++ b/generated/Normalizer/TasksTaskIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class TasksTaskIdPatchBodyNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -123,7 +123,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class => false]; } } } else { @@ -136,17 +136,14 @@ class TasksTaskIdPatchBodyNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -202,8 +199,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -235,7 +230,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TasksTaskIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\TasksTaskIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/TeammateNormalizer.php b/generated/Normalizer/TeammateNormalizer.php index 9d13c3e..c6723dc 100644 --- a/generated/Normalizer/TeammateNormalizer.php +++ b/generated/Normalizer/TeammateNormalizer.php @@ -32,12 +32,12 @@ class TeammateNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Teammate' === $type; + return \JoliCode\Harvest\Api\Model\Teammate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Teammate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Teammate::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -111,7 +111,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Teammate' => false]; + return [\JoliCode\Harvest\Api\Model\Teammate::class => false]; } } } else { @@ -124,17 +124,14 @@ class TeammateNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Teammate' === $type; + return \JoliCode\Harvest\Api\Model\Teammate::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Teammate' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Teammate::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -181,8 +178,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -211,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Teammate' => false]; + return [\JoliCode\Harvest\Api\Model\Teammate::class => false]; } } } diff --git a/generated/Normalizer/TeammatesNormalizer.php b/generated/Normalizer/TeammatesNormalizer.php index 19c608d..520e50c 100644 --- a/generated/Normalizer/TeammatesNormalizer.php +++ b/generated/Normalizer/TeammatesNormalizer.php @@ -32,12 +32,12 @@ class TeammatesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Teammates' === $type; + return \JoliCode\Harvest\Api\Model\Teammates::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Teammates' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Teammates::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('teammates', $data)) { $values = []; foreach ($data['teammates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Teammate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Teammate::class, 'json', $context); } $object->setTeammates($values); unset($data['teammates']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Teammates' => false]; + return [\JoliCode\Harvest\Api\Model\Teammates::class => false]; } } } else { @@ -140,17 +140,14 @@ class TeammatesNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Teammates' === $type; + return \JoliCode\Harvest\Api\Model\Teammates::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Teammates' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Teammates::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('teammates', $data)) { $values = []; foreach ($data['teammates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Teammate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Teammate::class, 'json', $context); } $object->setTeammates($values); unset($data['teammates']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Teammates' => false]; + return [\JoliCode\Harvest\Api\Model\Teammates::class => false]; } } } diff --git a/generated/Normalizer/TeammatesPatchResponseNormalizer.php b/generated/Normalizer/TeammatesPatchResponseNormalizer.php index a689ff9..fa15fd9 100644 --- a/generated/Normalizer/TeammatesPatchResponseNormalizer.php +++ b/generated/Normalizer/TeammatesPatchResponseNormalizer.php @@ -32,12 +32,12 @@ class TeammatesPatchResponseNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' === $type; + return \JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('teammates', $data)) { $values = []; foreach ($data['teammates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Teammate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Teammate::class, 'json', $context); } $object->setTeammates($values); unset($data['teammates']); @@ -88,7 +88,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' => false]; + return [\JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class => false]; } } } else { @@ -101,17 +101,14 @@ class TeammatesPatchResponseNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' === $type; + return \JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -127,7 +124,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('teammates', $data)) { $values = []; foreach ($data['teammates'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\Teammate', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\Teammate::class, 'json', $context); } $object->setTeammates($values); unset($data['teammates']); @@ -142,8 +139,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -165,7 +160,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TeammatesPatchResponse' => false]; + return [\JoliCode\Harvest\Api\Model\TeammatesPatchResponse::class => false]; } } } diff --git a/generated/Normalizer/TimeEntriesNormalizer.php b/generated/Normalizer/TimeEntriesNormalizer.php index 2f35323..83ee074 100644 --- a/generated/Normalizer/TimeEntriesNormalizer.php +++ b/generated/Normalizer/TimeEntriesNormalizer.php @@ -32,12 +32,12 @@ class TimeEntriesNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntries::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntries::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('time_entries', $data)) { $values = []; foreach ($data['time_entries'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\TimeEntry::class, 'json', $context); } $object->setTimeEntries($values); unset($data['time_entries']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntries' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntries::class => false]; } } } else { @@ -140,17 +140,14 @@ class TimeEntriesNormalizer implements DenormalizerInterface, NormalizerInterfac public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntries::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntries' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntries::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('time_entries', $data)) { $values = []; foreach ($data['time_entries'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\TimeEntry', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\TimeEntry::class, 'json', $context); } $object->setTimeEntries($values); unset($data['time_entries']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntries' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntries::class => false]; } } } diff --git a/generated/Normalizer/TimeEntriesPostBodyExternalReferenceNormalizer.php b/generated/Normalizer/TimeEntriesPostBodyExternalReferenceNormalizer.php index 83402bf..edbbe63 100644 --- a/generated/Normalizer/TimeEntriesPostBodyExternalReferenceNormalizer.php +++ b/generated/Normalizer/TimeEntriesPostBodyExternalReferenceNormalizer.php @@ -32,12 +32,12 @@ class TimeEntriesPostBodyExternalReferenceNormalizer implements DenormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -111,7 +111,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class => false]; } } } else { @@ -124,17 +124,14 @@ class TimeEntriesPostBodyExternalReferenceNormalizer implements DenormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -181,8 +178,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -211,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class => false]; } } } diff --git a/generated/Normalizer/TimeEntriesPostBodyNormalizer.php b/generated/Normalizer/TimeEntriesPostBodyNormalizer.php index 52b817d..41ce350 100644 --- a/generated/Normalizer/TimeEntriesPostBodyNormalizer.php +++ b/generated/Normalizer/TimeEntriesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class TimeEntriesPostBodyNormalizer implements DenormalizerInterface, Normalizer public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -98,7 +98,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setNotes(null); } if (\array_key_exists('external_reference', $data) && null !== $data['external_reference']) { - $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference', 'json', $context)); + $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class, 'json', $context)); unset($data['external_reference']); } elseif (\array_key_exists('external_reference', $data) && null === $data['external_reference']) { $object->setExternalReference(null); @@ -153,7 +153,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class => false]; } } } else { @@ -166,17 +166,14 @@ class TimeEntriesPostBodyNormalizer implements DenormalizerInterface, Normalizer public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -235,7 +232,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setNotes(null); } if (\array_key_exists('external_reference', $data) && null !== $data['external_reference']) { - $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBodyExternalReference', 'json', $context)); + $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], \JoliCode\Harvest\Api\Model\TimeEntriesPostBodyExternalReference::class, 'json', $context)); unset($data['external_reference']); } elseif (\array_key_exists('external_reference', $data) && null === $data['external_reference']) { $object->setExternalReference(null); @@ -256,8 +253,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -295,7 +290,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntriesPostBody::class => false]; } } } diff --git a/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer.php b/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer.php index 44cda9f..18d5e57 100644 --- a/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer.php +++ b/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer.php @@ -32,12 +32,12 @@ class TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer implements Deno public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -111,7 +111,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class => false]; } } } else { @@ -124,17 +124,14 @@ class TimeEntriesTimeEntryIdPatchBodyExternalReferenceNormalizer implements Deno public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -181,8 +178,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -211,7 +206,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class => false]; } } } diff --git a/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyNormalizer.php b/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyNormalizer.php index 00de8ba..e15b590 100644 --- a/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyNormalizer.php +++ b/generated/Normalizer/TimeEntriesTimeEntryIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class TimeEntriesTimeEntryIdPatchBodyNormalizer implements DenormalizerInterface public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -98,7 +98,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setNotes(null); } if (\array_key_exists('external_reference', $data) && null !== $data['external_reference']) { - $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference', 'json', $context)); + $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class, 'json', $context)); unset($data['external_reference']); } elseif (\array_key_exists('external_reference', $data) && null === $data['external_reference']) { $object->setExternalReference(null); @@ -150,7 +150,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class => false]; } } } else { @@ -163,17 +163,14 @@ class TimeEntriesTimeEntryIdPatchBodyNormalizer implements DenormalizerInterface public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -232,7 +229,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setNotes(null); } if (\array_key_exists('external_reference', $data) && null !== $data['external_reference']) { - $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBodyExternalReference', 'json', $context)); + $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], \JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBodyExternalReference::class, 'json', $context)); unset($data['external_reference']); } elseif (\array_key_exists('external_reference', $data) && null === $data['external_reference']) { $object->setExternalReference(null); @@ -247,8 +244,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -289,7 +284,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntriesTimeEntryIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntriesTimeEntryIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/TimeEntryClientNormalizer.php b/generated/Normalizer/TimeEntryClientNormalizer.php index ba55f55..021e844 100644 --- a/generated/Normalizer/TimeEntryClientNormalizer.php +++ b/generated/Normalizer/TimeEntryClientNormalizer.php @@ -32,12 +32,12 @@ class TimeEntryClientNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryClient::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryClient::class => false]; } } } else { @@ -106,17 +106,14 @@ class TimeEntryClientNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryClient::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryClient::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryClient' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryClient::class => false]; } } } diff --git a/generated/Normalizer/TimeEntryExternalReferenceNormalizer.php b/generated/Normalizer/TimeEntryExternalReferenceNormalizer.php index 0700d3a..471ccb2 100644 --- a/generated/Normalizer/TimeEntryExternalReferenceNormalizer.php +++ b/generated/Normalizer/TimeEntryExternalReferenceNormalizer.php @@ -32,12 +32,12 @@ class TimeEntryExternalReferenceNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -129,7 +129,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class => false]; } } } else { @@ -142,17 +142,14 @@ class TimeEntryExternalReferenceNormalizer implements DenormalizerInterface, Nor public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -211,8 +208,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -247,7 +242,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class => false]; } } } diff --git a/generated/Normalizer/TimeEntryInvoiceNormalizer.php b/generated/Normalizer/TimeEntryInvoiceNormalizer.php index 4637a92..5ba0e3d 100644 --- a/generated/Normalizer/TimeEntryInvoiceNormalizer.php +++ b/generated/Normalizer/TimeEntryInvoiceNormalizer.php @@ -32,12 +32,12 @@ class TimeEntryInvoiceNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryInvoice::class => false]; } } } else { @@ -106,17 +106,14 @@ class TimeEntryInvoiceNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryInvoice::class => false]; } } } diff --git a/generated/Normalizer/TimeEntryNormalizer.php b/generated/Normalizer/TimeEntryNormalizer.php index 365a270..2b6a5e5 100644 --- a/generated/Normalizer/TimeEntryNormalizer.php +++ b/generated/Normalizer/TimeEntryNormalizer.php @@ -32,12 +32,12 @@ class TimeEntryNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntry::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntry::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -80,45 +80,45 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setSpentDate(null); } if (\array_key_exists('user', $data) && null !== $data['user']) { - $object->setUser($this->denormalizer->denormalize($data['user'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser', 'json', $context)); + $object->setUser($this->denormalizer->denormalize($data['user'], \JoliCode\Harvest\Api\Model\TimeEntryUser::class, 'json', $context)); unset($data['user']); } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } if (\array_key_exists('user_assignment', $data)) { - $object->setUserAssignment($this->denormalizer->denormalize($data['user_assignment'], 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json', $context)); + $object->setUserAssignment($this->denormalizer->denormalize($data['user_assignment'], \JoliCode\Harvest\Api\Model\UserAssignment::class, 'json', $context)); unset($data['user_assignment']); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\TimeEntryClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\TimeEntryProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('task', $data) && null !== $data['task']) { - $object->setTask($this->denormalizer->denormalize($data['task'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask', 'json', $context)); + $object->setTask($this->denormalizer->denormalize($data['task'], \JoliCode\Harvest\Api\Model\TimeEntryTask::class, 'json', $context)); unset($data['task']); } elseif (\array_key_exists('task', $data) && null === $data['task']) { $object->setTask(null); } if (\array_key_exists('task_assignment', $data)) { - $object->setTaskAssignment($this->denormalizer->denormalize($data['task_assignment'], 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json', $context)); + $object->setTaskAssignment($this->denormalizer->denormalize($data['task_assignment'], \JoliCode\Harvest\Api\Model\TaskAssignment::class, 'json', $context)); unset($data['task_assignment']); } if (\array_key_exists('external_reference', $data) && null !== $data['external_reference']) { - $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference', 'json', $context)); + $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class, 'json', $context)); unset($data['external_reference']); } elseif (\array_key_exists('external_reference', $data) && null === $data['external_reference']) { $object->setExternalReference(null); } if (\array_key_exists('invoice', $data) && null !== $data['invoice']) { - $object->setInvoice($this->denormalizer->denormalize($data['invoice'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice', 'json', $context)); + $object->setInvoice($this->denormalizer->denormalize($data['invoice'], \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class, 'json', $context)); unset($data['invoice']); } elseif (\array_key_exists('invoice', $data) && null === $data['invoice']) { $object->setInvoice(null); @@ -172,7 +172,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setIsBilled(null); } if (\array_key_exists('timer_started_at', $data) && null !== $data['timer_started_at']) { - $object->setTimerStartedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['timer_started_at'])); + $object->setTimerStartedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['timer_started_at'])); unset($data['timer_started_at']); } elseif (\array_key_exists('timer_started_at', $data) && null === $data['timer_started_at']) { $object->setTimerStartedAt(null); @@ -220,13 +220,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setCostRate(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -298,7 +298,7 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['is_billed'] = $object->getIsBilled(); } if ($object->isInitialized('timerStartedAt') && null !== $object->getTimerStartedAt()) { - $data['timer_started_at'] = $object->getTimerStartedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['timer_started_at'] = $object->getTimerStartedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('startedTime') && null !== $object->getStartedTime()) { $data['started_time'] = $object->getStartedTime(); @@ -322,10 +322,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['cost_rate'] = $object->getCostRate(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -338,7 +338,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntry' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntry::class => false]; } } } else { @@ -351,17 +351,14 @@ class TimeEntryNormalizer implements DenormalizerInterface, NormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntry::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntry' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntry::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -402,45 +399,45 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setSpentDate(null); } if (\array_key_exists('user', $data) && null !== $data['user']) { - $object->setUser($this->denormalizer->denormalize($data['user'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser', 'json', $context)); + $object->setUser($this->denormalizer->denormalize($data['user'], \JoliCode\Harvest\Api\Model\TimeEntryUser::class, 'json', $context)); unset($data['user']); } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); } if (\array_key_exists('user_assignment', $data)) { - $object->setUserAssignment($this->denormalizer->denormalize($data['user_assignment'], 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json', $context)); + $object->setUserAssignment($this->denormalizer->denormalize($data['user_assignment'], \JoliCode\Harvest\Api\Model\UserAssignment::class, 'json', $context)); unset($data['user_assignment']); } if (\array_key_exists('client', $data) && null !== $data['client']) { - $object->setClient($this->denormalizer->denormalize($data['client'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryClient', 'json', $context)); + $object->setClient($this->denormalizer->denormalize($data['client'], \JoliCode\Harvest\Api\Model\TimeEntryClient::class, 'json', $context)); unset($data['client']); } elseif (\array_key_exists('client', $data) && null === $data['client']) { $object->setClient(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\TimeEntryProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('task', $data) && null !== $data['task']) { - $object->setTask($this->denormalizer->denormalize($data['task'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask', 'json', $context)); + $object->setTask($this->denormalizer->denormalize($data['task'], \JoliCode\Harvest\Api\Model\TimeEntryTask::class, 'json', $context)); unset($data['task']); } elseif (\array_key_exists('task', $data) && null === $data['task']) { $object->setTask(null); } if (\array_key_exists('task_assignment', $data)) { - $object->setTaskAssignment($this->denormalizer->denormalize($data['task_assignment'], 'JoliCode\\Harvest\\Api\\Model\\TaskAssignment', 'json', $context)); + $object->setTaskAssignment($this->denormalizer->denormalize($data['task_assignment'], \JoliCode\Harvest\Api\Model\TaskAssignment::class, 'json', $context)); unset($data['task_assignment']); } if (\array_key_exists('external_reference', $data) && null !== $data['external_reference']) { - $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryExternalReference', 'json', $context)); + $object->setExternalReference($this->denormalizer->denormalize($data['external_reference'], \JoliCode\Harvest\Api\Model\TimeEntryExternalReference::class, 'json', $context)); unset($data['external_reference']); } elseif (\array_key_exists('external_reference', $data) && null === $data['external_reference']) { $object->setExternalReference(null); } if (\array_key_exists('invoice', $data) && null !== $data['invoice']) { - $object->setInvoice($this->denormalizer->denormalize($data['invoice'], 'JoliCode\\Harvest\\Api\\Model\\TimeEntryInvoice', 'json', $context)); + $object->setInvoice($this->denormalizer->denormalize($data['invoice'], \JoliCode\Harvest\Api\Model\TimeEntryInvoice::class, 'json', $context)); unset($data['invoice']); } elseif (\array_key_exists('invoice', $data) && null === $data['invoice']) { $object->setInvoice(null); @@ -494,7 +491,7 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setIsBilled(null); } if (\array_key_exists('timer_started_at', $data) && null !== $data['timer_started_at']) { - $object->setTimerStartedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['timer_started_at'])); + $object->setTimerStartedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['timer_started_at'])); unset($data['timer_started_at']); } elseif (\array_key_exists('timer_started_at', $data) && null === $data['timer_started_at']) { $object->setTimerStartedAt(null); @@ -542,13 +539,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setCostRate(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -563,8 +560,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -625,7 +620,7 @@ public function normalize($object, $format = null, array $context = []) $data['is_billed'] = $object->getIsBilled(); } if ($object->isInitialized('timerStartedAt') && null !== $object->getTimerStartedAt()) { - $data['timer_started_at'] = $object->getTimerStartedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['timer_started_at'] = $object->getTimerStartedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('startedTime') && null !== $object->getStartedTime()) { $data['started_time'] = $object->getStartedTime(); @@ -649,10 +644,10 @@ public function normalize($object, $format = null, array $context = []) $data['cost_rate'] = $object->getCostRate(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -665,7 +660,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntry' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntry::class => false]; } } } diff --git a/generated/Normalizer/TimeEntryProjectNormalizer.php b/generated/Normalizer/TimeEntryProjectNormalizer.php index 6245679..d72e324 100644 --- a/generated/Normalizer/TimeEntryProjectNormalizer.php +++ b/generated/Normalizer/TimeEntryProjectNormalizer.php @@ -32,12 +32,12 @@ class TimeEntryProjectNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryProject::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryProject::class => false]; } } } else { @@ -106,17 +106,14 @@ class TimeEntryProjectNormalizer implements DenormalizerInterface, NormalizerInt public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryProject::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryProject' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryProject::class => false]; } } } diff --git a/generated/Normalizer/TimeEntryTaskNormalizer.php b/generated/Normalizer/TimeEntryTaskNormalizer.php index 221d3dc..e9e7d93 100644 --- a/generated/Normalizer/TimeEntryTaskNormalizer.php +++ b/generated/Normalizer/TimeEntryTaskNormalizer.php @@ -32,12 +32,12 @@ class TimeEntryTaskNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryTask::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryTask::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryTask::class => false]; } } } else { @@ -106,17 +106,14 @@ class TimeEntryTaskNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryTask::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryTask::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryTask' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryTask::class => false]; } } } diff --git a/generated/Normalizer/TimeEntryUserNormalizer.php b/generated/Normalizer/TimeEntryUserNormalizer.php index b596fb2..463e27d 100644 --- a/generated/Normalizer/TimeEntryUserNormalizer.php +++ b/generated/Normalizer/TimeEntryUserNormalizer.php @@ -32,12 +32,12 @@ class TimeEntryUserNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryUser::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryUser::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryUser::class => false]; } } } else { @@ -106,17 +106,14 @@ class TimeEntryUserNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' === $type; + return \JoliCode\Harvest\Api\Model\TimeEntryUser::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeEntryUser::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeEntryUser' => false]; + return [\JoliCode\Harvest\Api\Model\TimeEntryUser::class => false]; } } } diff --git a/generated/Normalizer/TimeReportsResultNormalizer.php b/generated/Normalizer/TimeReportsResultNormalizer.php index c2acb8c..61859a1 100644 --- a/generated/Normalizer/TimeReportsResultNormalizer.php +++ b/generated/Normalizer/TimeReportsResultNormalizer.php @@ -32,12 +32,12 @@ class TimeReportsResultNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' === $type; + return \JoliCode\Harvest\Api\Model\TimeReportsResult::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeReportsResult::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -219,7 +219,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' => false]; + return [\JoliCode\Harvest\Api\Model\TimeReportsResult::class => false]; } } } else { @@ -232,17 +232,14 @@ class TimeReportsResultNormalizer implements DenormalizerInterface, NormalizerIn public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' === $type; + return \JoliCode\Harvest\Api\Model\TimeReportsResult::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeReportsResult::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -364,8 +361,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -427,7 +422,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeReportsResult' => false]; + return [\JoliCode\Harvest\Api\Model\TimeReportsResult::class => false]; } } } diff --git a/generated/Normalizer/TimeReportsResultsNormalizer.php b/generated/Normalizer/TimeReportsResultsNormalizer.php index 5e8eeea..c615e2a 100644 --- a/generated/Normalizer/TimeReportsResultsNormalizer.php +++ b/generated/Normalizer/TimeReportsResultsNormalizer.php @@ -32,12 +32,12 @@ class TimeReportsResultsNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' === $type; + return \JoliCode\Harvest\Api\Model\TimeReportsResults::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeReportsResults::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\TimeReportsResult::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' => false]; + return [\JoliCode\Harvest\Api\Model\TimeReportsResults::class => false]; } } } else { @@ -140,17 +140,14 @@ class TimeReportsResultsNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' === $type; + return \JoliCode\Harvest\Api\Model\TimeReportsResults::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\TimeReportsResults::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\TimeReportsResult::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\TimeReportsResults' => false]; + return [\JoliCode\Harvest\Api\Model\TimeReportsResults::class => false]; } } } diff --git a/generated/Normalizer/UninvoicedReportResultNormalizer.php b/generated/Normalizer/UninvoicedReportResultNormalizer.php index 3bea2ed..8a7f3e3 100644 --- a/generated/Normalizer/UninvoicedReportResultNormalizer.php +++ b/generated/Normalizer/UninvoicedReportResultNormalizer.php @@ -32,12 +32,12 @@ class UninvoicedReportResultNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' === $type; + return \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -168,7 +168,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' => false]; + return [\JoliCode\Harvest\Api\Model\UninvoicedReportResult::class => false]; } } } else { @@ -181,17 +181,14 @@ class UninvoicedReportResultNormalizer implements DenormalizerInterface, Normali public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' === $type; + return \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -280,8 +277,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -325,7 +320,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult' => false]; + return [\JoliCode\Harvest\Api\Model\UninvoicedReportResult::class => false]; } } } diff --git a/generated/Normalizer/UninvoicedReportResultsNormalizer.php b/generated/Normalizer/UninvoicedReportResultsNormalizer.php index be862af..9e51b4c 100644 --- a/generated/Normalizer/UninvoicedReportResultsNormalizer.php +++ b/generated/Normalizer/UninvoicedReportResultsNormalizer.php @@ -32,12 +32,12 @@ class UninvoicedReportResultsNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' === $type; + return \JoliCode\Harvest\Api\Model\UninvoicedReportResults::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UninvoicedReportResults::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' => false]; + return [\JoliCode\Harvest\Api\Model\UninvoicedReportResults::class => false]; } } } else { @@ -140,17 +140,14 @@ class UninvoicedReportResultsNormalizer implements DenormalizerInterface, Normal public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' === $type; + return \JoliCode\Harvest\Api\Model\UninvoicedReportResults::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UninvoicedReportResults::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('results', $data)) { $values = []; foreach ($data['results'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\UninvoicedReportResult::class, 'json', $context); } $object->setResults($values); unset($data['results']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults' => false]; + return [\JoliCode\Harvest\Api\Model\UninvoicedReportResults::class => false]; } } } diff --git a/generated/Normalizer/UserAssignmentNormalizer.php b/generated/Normalizer/UserAssignmentNormalizer.php index b22c223..dde9d41 100644 --- a/generated/Normalizer/UserAssignmentNormalizer.php +++ b/generated/Normalizer/UserAssignmentNormalizer.php @@ -32,12 +32,12 @@ class UserAssignmentNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' === $type; + return \JoliCode\Harvest\Api\Model\UserAssignment::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UserAssignment::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -65,13 +65,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\UserAssignmentProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('user', $data) && null !== $data['user']) { - $object->setUser($this->denormalizer->denormalize($data['user'], 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser', 'json', $context)); + $object->setUser($this->denormalizer->denormalize($data['user'], \JoliCode\Harvest\Api\Model\UserAssignmentUser::class, 'json', $context)); unset($data['user']); } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); @@ -107,13 +107,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setBudget(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -155,10 +155,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['budget'] = $object->getBudget(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -171,7 +171,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UserAssignment' => false]; + return [\JoliCode\Harvest\Api\Model\UserAssignment::class => false]; } } } else { @@ -184,17 +184,14 @@ class UserAssignmentNormalizer implements DenormalizerInterface, NormalizerInter public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' === $type; + return \JoliCode\Harvest\Api\Model\UserAssignment::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignment' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UserAssignment::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -220,13 +217,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId(null); } if (\array_key_exists('project', $data) && null !== $data['project']) { - $object->setProject($this->denormalizer->denormalize($data['project'], 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject', 'json', $context)); + $object->setProject($this->denormalizer->denormalize($data['project'], \JoliCode\Harvest\Api\Model\UserAssignmentProject::class, 'json', $context)); unset($data['project']); } elseif (\array_key_exists('project', $data) && null === $data['project']) { $object->setProject(null); } if (\array_key_exists('user', $data) && null !== $data['user']) { - $object->setUser($this->denormalizer->denormalize($data['user'], 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser', 'json', $context)); + $object->setUser($this->denormalizer->denormalize($data['user'], \JoliCode\Harvest\Api\Model\UserAssignmentUser::class, 'json', $context)); unset($data['user']); } elseif (\array_key_exists('user', $data) && null === $data['user']) { $object->setUser(null); @@ -262,13 +259,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setBudget(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -283,8 +280,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -315,10 +310,10 @@ public function normalize($object, $format = null, array $context = []) $data['budget'] = $object->getBudget(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -331,7 +326,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UserAssignment' => false]; + return [\JoliCode\Harvest\Api\Model\UserAssignment::class => false]; } } } diff --git a/generated/Normalizer/UserAssignmentProjectNormalizer.php b/generated/Normalizer/UserAssignmentProjectNormalizer.php index c6a8e2d..9a2615c 100644 --- a/generated/Normalizer/UserAssignmentProjectNormalizer.php +++ b/generated/Normalizer/UserAssignmentProjectNormalizer.php @@ -32,12 +32,12 @@ class UserAssignmentProjectNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' === $type; + return \JoliCode\Harvest\Api\Model\UserAssignmentProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UserAssignmentProject::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -102,7 +102,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' => false]; + return [\JoliCode\Harvest\Api\Model\UserAssignmentProject::class => false]; } } } else { @@ -115,17 +115,14 @@ class UserAssignmentProjectNormalizer implements DenormalizerInterface, Normaliz public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' === $type; + return \JoliCode\Harvest\Api\Model\UserAssignmentProject::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UserAssignmentProject::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,8 +163,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -193,7 +188,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UserAssignmentProject' => false]; + return [\JoliCode\Harvest\Api\Model\UserAssignmentProject::class => false]; } } } diff --git a/generated/Normalizer/UserAssignmentUserNormalizer.php b/generated/Normalizer/UserAssignmentUserNormalizer.php index 9587c73..1c80709 100644 --- a/generated/Normalizer/UserAssignmentUserNormalizer.php +++ b/generated/Normalizer/UserAssignmentUserNormalizer.php @@ -32,12 +32,12 @@ class UserAssignmentUserNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' === $type; + return \JoliCode\Harvest\Api\Model\UserAssignmentUser::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UserAssignmentUser::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -93,7 +93,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' => false]; + return [\JoliCode\Harvest\Api\Model\UserAssignmentUser::class => false]; } } } else { @@ -106,17 +106,14 @@ class UserAssignmentUserNormalizer implements DenormalizerInterface, NormalizerI public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' === $type; + return \JoliCode\Harvest\Api\Model\UserAssignmentUser::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UserAssignmentUser::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -151,8 +148,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -175,7 +170,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UserAssignmentUser' => false]; + return [\JoliCode\Harvest\Api\Model\UserAssignmentUser::class => false]; } } } diff --git a/generated/Normalizer/UserAssignmentsNormalizer.php b/generated/Normalizer/UserAssignmentsNormalizer.php index 35defb2..9b6b196 100644 --- a/generated/Normalizer/UserAssignmentsNormalizer.php +++ b/generated/Normalizer/UserAssignmentsNormalizer.php @@ -32,12 +32,12 @@ class UserAssignmentsNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' === $type; + return \JoliCode\Harvest\Api\Model\UserAssignments::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UserAssignments::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('user_assignments', $data)) { $values = []; foreach ($data['user_assignments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\UserAssignment::class, 'json', $context); } $object->setUserAssignments($values); unset($data['user_assignments']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UserAssignments' => false]; + return [\JoliCode\Harvest\Api\Model\UserAssignments::class => false]; } } } else { @@ -140,17 +140,14 @@ class UserAssignmentsNormalizer implements DenormalizerInterface, NormalizerInte public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' === $type; + return \JoliCode\Harvest\Api\Model\UserAssignments::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UserAssignments' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UserAssignments::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('user_assignments', $data)) { $values = []; foreach ($data['user_assignments'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\UserAssignment', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\UserAssignment::class, 'json', $context); } $object->setUserAssignments($values); unset($data['user_assignments']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UserAssignments' => false]; + return [\JoliCode\Harvest\Api\Model\UserAssignments::class => false]; } } } diff --git a/generated/Normalizer/UserNormalizer.php b/generated/Normalizer/UserNormalizer.php index c472c48..aae9e1c 100644 --- a/generated/Normalizer/UserNormalizer.php +++ b/generated/Normalizer/UserNormalizer.php @@ -32,12 +32,12 @@ class UserNormalizer implements DenormalizerInterface, NormalizerInterface, Deno public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\User' === $type; + return \JoliCode\Harvest\Api\Model\User::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\User' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\User::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -157,13 +157,13 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setAvatarUrl(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -234,10 +234,10 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['avatar_url'] = $object->getAvatarUrl(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { @@ -250,7 +250,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\User' => false]; + return [\JoliCode\Harvest\Api\Model\User::class => false]; } } } else { @@ -263,17 +263,14 @@ class UserNormalizer implements DenormalizerInterface, NormalizerInterface, Deno public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\User' === $type; + return \JoliCode\Harvest\Api\Model\User::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\User' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\User::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -391,13 +388,13 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setAvatarUrl(null); } if (\array_key_exists('created_at', $data) && null !== $data['created_at']) { - $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['created_at'])); + $object->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['created_at'])); unset($data['created_at']); } elseif (\array_key_exists('created_at', $data) && null === $data['created_at']) { $object->setCreatedAt(null); } if (\array_key_exists('updated_at', $data) && null !== $data['updated_at']) { - $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\\TH:i:s\\Z', $data['updated_at'])); + $object->setUpdatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s\Z', $data['updated_at'])); unset($data['updated_at']); } elseif (\array_key_exists('updated_at', $data) && null === $data['updated_at']) { $object->setUpdatedAt(null); @@ -412,8 +409,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -473,10 +468,10 @@ public function normalize($object, $format = null, array $context = []) $data['avatar_url'] = $object->getAvatarUrl(); } if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { - $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['created_at'] = $object->getCreatedAt()->format('Y-m-d\TH:i:s\Z'); } if ($object->isInitialized('updatedAt') && null !== $object->getUpdatedAt()) { - $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\\TH:i:s\\Z'); + $data['updated_at'] = $object->getUpdatedAt()->format('Y-m-d\TH:i:s\Z'); } foreach ($object as $key => $value_2) { if (preg_match('/.*/', (string) $key)) { @@ -489,7 +484,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\User' => false]; + return [\JoliCode\Harvest\Api\Model\User::class => false]; } } } diff --git a/generated/Normalizer/UsersNormalizer.php b/generated/Normalizer/UsersNormalizer.php index d5c74e0..94246d6 100644 --- a/generated/Normalizer/UsersNormalizer.php +++ b/generated/Normalizer/UsersNormalizer.php @@ -32,12 +32,12 @@ class UsersNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Users' === $type; + return \JoliCode\Harvest\Api\Model\Users::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Users' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Users::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -55,7 +55,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (\array_key_exists('users', $data)) { $values = []; foreach ($data['users'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\User', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\User::class, 'json', $context); } $object->setUsers($values); unset($data['users']); @@ -89,7 +89,7 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -127,7 +127,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Users' => false]; + return [\JoliCode\Harvest\Api\Model\Users::class => false]; } } } else { @@ -140,17 +140,14 @@ class UsersNormalizer implements DenormalizerInterface, NormalizerInterface, Den public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\Users' === $type; + return \JoliCode\Harvest\Api\Model\Users::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\Users' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\Users::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -166,7 +163,7 @@ public function denormalize($data, $type, $format = null, array $context = []) if (\array_key_exists('users', $data)) { $values = []; foreach ($data['users'] as $value) { - $values[] = $this->denormalizer->denormalize($value, 'JoliCode\\Harvest\\Api\\Model\\User', 'json', $context); + $values[] = $this->denormalizer->denormalize($value, \JoliCode\Harvest\Api\Model\User::class, 'json', $context); } $object->setUsers($values); unset($data['users']); @@ -200,7 +197,7 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['page']); } if (\array_key_exists('links', $data)) { - $object->setLinks($this->denormalizer->denormalize($data['links'], 'JoliCode\\Harvest\\Api\\Model\\PaginationLinks', 'json', $context)); + $object->setLinks($this->denormalizer->denormalize($data['links'], \JoliCode\Harvest\Api\Model\PaginationLinks::class, 'json', $context)); unset($data['links']); } foreach ($data as $key => $value_1) { @@ -213,8 +210,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -243,7 +238,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\Users' => false]; + return [\JoliCode\Harvest\Api\Model\Users::class => false]; } } } diff --git a/generated/Normalizer/UsersPostBodyNormalizer.php b/generated/Normalizer/UsersPostBodyNormalizer.php index 32f41c2..5930153 100644 --- a/generated/Normalizer/UsersPostBodyNormalizer.php +++ b/generated/Normalizer/UsersPostBodyNormalizer.php @@ -32,12 +32,12 @@ class UsersPostBodyNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -199,7 +199,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersPostBody::class => false]; } } } else { @@ -212,17 +212,14 @@ class UsersPostBodyNormalizer implements DenormalizerInterface, NormalizerInterf public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -331,8 +328,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -387,7 +382,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersPostBody::class => false]; } } } diff --git a/generated/Normalizer/UsersUserIdBillableRatesPostBodyNormalizer.php b/generated/Normalizer/UsersUserIdBillableRatesPostBodyNormalizer.php index 2ca7b50..c124e9f 100644 --- a/generated/Normalizer/UsersUserIdBillableRatesPostBodyNormalizer.php +++ b/generated/Normalizer/UsersUserIdBillableRatesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class UsersUserIdBillableRatesPostBodyNormalizer implements DenormalizerInterfac public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -94,7 +94,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class => false]; } } } else { @@ -107,17 +107,14 @@ class UsersUserIdBillableRatesPostBodyNormalizer implements DenormalizerInterfac public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -155,8 +152,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -177,7 +172,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdBillableRatesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersUserIdBillableRatesPostBody::class => false]; } } } diff --git a/generated/Normalizer/UsersUserIdCostRatesPostBodyNormalizer.php b/generated/Normalizer/UsersUserIdCostRatesPostBodyNormalizer.php index 3061082..25a505b 100644 --- a/generated/Normalizer/UsersUserIdCostRatesPostBodyNormalizer.php +++ b/generated/Normalizer/UsersUserIdCostRatesPostBodyNormalizer.php @@ -32,12 +32,12 @@ class UsersUserIdCostRatesPostBodyNormalizer implements DenormalizerInterface, N public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -94,7 +94,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class => false]; } } } else { @@ -107,17 +107,14 @@ class UsersUserIdCostRatesPostBodyNormalizer implements DenormalizerInterface, N public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -155,8 +152,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -177,7 +172,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdCostRatesPostBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersUserIdCostRatesPostBody::class => false]; } } } diff --git a/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php b/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php index 2845a4a..95e0e62 100644 --- a/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php +++ b/generated/Normalizer/UsersUserIdPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class UsersUserIdPatchBodyNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -181,7 +181,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class => false]; } } } else { @@ -194,17 +194,14 @@ class UsersUserIdPatchBodyNormalizer implements DenormalizerInterface, Normalize public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -295,8 +292,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -351,7 +346,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersUserIdPatchBody::class => false]; } } } diff --git a/generated/Normalizer/UsersUserIdTeammatesPatchBodyNormalizer.php b/generated/Normalizer/UsersUserIdTeammatesPatchBodyNormalizer.php index fe7f525..2878d54 100644 --- a/generated/Normalizer/UsersUserIdTeammatesPatchBodyNormalizer.php +++ b/generated/Normalizer/UsersUserIdTeammatesPatchBodyNormalizer.php @@ -32,12 +32,12 @@ class UsersUserIdTeammatesPatchBodyNormalizer implements DenormalizerInterface, public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class === $data::class; } public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed @@ -90,7 +90,7 @@ public function normalize(mixed $object, ?string $format = null, array $context public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class => false]; } } } else { @@ -103,17 +103,14 @@ class UsersUserIdTeammatesPatchBodyNormalizer implements DenormalizerInterface, public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool { - return 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' === $type; + return \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class === $type; } public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool { - return \is_object($data) && 'JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' === $data::class; + return \is_object($data) && \JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class === $data::class; } - /** - * @param mixed|null $format - */ public function denormalize($data, $type, $format = null, array $context = []) { if (isset($data['$ref'])) { @@ -146,8 +143,6 @@ public function denormalize($data, $type, $format = null, array $context = []) } /** - * @param mixed|null $format - * * @return array|string|int|float|bool|\ArrayObject|null */ public function normalize($object, $format = null, array $context = []) @@ -169,7 +164,7 @@ public function normalize($object, $format = null, array $context = []) public function getSupportedTypes(?string $format = null): array { - return ['JoliCode\\Harvest\\Api\\Model\\UsersUserIdTeammatesPatchBody' => false]; + return [\JoliCode\Harvest\Api\Model\UsersUserIdTeammatesPatchBody::class => false]; } } } diff --git a/generated/Runtime/Client/BaseEndpoint.php b/generated/Runtime/Client/BaseEndpoint.php index 2076b21..2f4e145 100644 --- a/generated/Runtime/Client/BaseEndpoint.php +++ b/generated/Runtime/Client/BaseEndpoint.php @@ -78,7 +78,7 @@ protected function getMultipartBody($streamFactory = null): array $bodyBuilder->addResource($key, $value); } - return [['Content-Type' => ['multipart/form-data; boundary="'.($bodyBuilder->getBoundary().'"')]], $bodyBuilder->build()]; + return [['Content-Type' => ['multipart/form-data; boundary="' . ($bodyBuilder->getBoundary() . '"')]], $bodyBuilder->build()]; } protected function getFormOptionsResolver(): OptionsResolver diff --git a/generated/Runtime/Client/Client.php b/generated/Runtime/Client/Client.php index 65df529..80ae8b5 100644 --- a/generated/Runtime/Client/Client.php +++ b/generated/Runtime/Client/Client.php @@ -69,7 +69,7 @@ private function processEndpoint(Endpoint $endpoint): ResponseInterface [$bodyHeaders, $body] = $endpoint->getBody($this->serializer, $this->streamFactory); $queryString = $endpoint->getQueryString(); $uriGlue = !str_contains($endpoint->getUri(), '?') ? '?' : '&'; - $uri = '' !== $queryString ? $endpoint->getUri().$uriGlue.$queryString : $endpoint->getUri(); + $uri = '' !== $queryString ? $endpoint->getUri() . $uriGlue . $queryString : $endpoint->getUri(); $request = $this->requestFactory->createRequest($endpoint->getMethod(), $uri); if ($body) { if ($body instanceof StreamInterface) { diff --git a/generated/Runtime/Client/Endpoint.php b/generated/Runtime/Client/Endpoint.php index ba82501..46042e4 100644 --- a/generated/Runtime/Client/Endpoint.php +++ b/generated/Runtime/Client/Endpoint.php @@ -21,8 +21,6 @@ interface Endpoint * * Return value consist of an array where the first item will be a list of headers to add on the request (like the Content Type) * And the second value consist of the body object. - * - * @param mixed|null $streamFactory */ public function getBody(SerializerInterface $serializer, $streamFactory = null): array; diff --git a/src/ClientFactory.php b/src/ClientFactory.php index cff615c..a74f008 100644 --- a/src/ClientFactory.php +++ b/src/ClientFactory.php @@ -29,7 +29,7 @@ public static function create(string $token, string $accountId, ?ClientInterface ]), new AuthenticationRegistry([ new AccountAuthAuthentication($accountId), - new BearerAuthAuthentication('Bearer '.$token), + new BearerAuthAuthentication('Bearer ' . $token), ]), ]); } diff --git a/tests/ModelTest.php b/tests/ModelTest.php index e8917f7..aa34634 100644 --- a/tests/ModelTest.php +++ b/tests/ModelTest.php @@ -54,7 +54,7 @@ public function testModel(string $modelName, string $body, bool $shouldNotPass) public function provideExamples(): array { $examples = []; - $openapi = Yaml::parseFile(__DIR__.'/../Resources/harvest-openapi.yaml'); + $openapi = Yaml::parseFile(__DIR__ . '/../Resources/harvest-openapi.yaml'); $failedExpected = [ ]; @@ -67,9 +67,7 @@ public function provideExamples(): array foreach ($endpoint['responses'] as $statusCode => $response) { if ('default' !== $statusCode) { if ( - isset($response['content']) - && isset($response['content']['application/json']) - && isset($response['content']['application/json']['example']) + isset($response['content'], $response['content']['application/json'], $response['content']['application/json']['example']) ) { $modelName = $this->getFullClassName($response['content']['application/json']['schema']['$ref']); $example = json_encode($response['content']['application/json']['example']); @@ -90,8 +88,8 @@ public function provideExamples(): array private function getFullClassName(string $name): string { - return sprintf( - 'JoliCode\\Harvest\\Api\\Model\\%s', + return \sprintf( + 'JoliCode\Harvest\Api\Model\%s', substr($name, \strlen('#/components/schemas/')) ); } From 187e33e075b55640a7313661ef1c088b85c5fa40 Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Sat, 7 Dec 2024 19:19:15 +0100 Subject: [PATCH 4/5] update CI targets --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1eee43e..2cbae14 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,7 +38,7 @@ jobs: strategy: max-parallel: 15 matrix: - php-versions: ['8.1', '8.2', '8.3'] + php-versions: ['8.1', '8.2', '8.3', '8.4'] steps: - name: Checkout uses: actions/checkout@v3 From 931eab22b57f1bdf6daae6dbcc45ba6425b3f998 Mon Sep 17 00:00:00 2001 From: Xavier Lacot Date: Sat, 7 Dec 2024 19:25:53 +0100 Subject: [PATCH 5/5] CHANGELOG update for the upcoming v7.1.0 --- CHANGELOG.md | 5 +++++ doc/updating-sdk.md | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d45c7f6..383f3c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changes between versions +## 7.1.0 (2024-12-07) + + * update the SDK based on the latest spec updates - see jolicode/harvest-openapi-generator#29 in #48 + * upgrade CS tooling + ## 7.0.0 (2024-03-29) * upgrade to `janephp/open-api` 7.6 diff --git a/doc/updating-sdk.md b/doc/updating-sdk.md index 74f3b9d..2817f62 100644 --- a/doc/updating-sdk.md +++ b/doc/updating-sdk.md @@ -18,6 +18,7 @@ running the following command: ```bash castor update +castor qa:cs ``` This will both update the specification and re-generate the library code. @@ -37,4 +38,5 @@ and re-generate the library code. This can be done with the following commands: ```bash castor sdk:update-specification castor sdk:generate +castor qa:cs ```