Skip to content

Commit 65a5434

Browse files
author
saad-bhutto
committed
version upgrade to generate based on key_labels
1 parent 7474864 commit 65a5434

41 files changed

Lines changed: 337 additions & 310 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Endpoints/UseCases/AbstractUseCase.php

Lines changed: 259 additions & 260 deletions
Large diffs are not rendered by default.

src/Endpoints/UseCases/AiTextCompleter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function generate(string $inputText)
3030
*/
3131
public function getInputText(): string
3232
{
33-
return $this->inputText;
33+
return $this->inputText ?? $this->input_text_label ?? null;
3434
}
3535

3636
/**

src/Endpoints/UseCases/BlogIdeaOutline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function generate(string $primaryKeyword)
3030
*/
3131
public function getPrimaryKeyword(): string
3232
{
33-
return $this->primaryKeyword;
33+
return $this->primaryKeyword ?? $this->primary_keyword_label ?? null;
3434
}
3535

3636
/**

src/Endpoints/UseCases/BlogWriting.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function generate(string $sectionTopic, string $sectionKeywords)
3434
*/
3535
public function getSectionTopic(): string
3636
{
37-
return $this->sectionTopic;
37+
return $this->sectionTopic ?? $this->section_topic_label ?? null;
3838
}
3939

4040
/**
@@ -55,7 +55,8 @@ public function setSectionTopic($value): self
5555
*/
5656
public function getSectionKeywords(): string
5757
{
58-
return $this->sectionKeywords;
58+
return $this->sectionKeywords ?? $this->section_keywords_label ?? null;
59+
5960
}
6061

6162
/**

src/Endpoints/UseCases/BrandName.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function generate(string $brandDescription)
3030
*/
3131
public function getBrandDescription(): string
3232
{
33-
return $this->brandDescription;
33+
return $this->brandDescription ?? $this->brand_description_label ?? null;
3434
}
3535

3636
/**

src/Endpoints/UseCases/BusinessIdeaPitch.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public function generate(string $businessIdea)
3030
*/
3131
public function getBusinessIdea(): string
3232
{
33-
return $this->businessIdea;
33+
return $this->businessIdea ?? $this->business_idea_label ?? null;
34+
3435
}
3536

3637
/**

src/Endpoints/UseCases/BusinessIdeas.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function generate(string $interest, string $skills)
3434
*/
3535
public function getInterest(): string
3636
{
37-
return $this->interest;
37+
return $this->interest ?? $this->interest_label ?? null ;;
3838
}
3939

4040
/**
@@ -55,7 +55,7 @@ public function setInterest($value): self
5555
*/
5656
public function getSkills(): string
5757
{
58-
return $this->skills;
58+
return $this->skills ?? $this->skills_label ?? null ;
5959
}
6060

6161
/**

src/Endpoints/UseCases/CallToAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function generate(string $description)
3030
*/
3131
public function getDescription(): string
3232
{
33-
return $this->description;
33+
return $this->description ?? $this->description_label ?? null;
3434
}
3535

3636
/**

src/Endpoints/UseCases/CopywritingFrameworkAida.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public function generate(string $productOrBrandDescription)
3030
*/
3131
public function getProductOrBrandDescription(): string
3232
{
33-
return $this->productOrBrandDescription;
33+
return $this->productOrBrandDescription ?? $this->product_or_brand_description_label ?? null;
34+
3435
}
3536

3637
/**

src/Endpoints/UseCases/CopywritingFrameworkPas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function generate(string $productOrBrandDescription)
3030
*/
3131
public function getProductOrBrandDescription(): string
3232
{
33-
return $this->productOrBrandDescription;
33+
return $this->productOrBrandDescription ?? $this->product_or_brand_description_label ?? null;
3434
}
3535

3636
/**

0 commit comments

Comments
 (0)