Skip to content

Commit

Permalink
Added spacing before setter methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
KSGRelewise committed Oct 10, 2024
1 parent 5f29e53 commit 6747e0d
Show file tree
Hide file tree
Showing 842 changed files with 4,669 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Generator/PhpMemberWriters/PhpPropertySetterMethodsWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public void Write(IndentedTextWriter writer, Type classType, (PropertyInfo info,
{
var keyTypeName = phpWriter.PhpTypeName(keyType);
var valueTypeName = phpWriter.PhpTypeName(valueType);
writer.WriteLine();
writer.WriteCommentBlock(
phpWriter.XmlDocumentation.GetSummary(classType, propertyName),
deprecationComment
Expand All @@ -42,6 +43,7 @@ public void Write(IndentedTextWriter writer, Type classType, (PropertyInfo info,
writer.Indent--;
writer.WriteLine("}");

writer.WriteLine();
writer.WriteCommentBlock(
phpWriter.XmlDocumentation.GetSummary(classType, propertyName),
deprecationComment,
Expand All @@ -57,6 +59,7 @@ public void Write(IndentedTextWriter writer, Type classType, (PropertyInfo info,
}
else
{
writer.WriteLine();
writer.WriteCommentBlock(
phpWriter.XmlDocumentation.GetSummary(classType, propertyName),
deprecationComment
Expand All @@ -82,6 +85,7 @@ public void Write(IndentedTextWriter writer, Type classType, (PropertyInfo info,
}
if (elementType is not null)
{
writer.WriteLine();
writer.WriteCommentBlock(
phpWriter.XmlDocumentation.GetSummary(classType, propertyName),
deprecationComment,
Expand All @@ -97,6 +101,7 @@ public void Write(IndentedTextWriter writer, Type classType, (PropertyInfo info,

var elementTypeName = phpWriter.PhpTypeName(elementType);

writer.WriteLine();
writer.WriteCommentBlock(
phpWriter.XmlDocumentation.GetSummary(classType, propertyName),
deprecationComment
Expand Down
14 changes: 14 additions & 0 deletions src/Models/AbandonedCartTriggerConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,61 +26,73 @@ public static function hydrate(array $arr) : AbandonedCartTriggerConfiguration
}
return $result;
}

function setCartName(string $cartName)
{
$this->cartName = $cartName;
return $this;
}

function setId(string $id)
{
$this->id = $id;
return $this;
}

function setName(string $name)
{
$this->name = $name;
return $this;
}

function setDescription(string $description)
{
$this->description = $description;
return $this;
}

function setGroup(string $group)
{
$this->group = $group;
return $this;
}

function setEnabled(bool $enabled)
{
$this->enabled = $enabled;
return $this;
}

function setCreated(DateTime $created)
{
$this->created = $created;
return $this;
}

function setCreatedBy(string $createdBy)
{
$this->createdBy = $createdBy;
return $this;
}

function setModified(DateTime $modified)
{
$this->modified = $modified;
return $this;
}

function setModifiedBy(string $modifiedBy)
{
$this->modifiedBy = $modifiedBy;
return $this;
}

function setWithinTimeSpanMinutes(int $withinTimeSpanMinutes)
{
$this->withinTimeSpanMinutes = $withinTimeSpanMinutes;
return $this;
}

function addToSettings(string $key, string $value)
{
if (!isset($this->settings))
Expand All @@ -90,12 +102,14 @@ function addToSettings(string $key, string $value)
$this->settings[$key] = $value;
return $this;
}

/** @param array<string, string> $settings associative array. */
function setSettingsFromAssociativeArray(array $settings)
{
$this->settings = $settings;
return $this;
}

function setUserConditions(UserConditionCollection $userConditions)
{
$this->userConditions = $userConditions;
Expand Down
1 change: 1 addition & 0 deletions src/Models/AbandonedCartTriggerResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public static function hydrate(array $arr) : AbandonedCartTriggerResult
}
return $result;
}

function setUser(UserResultDetails $user)
{
$this->user = $user;
Expand Down
13 changes: 13 additions & 0 deletions src/Models/AbandonedCartTriggerResultTriggerConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,56 +21,67 @@ public static function hydrateBase(mixed $result, array $arr)
$result = TriggerConfiguration::hydrateBase($result, $arr);
return $result;
}

function setId(string $id)
{
$this->id = $id;
return $this;
}

function setName(string $name)
{
$this->name = $name;
return $this;
}

function setDescription(string $description)
{
$this->description = $description;
return $this;
}

function setGroup(string $group)
{
$this->group = $group;
return $this;
}

function setEnabled(bool $enabled)
{
$this->enabled = $enabled;
return $this;
}

function setCreated(DateTime $created)
{
$this->created = $created;
return $this;
}

function setCreatedBy(string $createdBy)
{
$this->createdBy = $createdBy;
return $this;
}

function setModified(DateTime $modified)
{
$this->modified = $modified;
return $this;
}

function setModifiedBy(string $modifiedBy)
{
$this->modifiedBy = $modifiedBy;
return $this;
}

function setWithinTimeSpanMinutes(int $withinTimeSpanMinutes)
{
$this->withinTimeSpanMinutes = $withinTimeSpanMinutes;
return $this;
}

function addToSettings(string $key, string $value)
{
if (!isset($this->settings))
Expand All @@ -80,12 +91,14 @@ function addToSettings(string $key, string $value)
$this->settings[$key] = $value;
return $this;
}

/** @param array<string, string> $settings associative array. */
function setSettingsFromAssociativeArray(array $settings)
{
$this->settings = $settings;
return $this;
}

function setUserConditions(UserConditionCollection $userConditions)
{
$this->userConditions = $userConditions;
Expand Down
6 changes: 6 additions & 0 deletions src/Models/AbandonedContentSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@ public static function hydrate(array $arr) : AbandonedContentSearch
$result = stringAbandonedSearch::hydrateBase(new AbandonedContentSearch(), $arr);
return $result;
}

function setTopResults(string ... $topResults)
{
$this->topResults = $topResults;
return $this;
}

/** @param string[] $topResults new value. */
function setTopResultsFromArray(array $topResults)
{
$this->topResults = $topResults;
return $this;
}

function addToTopResults(string $topResults)
{
if (!isset($this->topResults))
Expand All @@ -35,16 +38,19 @@ function addToTopResults(string $topResults)
array_push($this->topResults, $topResults);
return $this;
}

function setLoweredSearchTerm(string $loweredSearchTerm)
{
$this->loweredSearchTerm = $loweredSearchTerm;
return $this;
}

function setHits(int $hits)
{
$this->hits = $hits;
return $this;
}

function setLanguage(?Language $language)
{
$this->language = $language;
Expand Down
6 changes: 6 additions & 0 deletions src/Models/AbandonedProductCategorySearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@ public static function hydrate(array $arr) : AbandonedProductCategorySearch
$result = stringAbandonedSearch::hydrateBase(new AbandonedProductCategorySearch(), $arr);
return $result;
}

function setTopResults(string ... $topResults)
{
$this->topResults = $topResults;
return $this;
}

/** @param string[] $topResults new value. */
function setTopResultsFromArray(array $topResults)
{
$this->topResults = $topResults;
return $this;
}

function addToTopResults(string $topResults)
{
if (!isset($this->topResults))
Expand All @@ -35,16 +38,19 @@ function addToTopResults(string $topResults)
array_push($this->topResults, $topResults);
return $this;
}

function setLoweredSearchTerm(string $loweredSearchTerm)
{
$this->loweredSearchTerm = $loweredSearchTerm;
return $this;
}

function setHits(int $hits)
{
$this->hits = $hits;
return $this;
}

function setLanguage(?Language $language)
{
$this->language = $language;
Expand Down
6 changes: 6 additions & 0 deletions src/Models/AbandonedProductSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@ public static function hydrate(array $arr) : AbandonedProductSearch
$result = ProductAndVariantIdAbandonedSearch::hydrateBase(new AbandonedProductSearch(), $arr);
return $result;
}

function setTopResults(ProductAndVariantId ... $topResults)
{
$this->topResults = $topResults;
return $this;
}

/** @param ProductAndVariantId[] $topResults new value. */
function setTopResultsFromArray(array $topResults)
{
$this->topResults = $topResults;
return $this;
}

function addToTopResults(ProductAndVariantId $topResults)
{
if (!isset($this->topResults))
Expand All @@ -35,16 +38,19 @@ function addToTopResults(ProductAndVariantId $topResults)
array_push($this->topResults, $topResults);
return $this;
}

function setLoweredSearchTerm(string $loweredSearchTerm)
{
$this->loweredSearchTerm = $loweredSearchTerm;
return $this;
}

function setHits(int $hits)
{
$this->hits = $hits;
return $this;
}

function setLanguage(?Language $language)
{
$this->language = $language;
Expand Down
3 changes: 3 additions & 0 deletions src/Models/AbandonedSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,19 @@ public static function hydrateBase(mixed $result, array $arr)
}
return $result;
}

function setLoweredSearchTerm(string $loweredSearchTerm)
{
$this->loweredSearchTerm = $loweredSearchTerm;
return $this;
}

function setHits(int $hits)
{
$this->hits = $hits;
return $this;
}

function setLanguage(?Language $language)
{
$this->language = $language;
Expand Down
Loading

0 comments on commit 6747e0d

Please sign in to comment.