Skip to content

Commit

Permalink
Merge pull request #113 from braze-community/dependabot/submodules/br…
Browse files Browse the repository at this point in the history
…aze-specification-93f5556

build(deps): bump braze-specification from `ddd23d2` to `93f5556`
  • Loading branch information
remarkablemark authored Oct 10, 2024
2 parents caaaef0 + 88fd3ef commit b56debf
Show file tree
Hide file tree
Showing 17 changed files with 309 additions and 181 deletions.
6 changes: 3 additions & 3 deletions lib/Model/CampaignsTriggerScheduleCreatePostBodyAudience.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var list<mixed>
* @var list<array<string, mixed>>
*/
protected $aND;

/**
* @return list<mixed>
* @return list<array<string, mixed>>
*/
public function getAND(): array
{
return $this->aND;
}

/**
* @param list<mixed> $aND
* @param list<array<string, mixed>> $aND
*/
public function setAND(array $aND): self
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/CampaignsTriggerSendPostBodyAudience.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var list<mixed>
* @var list<array<string, mixed>>
*/
protected $aND;

/**
* @return list<mixed>
* @return list<array<string, mixed>>
*/
public function getAND(): array
{
return $this->aND;
}

/**
* @param list<mixed> $aND
* @param list<array<string, mixed>> $aND
*/
public function setAND(array $aND): self
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/CanvasTriggerScheduleCreatePostBodyAudience.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var list<mixed>
* @var list<array<string, mixed>>
*/
protected $aND;

/**
* @return list<mixed>
* @return list<array<string, mixed>>
*/
public function getAND(): array
{
return $this->aND;
}

/**
* @param list<mixed> $aND
* @param list<array<string, mixed>> $aND
*/
public function setAND(array $aND): self
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/CanvasTriggerSendPostBodyAudience.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var list<mixed>
* @var list<array<string, mixed>>
*/
protected $aND;

/**
* @return list<mixed>
* @return list<array<string, mixed>>
*/
public function getAND(): array
{
return $this->aND;
}

/**
* @param list<mixed> $aND
* @param list<array<string, mixed>> $aND
*/
public function setAND(array $aND): self
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/MessagesScheduleCreatePostBodyAudience.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var list<mixed>
* @var list<array<string, mixed>>
*/
protected $aND;

/**
* @return list<mixed>
* @return list<array<string, mixed>>
*/
public function getAND(): array
{
return $this->aND;
}

/**
* @param list<mixed> $aND
* @param list<array<string, mixed>> $aND
*/
public function setAND(array $aND): self
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/MessagesSendPostBodyAudience.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var list<mixed>
* @var list<array<string, mixed>>
*/
protected $aND;

/**
* @return list<mixed>
* @return list<array<string, mixed>>
*/
public function getAND(): array
{
return $this->aND;
}

/**
* @param list<mixed> $aND
* @param list<array<string, mixed>> $aND
*/
public function setAND(array $aND): self
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/UsersMergePostBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ public function isInitialized($property): bool
return array_key_exists($property, $this->initialized);
}
/**
* @var list<mixed>
* @var list<array<string, mixed>>
*/
protected $mergeUpdates;

/**
* @return list<mixed>
* @return list<array<string, mixed>>
*/
public function getMergeUpdates(): array
{
return $this->mergeUpdates;
}

