Skip to content

Commit

Permalink
fix: LanguageTranslation return types (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Jul 5, 2024
1 parent 06f4b10 commit 12b56d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CrowdinApiClient/Model/LanguageTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class LanguageTranslation extends BaseModel
protected $plurals;

/**
* LanguageTranslation constructor
* @param array $data
*/
public function __construct(array $data = [])
{
parent::__construct($data);

$this->stringId = (int)$this->getDataProperty('stringId');
$this->contentType = (string)$this->getDataProperty('contentType');

Expand Down Expand Up @@ -74,7 +74,7 @@ public function getContentType(): string
return $this->contentType;
}

public function getTranslationId(): int
public function getTranslationId(): ?int
{
return $this->translationId;
}
Expand All @@ -84,7 +84,7 @@ public function setTranslationId(int $translationId): void
$this->translationId = $translationId;
}

public function getText(): string
public function getText(): ?string
{
return $this->text;
}
Expand All @@ -99,7 +99,7 @@ public function setText(string $text): void
$this->text = $text;
}

public function getPlurals(): array
public function getPlurals(): ?array
{
return $this->plurals;
}
Expand Down

0 comments on commit 12b56d1

Please sign in to comment.