/**
* @param list<mixed> $mergeUpdates
* @param list<array<string, mixed>> $mergeUpdates
*/
public function setMergeUpdates(array $mergeUpdates): self
{
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/UsersTrackPostBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function isInitialized($property): bool
*/
protected $attributes;
/**
* @var list<mixed>
* @var list<array<string, mixed>>
*/
protected $events;
/**
Expand Down Expand Up @@ -54,15 +54,15 @@ public function setAttributes(array $attributes): self
}

/**
* @return list<mixed>
* @return list<array<string, mixed>>
*/
public function getEvents(): array
{
return $this->events;
}

/**
* @param list<mixed> $events
* @param list<array<string, mixed>> $events
*/
public function setEvents(array $events): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
if (\array_key_exists('AND', $data)) {
$values = [];
foreach ($data['AND'] as $value) {
$values[] = $value;
$values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
foreach ($value as $key => $value_1) {
$values_1[$key] = $value_1;
}
$values[] = $values_1;
}
$object->setAND($values);
unset($data['AND']);
}
foreach ($data as $key => $value_1) {
if (preg_match('/.*/', (string) $key)) {
$object[$key] = $value_1;
foreach ($data as $key_1 => $value_2) {
if (preg_match('/.*/', (string) $key_1)) {
$object[$key_1] = $value_2;
}
}

Expand All @@ -74,13 +78,17 @@ public function normalize(mixed $object, ?string $format = null, array $context
if ($object->isInitialized('aND') && null !== $object->getAND()) {
$values = [];
foreach ($object->getAND() as $value) {
$values[] = $value;
$values_1 = [];
foreach ($value as $key => $value_1) {
$values_1[$key] = $value_1;
}
$values[] = $values_1;
}
$data['AND'] = $values;
}
foreach ($object as $key => $value_1) {
if (preg_match('/.*/', (string) $key)) {
$data[$key] = $value_1;
foreach ($object as $key_1 => $value_2) {
if (preg_match('/.*/', (string) $key_1)) {
$data[$key_1] = $value_2;
}
}

Expand Down Expand Up @@ -125,14 +133,18 @@ public function denormalize($data, $type, $format = null, array $context = [])
if (\array_key_exists('AND', $data)) {
$values = [];
foreach ($data['AND'] as $value) {
$values[] = $value;
$values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
foreach ($value as $key => $value_1) {
$values_1[$key] = $value_1;
}
$values[] = $values_1;
}
$object->setAND($values);
unset($data['AND']);
}
foreach ($data as $key => $value_1) {
if (preg_match('/.*/', (string) $key)) {
$object[$key] = $value_1;
foreach ($data as $key_1 => $value_2) {
if (preg_match('/.*/', (string) $key_1)) {
$object[$key_1] = $value_2;
}
}

Expand All @@ -148,13 +160,17 @@ public function normalize($object, $format = null, array $context = [])
if ($object->isInitialized('aND') && null !== $object->getAND()) {
$values = [];
foreach ($object->getAND() as $value) {
$values[] = $value;
$values_1 = [];
foreach ($value as $key => $value_1) {
$values_1[$key] = $value_1;
}
$values[] = $values_1;
}
$data['AND'] = $values;
}
foreach ($object as $key => $value_1) {
if (preg_match('/.*/', (string) $key)) {
$data[$key] = $value_1;
foreach ($object as $key_1 => $value_2) {
if (preg_match('/.*/', (string) $key_1)) {
$data[$key_1] = $value_2;
}
}

Expand Down
48 changes: 32 additions & 16 deletions lib/Normalizer/CampaignsTriggerSendPostBodyAudienceNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
if (\array_key_exists('AND', $data)) {
$values = [];
foreach ($data['AND'] as $value) {
$values[] = $value;
$values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
foreach ($value as $key => $value_1) {
$values_1[$key] = $value_1;
}
$values[] = $values_1;
}
$object->setAND($values);
unset($data['AND']);
}
foreach ($data as $key => $value_1) {
if (preg_match('/.*/', (string) $key)) {
$object[$key] = $value_1;
foreach ($data as $key_1 => $value_2) {
if (preg_match('/.*/', (string) $key_1)) {
$object[$key_1] = $value_2;
}
}

Expand All @@ -74,13 +78,17 @@ public function normalize(mixed $object, ?string $format = null, array $context
if ($object->isInitialized('aND') && null !== $object->getAND()) {
$values = [];
foreach ($object->getAND() as $value) {
$values[] = $value;
$values_1 = [];
foreach ($value as $key => $value_1) {
$values_1[$key] = $value_1;
}
$values[] = $values_1;
}
$data['AND'] = $values;
}
foreach ($object as $key => $value_1) {
if (preg_match('/.*/', (string) $key)) {
$data[$key] = $value_1;
foreach ($object as $key_1 => $value_2) {
if (preg_match('/.*/', (string) $key_1)) {
$data[$key_1] = $value_2;
}
}

Expand Down Expand Up @@ -125,14 +133,18 @@ public function denormalize($data, $type, $format = null, array $context = [])
if (\array_key_exists('AND', $data)) {
$values = [];
foreach ($data['AND'] as $value) {
$values[] = $value;
$values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
foreach ($value as $key => $value_1) {
$values_1[$key] = $value_1;
}
$values[] = $values_1;
}
$object->setAND($values);
unset($data['AND']);
}
foreach ($data as $key => $value_1) {
if (preg_match('/.*/', (string) $key)) {
$object[$key] = $value_1;
foreach ($data as $key_1 => $value_2) {
if (preg_match('/.*/', (string) $key_1)) {
$object[$key_1] = $value_2;
}
}

Expand All @@ -148,13 +160,17 @@ public function normalize($object, $format = null, array $context = [])
if ($object->isInitialized('aND') && null !== $object->getAND()) {
$values = [];
foreach ($object->getAND() as $value) {
$values[] = $value;
$values_1 = [];
foreach ($value as $key => $value_1) {
$values_1[$key] = $value_1;
}
$values[] = $values_1;
}
$data['AND'] = $values;
}
foreach ($object as $key => $value_1) {
if (preg_match('/.*/', (string) $key)) {
$data[$key] = $value_1;
foreach ($object as $key_1 => $value_2) {
if (preg_match('/.*/', (string) $key_1)) {
$data[$key_1] = $value_2;
}
}

Expand Down
Loading

0 comments on commit b56debf

Please sign in to comment.