diff --git a/src/CrowdinApiClient/Model/Branch.php b/src/CrowdinApiClient/Model/Branch.php index 1a6540ef..6af34609 100644 --- a/src/CrowdinApiClient/Model/Branch.php +++ b/src/CrowdinApiClient/Model/Branch.php @@ -51,8 +51,8 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); $this->name = (string)$this->getDataProperty('name'); $this->title = (string)$this->getDataProperty('title'); $this->exportPattern = (string)$this->getDataProperty('exportPattern'); diff --git a/src/CrowdinApiClient/Model/Bundle.php b/src/CrowdinApiClient/Model/Bundle.php index c09def8e..7a13edcf 100644 --- a/src/CrowdinApiClient/Model/Bundle.php +++ b/src/CrowdinApiClient/Model/Bundle.php @@ -81,7 +81,7 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->name = (string)$this->getDataProperty('name'); $this->format = (string)$this->getDataProperty('format'); $this->sourcePatterns = (array)$this->getDataProperty('sourcePatterns'); diff --git a/src/CrowdinApiClient/Model/BundleExport.php b/src/CrowdinApiClient/Model/BundleExport.php index ca55cf24..2754d452 100644 --- a/src/CrowdinApiClient/Model/BundleExport.php +++ b/src/CrowdinApiClient/Model/BundleExport.php @@ -52,7 +52,7 @@ public function __construct(array $data = []) parent::__construct($data); $this->identifier = (string)$this->getDataProperty('identifier'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/Directory.php b/src/CrowdinApiClient/Model/Directory.php index a3aedc73..82d9e03d 100644 --- a/src/CrowdinApiClient/Model/Directory.php +++ b/src/CrowdinApiClient/Model/Directory.php @@ -61,10 +61,10 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); - $this->branchId = (integer)$this->getDataProperty('branchId'); - $this->directoryId = (integer)$this->getDataProperty('directoryId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); + $this->branchId = (int)$this->getDataProperty('branchId'); + $this->directoryId = (int)$this->getDataProperty('directoryId'); $this->name = (string)$this->getDataProperty('name'); $this->title = (string)$this->getDataProperty('title'); $this->exportPattern = (string)$this->getDataProperty('exportPattern'); diff --git a/src/CrowdinApiClient/Model/DistributionRelease.php b/src/CrowdinApiClient/Model/DistributionRelease.php index 625366a8..4c587f3b 100644 --- a/src/CrowdinApiClient/Model/DistributionRelease.php +++ b/src/CrowdinApiClient/Model/DistributionRelease.php @@ -39,9 +39,9 @@ public function __construct(array $data = []) parent::__construct($data); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->currentLanguageId = (string)$this->getDataProperty('currentLanguageId'); - $this->currentFileId = (integer)$this->getDataProperty('currentFileId'); + $this->currentFileId = (int)$this->getDataProperty('currentFileId'); $this->date = (string)$this->getDataProperty('date'); } diff --git a/src/CrowdinApiClient/Model/Enterprise/Group.php b/src/CrowdinApiClient/Model/Enterprise/Group.php index b9ca6aab..96c144ff 100644 --- a/src/CrowdinApiClient/Model/Enterprise/Group.php +++ b/src/CrowdinApiClient/Model/Enterprise/Group.php @@ -63,14 +63,14 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->name = (string)$this->getDataProperty('name'); $this->description = (string)$this->getDataProperty('description'); - $this->parentId = (integer)$this->getDataProperty('parentId'); - $this->organizationId = (integer)$this->getDataProperty('organizationId'); - $this->userId = (integer)$this->getDataProperty('userId'); - $this->subgroupsCount = (integer)$this->getDataProperty('subgroupsCount'); - $this->projectsCount = (integer)$this->getDataProperty('projectsCount'); + $this->parentId = (int)$this->getDataProperty('parentId'); + $this->organizationId = (int)$this->getDataProperty('organizationId'); + $this->userId = (int)$this->getDataProperty('userId'); + $this->subgroupsCount = (int)$this->getDataProperty('subgroupsCount'); + $this->projectsCount = (int)$this->getDataProperty('projectsCount'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); } diff --git a/src/CrowdinApiClient/Model/Enterprise/ReviewedSourceFileBuild.php b/src/CrowdinApiClient/Model/Enterprise/ReviewedSourceFileBuild.php index 8afd82c8..712bd52e 100644 --- a/src/CrowdinApiClient/Model/Enterprise/ReviewedSourceFileBuild.php +++ b/src/CrowdinApiClient/Model/Enterprise/ReviewedSourceFileBuild.php @@ -40,10 +40,10 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); } diff --git a/src/CrowdinApiClient/Model/Enterprise/User.php b/src/CrowdinApiClient/Model/Enterprise/User.php index b0a69572..31c608bc 100644 --- a/src/CrowdinApiClient/Model/Enterprise/User.php +++ b/src/CrowdinApiClient/Model/Enterprise/User.php @@ -73,7 +73,7 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->username = (string)$this->getDataProperty('username'); $this->email = (string)$this->getDataProperty('email'); $this->firstName = (string)$this->getDataProperty('firstName'); diff --git a/src/CrowdinApiClient/Model/Enterprise/Vendor.php b/src/CrowdinApiClient/Model/Enterprise/Vendor.php index eab14a09..84d7fa79 100644 --- a/src/CrowdinApiClient/Model/Enterprise/Vendor.php +++ b/src/CrowdinApiClient/Model/Enterprise/Vendor.php @@ -32,7 +32,7 @@ class Vendor extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->name = (string)$this->getDataProperty('name'); $this->description = (string)$this->getDataProperty('description'); $this->status = (string)$this->getDataProperty('status'); diff --git a/src/CrowdinApiClient/Model/Enterprise/WorkflowStep.php b/src/CrowdinApiClient/Model/Enterprise/WorkflowStep.php index 6db401fd..21562613 100644 --- a/src/CrowdinApiClient/Model/Enterprise/WorkflowStep.php +++ b/src/CrowdinApiClient/Model/Enterprise/WorkflowStep.php @@ -37,7 +37,7 @@ class WorkflowStep extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->title = (string)$this->getDataProperty('title'); $this->type = (string)$this->getDataProperty('type'); $this->languages = (array)$this->getDataProperty('languages'); diff --git a/src/CrowdinApiClient/Model/Enterprise/WorkflowTemplate.php b/src/CrowdinApiClient/Model/Enterprise/WorkflowTemplate.php index bb5c84d9..d054ebc5 100644 --- a/src/CrowdinApiClient/Model/Enterprise/WorkflowTemplate.php +++ b/src/CrowdinApiClient/Model/Enterprise/WorkflowTemplate.php @@ -77,10 +77,10 @@ public function isDefault(): bool public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->title = (string)$this->getDataProperty('title'); $this->description = (string)$this->getDataProperty('description'); - $this->groupId = (integer)$this->getDataProperty('groupId'); + $this->groupId = (int)$this->getDataProperty('groupId'); $this->isDefault = (bool)$this->getDataProperty('isDefault'); } } diff --git a/src/CrowdinApiClient/Model/File.php b/src/CrowdinApiClient/Model/File.php index 0f9a72c9..24fecc34 100644 --- a/src/CrowdinApiClient/Model/File.php +++ b/src/CrowdinApiClient/Model/File.php @@ -101,17 +101,17 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); - $this->branchId = (integer)$this->getDataProperty('branchId'); - $this->directoryId = (integer)$this->getDataProperty('directoryId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); + $this->branchId = (int)$this->getDataProperty('branchId'); + $this->directoryId = (int)$this->getDataProperty('directoryId'); $this->name = (string)$this->getDataProperty('name'); $this->title = (string)$this->getDataProperty('title'); $this->context = (string)$this->getDataProperty('context'); $this->type = (string)$this->getDataProperty('type'); $this->path = (string)$this->getDataProperty('path'); $this->status = (string)$this->getDataProperty('status'); - $this->revisionId = (integer)$this->getDataProperty('revisionId'); + $this->revisionId = (int)$this->getDataProperty('revisionId'); $this->priority = (string)$this->getDataProperty('priority'); $this->importOptions = (array)$this->getDataProperty('importOptions'); $this->exportOptions = (array)$this->getDataProperty('exportOptions'); diff --git a/src/CrowdinApiClient/Model/FileRevision.php b/src/CrowdinApiClient/Model/FileRevision.php index 3a7bc9f2..324668f3 100644 --- a/src/CrowdinApiClient/Model/FileRevision.php +++ b/src/CrowdinApiClient/Model/FileRevision.php @@ -44,10 +44,10 @@ class FileRevision extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); - $this->restoreToRevision = (integer)$this->getDataProperty('restoreToRevision'); - $this->fileId = (integer)$this->getDataProperty('fileId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); + $this->restoreToRevision = (int)$this->getDataProperty('restoreToRevision'); + $this->fileId = (int)$this->getDataProperty('fileId'); $this->info = (array)$this->getDataProperty('info'); $this->date = (string)$this->getDataProperty('date'); } diff --git a/src/CrowdinApiClient/Model/Glossary.php b/src/CrowdinApiClient/Model/Glossary.php index ee837d42..aa58a962 100644 --- a/src/CrowdinApiClient/Model/Glossary.php +++ b/src/CrowdinApiClient/Model/Glossary.php @@ -66,11 +66,11 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->name = (string)$this->getDataProperty('name'); - $this->groupId = (integer)$this->getDataProperty('groupId'); - $this->userId = (integer)$this->getDataProperty('userId'); - $this->terms = (integer)$this->getDataProperty('terms'); + $this->groupId = (int)$this->getDataProperty('groupId'); + $this->userId = (int)$this->getDataProperty('userId'); + $this->terms = (int)$this->getDataProperty('terms'); $this->languageId = (string)$this->getDataProperty('languageId'); $this->languageIds = (array)$this->getDataProperty('languageIds'); $this->defaultProjectIds = (array)$this->getDataProperty('defaultProjectIds'); diff --git a/src/CrowdinApiClient/Model/GlossaryExport.php b/src/CrowdinApiClient/Model/GlossaryExport.php index dfa56a7c..de84615c 100644 --- a/src/CrowdinApiClient/Model/GlossaryExport.php +++ b/src/CrowdinApiClient/Model/GlossaryExport.php @@ -53,7 +53,7 @@ public function __construct(array $data = []) $this->identifier = (string)$this->getDataProperty('identifier'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/GlossaryImport.php b/src/CrowdinApiClient/Model/GlossaryImport.php index 1f32458e..627ddeca 100644 --- a/src/CrowdinApiClient/Model/GlossaryImport.php +++ b/src/CrowdinApiClient/Model/GlossaryImport.php @@ -53,7 +53,7 @@ public function __construct(array $data = []) $this->identifier = (string)$this->getDataProperty('identifier'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/Group.php b/src/CrowdinApiClient/Model/Group.php index 871d78c6..bc8f198a 100644 --- a/src/CrowdinApiClient/Model/Group.php +++ b/src/CrowdinApiClient/Model/Group.php @@ -61,14 +61,14 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->name = (string)$this->getDataProperty('name'); $this->description = (string)$this->getDataProperty('description'); - $this->parentId = (integer)$this->getDataProperty('parentId'); - $this->organizationId = (integer)$this->getDataProperty('organizationId'); - $this->userId = (integer)$this->getDataProperty('userId'); - $this->subgroupsCount = (integer)$this->getDataProperty('subgroupsCount'); - $this->projectsCount = (integer)$this->getDataProperty('projectsCount'); + $this->parentId = (int)$this->getDataProperty('parentId'); + $this->organizationId = (int)$this->getDataProperty('organizationId'); + $this->userId = (int)$this->getDataProperty('userId'); + $this->subgroupsCount = (int)$this->getDataProperty('subgroupsCount'); + $this->projectsCount = (int)$this->getDataProperty('projectsCount'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); } diff --git a/src/CrowdinApiClient/Model/Issue.php b/src/CrowdinApiClient/Model/Issue.php index e10fc4b6..8514bbf8 100644 --- a/src/CrowdinApiClient/Model/Issue.php +++ b/src/CrowdinApiClient/Model/Issue.php @@ -60,10 +60,10 @@ class Issue extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->text = (string)$this->getDataProperty('text'); - $this->userId = (integer)$this->getDataProperty('userId'); - $this->stringId = (integer)$this->getDataProperty('stringId'); + $this->userId = (int)$this->getDataProperty('userId'); + $this->stringId = (int)$this->getDataProperty('stringId'); $this->user = (array)$this->getDataProperty('user'); $this->string = (array)$this->getDataProperty('string'); $this->languageId = (string)$this->getDataProperty('languageId'); diff --git a/src/CrowdinApiClient/Model/Label.php b/src/CrowdinApiClient/Model/Label.php index b34e429b..075bc57f 100644 --- a/src/CrowdinApiClient/Model/Label.php +++ b/src/CrowdinApiClient/Model/Label.php @@ -26,8 +26,8 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); $this->title = (string)$this->getDataProperty('title'); } diff --git a/src/CrowdinApiClient/Model/MachineTranslationEngine.php b/src/CrowdinApiClient/Model/MachineTranslationEngine.php index 6290e439..d6a0196b 100644 --- a/src/CrowdinApiClient/Model/MachineTranslationEngine.php +++ b/src/CrowdinApiClient/Model/MachineTranslationEngine.php @@ -44,8 +44,8 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->groupId = (integer)$this->getDataProperty('groupId'); + $this->id = (int)$this->getDataProperty('id'); + $this->groupId = (int)$this->getDataProperty('groupId'); $this->name = (string)$this->getDataProperty('name'); $this->type = (string)$this->getDataProperty('type'); $this->credentials = (array)$this->getDataProperty('credentials'); diff --git a/src/CrowdinApiClient/Model/PreTranslation.php b/src/CrowdinApiClient/Model/PreTranslation.php index 75cfa5c0..28912415 100644 --- a/src/CrowdinApiClient/Model/PreTranslation.php +++ b/src/CrowdinApiClient/Model/PreTranslation.php @@ -53,7 +53,7 @@ public function __construct(array $data = []) $this->identifier = (string)$this->getDataProperty('identifier'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/Progress.php b/src/CrowdinApiClient/Model/Progress.php index 5af217cf..6b8514f0 100644 --- a/src/CrowdinApiClient/Model/Progress.php +++ b/src/CrowdinApiClient/Model/Progress.php @@ -48,8 +48,8 @@ public function __construct(array $data = []) $this->languageId = (string)$this->getDataProperty('languageId'); $this->words = (array)$this->getDataProperty('words'); $this->phrases = (array)$this->getDataProperty('phrases'); - $this->translationProgress = (integer)$this->getDataProperty('translationProgress'); - $this->approvalProgress = (integer)$this->getDataProperty('approvalProgress'); + $this->translationProgress = (int)$this->getDataProperty('translationProgress'); + $this->approvalProgress = (int)$this->getDataProperty('approvalProgress'); } public function getLanguage(): Language diff --git a/src/CrowdinApiClient/Model/ProgressLanguage.php b/src/CrowdinApiClient/Model/ProgressLanguage.php index d3e040f8..548daa4f 100644 --- a/src/CrowdinApiClient/Model/ProgressLanguage.php +++ b/src/CrowdinApiClient/Model/ProgressLanguage.php @@ -48,9 +48,9 @@ public function __construct(array $data = []) $this->words = (array)$this->getDataProperty('words'); $this->phrases = (array)$this->getDataProperty('phrases'); - $this->translationProgress = (integer)$this->getDataProperty('translationProgress'); - $this->approvalProgress = (integer)$this->getDataProperty('approvalProgress'); - $this->fileId = (integer)$this->getDataProperty('fileId'); + $this->translationProgress = (int)$this->getDataProperty('translationProgress'); + $this->approvalProgress = (int)$this->getDataProperty('approvalProgress'); + $this->fileId = (int)$this->getDataProperty('fileId'); $this->etag = (string)$this->getDataProperty('eTag'); } diff --git a/src/CrowdinApiClient/Model/Project.php b/src/CrowdinApiClient/Model/Project.php index eed35ebf..c309ed7a 100644 --- a/src/CrowdinApiClient/Model/Project.php +++ b/src/CrowdinApiClient/Model/Project.php @@ -256,9 +256,9 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->groupId = (integer)$this->getDataProperty('groupId'); - $this->userId = (integer)$this->getDataProperty('userId'); + $this->id = (int)$this->getDataProperty('id'); + $this->groupId = (int)$this->getDataProperty('groupId'); + $this->userId = (int)$this->getDataProperty('userId'); $this->sourceLanguageId = (string)$this->getDataProperty('sourceLanguageId'); $this->targetLanguageIds = (array)$this->getDataProperty('targetLanguageIds'); $this->targetLanguages = (array)$this->getDataProperty('targetLanguages'); @@ -272,18 +272,18 @@ public function __construct(array $data = []) $this->background = (string)$this->getDataProperty('background'); $this->isExternal = (bool)$this->getDataProperty('isExternal'); $this->externalType = (string)$this->getDataProperty('externalType'); - $this->workflowId = (integer)$this->getDataProperty('workflowId'); + $this->workflowId = (int)$this->getDataProperty('workflowId'); $this->hasCrowdsourcing = (bool)$this->getDataProperty('hasCrowdsourcing'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); $this->lastActivity = (string)$this->getDataProperty('lastActivity'); - $this->translateDuplicates = (integer)$this->getDataProperty('translateDuplicates'); + $this->translateDuplicates = (int)$this->getDataProperty('translateDuplicates'); $this->isMtAllowed = (bool)$this->getDataProperty('isMtAllowed'); $this->autoSubstitution = (bool)$this->getDataProperty('autoSubstitution'); $this->skipUntranslatedStrings = (bool)$this->getDataProperty('skipUntranslatedStrings'); $this->skipUntranslatedFiles = (bool)$this->getDataProperty('skipUntranslatedFiles'); - $this->exportWithMinApprovalsCount = (integer)$this->getDataProperty('exportWithMinApprovalsCount'); + $this->exportWithMinApprovalsCount = (int)$this->getDataProperty('exportWithMinApprovalsCount'); $this->exportApprovedOnly = (bool)$this->getDataProperty('exportApprovedOnly'); $this->autoTranslateDialects = (bool)$this->getDataProperty('autoTranslateDialects'); $this->publicDownloads = (bool)$this->getDataProperty('publicDownloads'); @@ -303,8 +303,8 @@ public function __construct(array $data = []) $this->normalizePlaceholder = (bool)$this->getDataProperty('normalizePlaceholder'); $this->saveMetaInfoInSource = (bool)$this->getDataProperty('saveMetaInfoInSource'); $this->notificationSettings = (array)$this->getDataProperty('notificationSettings'); - $this->defaultTmId = (integer)$this->getDataProperty('defaultTmId'); - $this->defaultGlossaryId = (integer)$this->getDataProperty('defaultGlossaryId'); + $this->defaultTmId = (int)$this->getDataProperty('defaultTmId'); + $this->defaultGlossaryId = (int)$this->getDataProperty('defaultGlossaryId'); } /** diff --git a/src/CrowdinApiClient/Model/QaCheck.php b/src/CrowdinApiClient/Model/QaCheck.php index c0cdaaff..f20c71ba 100644 --- a/src/CrowdinApiClient/Model/QaCheck.php +++ b/src/CrowdinApiClient/Model/QaCheck.php @@ -50,13 +50,13 @@ class QaCheck extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->stringId = (integer)$this->getDataProperty('stringId'); + $this->stringId = (int)$this->getDataProperty('stringId'); $this->languageId = (string)$this->getDataProperty('languageId'); $this->category = (string)$this->getDataProperty('category'); $this->categoryDescription = (string)$this->getDataProperty('categoryDescription'); $this->validation = (string)$this->getDataProperty('validation'); $this->validationDescription = (string)$this->getDataProperty('validationDescription'); - $this->pluralId = (integer)$this->getDataProperty('pluralId'); + $this->pluralId = (int)$this->getDataProperty('pluralId'); $this->text = (string)$this->getDataProperty('text'); } diff --git a/src/CrowdinApiClient/Model/Report.php b/src/CrowdinApiClient/Model/Report.php index bee5318e..60ffe655 100644 --- a/src/CrowdinApiClient/Model/Report.php +++ b/src/CrowdinApiClient/Model/Report.php @@ -115,7 +115,7 @@ public function __construct(array $data = []) $this->identifier = (string)$this->getDataProperty('identifier'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/ReportArchive.php b/src/CrowdinApiClient/Model/ReportArchive.php index 00426214..2bc797fa 100644 --- a/src/CrowdinApiClient/Model/ReportArchive.php +++ b/src/CrowdinApiClient/Model/ReportArchive.php @@ -40,10 +40,10 @@ class ReportArchive extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->scopeType = (string)$this->getDataProperty('scopeType'); - $this->scopeId = (integer)$this->getDataProperty('scopeId'); - $this->userId = (integer)$this->getDataProperty('userId'); + $this->scopeId = (int)$this->getDataProperty('scopeId'); + $this->userId = (int)$this->getDataProperty('userId'); $this->name = (string)$this->getDataProperty('name'); $this->webUrl = (string)$this->getDataProperty('webUrl'); $this->scheme = (array)$this->getDataProperty('scheme'); diff --git a/src/CrowdinApiClient/Model/ReportArchiveExport.php b/src/CrowdinApiClient/Model/ReportArchiveExport.php index 7051ddf7..e8c639ed 100644 --- a/src/CrowdinApiClient/Model/ReportArchiveExport.php +++ b/src/CrowdinApiClient/Model/ReportArchiveExport.php @@ -49,7 +49,7 @@ public function __construct(array $data = []) parent::__construct($data); $this->identifier = (string)$this->getDataProperty('identifier'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/Screenshot.php b/src/CrowdinApiClient/Model/Screenshot.php index 8771c62e..c11811e8 100644 --- a/src/CrowdinApiClient/Model/Screenshot.php +++ b/src/CrowdinApiClient/Model/Screenshot.php @@ -60,12 +60,12 @@ class Screenshot extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->userId = (integer)$this->getDataProperty('userId'); + $this->id = (int)$this->getDataProperty('id'); + $this->userId = (int)$this->getDataProperty('userId'); $this->url = (string)$this->getDataProperty('url'); $this->name = (string)$this->getDataProperty('name'); $this->size = (array)$this->getDataProperty('size'); - $this->tagsCount = (integer)$this->getDataProperty('tagsCount'); + $this->tagsCount = (int)$this->getDataProperty('tagsCount'); $this->tags = (array)$this->getDataProperty('tags'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/SourceString.php b/src/CrowdinApiClient/Model/SourceString.php index d98b60a0..a4032c97 100644 --- a/src/CrowdinApiClient/Model/SourceString.php +++ b/src/CrowdinApiClient/Model/SourceString.php @@ -108,14 +108,14 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); - $this->fileId = (integer)$this->getDataProperty('fileId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); + $this->fileId = (int)$this->getDataProperty('fileId'); $this->branchId = $this->getDataProperty('branchId') - ? (integer)$this->getDataProperty('branchId') + ? (int)$this->getDataProperty('branchId') : null; $this->directoryId = $this->getDataProperty('directoryId') - ? (integer)$this->getDataProperty('directoryId') + ? (int)$this->getDataProperty('directoryId') : null; $this->identifier = (string)$this->getDataProperty('identifier'); $this->text = is_array($this->getDataProperty('text')) @@ -123,9 +123,9 @@ public function __construct(array $data = []) : (string)$this->getDataProperty('text'); $this->type = (string)$this->getDataProperty('type'); $this->context = (string)$this->getDataProperty('context'); - $this->maxLength = (integer)$this->getDataProperty('maxLength'); + $this->maxLength = (int)$this->getDataProperty('maxLength'); $this->isHidden = (bool)$this->getDataProperty('isHidden'); - $this->revision = (integer)$this->getDataProperty('revision'); + $this->revision = (int)$this->getDataProperty('revision'); $this->hasPlurals = (bool)$this->getDataProperty('hasPlurals'); $this->isIcu = (bool)$this->getDataProperty('isIcu'); $this->labelIds = (array)$this->getDataProperty('labelIds'); diff --git a/src/CrowdinApiClient/Model/Storage.php b/src/CrowdinApiClient/Model/Storage.php index fb38d415..c95c13e2 100644 --- a/src/CrowdinApiClient/Model/Storage.php +++ b/src/CrowdinApiClient/Model/Storage.php @@ -20,7 +20,7 @@ class Storage extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->fileName = (string)$this->getDataProperty('fileName'); } diff --git a/src/CrowdinApiClient/Model/StringComment.php b/src/CrowdinApiClient/Model/StringComment.php index 86f110cb..86e17c14 100644 --- a/src/CrowdinApiClient/Model/StringComment.php +++ b/src/CrowdinApiClient/Model/StringComment.php @@ -80,17 +80,17 @@ class StringComment extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->text = (string)$this->getDataProperty('text'); - $this->userId = (integer)$this->getDataProperty('userId'); - $this->stringId = (integer)$this->getDataProperty('stringId'); + $this->userId = (int)$this->getDataProperty('userId'); + $this->stringId = (int)$this->getDataProperty('stringId'); $this->user = (array)$this->getDataProperty('user'); $this->string = (array)$this->getDataProperty('string'); $this->languageId = (string)$this->getDataProperty('languageId'); $this->type = (string)$this->getDataProperty('type'); $this->issueType = (string)$this->getDataProperty('issueType'); $this->issueStatus = (string)$this->getDataProperty('issueStatus'); - $this->resolverId = (integer)$this->getDataProperty('resolverId'); + $this->resolverId = (int)$this->getDataProperty('resolverId'); $this->resolver = (array)$this->getDataProperty('resolver'); $this->resolvedAt = (string)$this->getDataProperty('resolvedAt'); $this->createdAt = (string)$this->getDataProperty('createdAt'); diff --git a/src/CrowdinApiClient/Model/StringCorrection.php b/src/CrowdinApiClient/Model/StringCorrection.php index bb77b9cd..1637eeb5 100644 --- a/src/CrowdinApiClient/Model/StringCorrection.php +++ b/src/CrowdinApiClient/Model/StringCorrection.php @@ -36,7 +36,7 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->text = (string)$this->getDataProperty('text'); $this->pluralCategoryName = (string)$this->getDataProperty('pluralCategoryName'); $this->user = (array)$this->getDataProperty('user'); diff --git a/src/CrowdinApiClient/Model/StringTranslation.php b/src/CrowdinApiClient/Model/StringTranslation.php index 3e84dc55..04196b62 100644 --- a/src/CrowdinApiClient/Model/StringTranslation.php +++ b/src/CrowdinApiClient/Model/StringTranslation.php @@ -41,11 +41,11 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->text = (string)$this->getDataProperty('text'); $this->pluralCategoryName = (string)$this->getDataProperty('pluralCategoryName'); $this->user = (array)$this->getDataProperty('user'); - $this->rating = (integer)$this->getDataProperty('rating'); + $this->rating = (int)$this->getDataProperty('rating'); } /** diff --git a/src/CrowdinApiClient/Model/StringTranslationApproval.php b/src/CrowdinApiClient/Model/StringTranslationApproval.php index f5822e6b..3d3d9867 100644 --- a/src/CrowdinApiClient/Model/StringTranslationApproval.php +++ b/src/CrowdinApiClient/Model/StringTranslationApproval.php @@ -46,12 +46,12 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->user = (array)$this->getDataProperty('user'); - $this->translationId = (integer)$this->getDataProperty('translationId'); - $this->stringId = (integer)$this->getDataProperty('stringId'); + $this->translationId = (int)$this->getDataProperty('translationId'); + $this->stringId = (int)$this->getDataProperty('stringId'); $this->languageId = (string)$this->getDataProperty('languageId'); - $this->workflowStepId = (integer)$this->getDataProperty('workflowStepId'); + $this->workflowStepId = (int)$this->getDataProperty('workflowStepId'); $this->createdAt = (string)$this->getDataProperty('createdAt'); } diff --git a/src/CrowdinApiClient/Model/StringsExporterSetting.php b/src/CrowdinApiClient/Model/StringsExporterSetting.php index 3b0ff1bd..906b4a65 100644 --- a/src/CrowdinApiClient/Model/StringsExporterSetting.php +++ b/src/CrowdinApiClient/Model/StringsExporterSetting.php @@ -36,7 +36,7 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->format = (string)$this->getDataProperty('format'); $this->settings = (array)$this->getDataProperty('settings'); $this->createdAt = (string)$this->getDataProperty('createdAt'); diff --git a/src/CrowdinApiClient/Model/Tag.php b/src/CrowdinApiClient/Model/Tag.php index 026774a7..21d47582 100644 --- a/src/CrowdinApiClient/Model/Tag.php +++ b/src/CrowdinApiClient/Model/Tag.php @@ -35,9 +35,9 @@ class Tag extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->screenshotId = (integer)$this->getDataProperty('screenshotId'); - $this->stringId = (integer)$this->getDataProperty('stringId'); + $this->id = (int)$this->getDataProperty('id'); + $this->screenshotId = (int)$this->getDataProperty('screenshotId'); + $this->stringId = (int)$this->getDataProperty('stringId'); $this->position = (array)$this->getDataProperty('position'); $this->createdAt = (string)$this->getDataProperty('createdAt'); } diff --git a/src/CrowdinApiClient/Model/Task.php b/src/CrowdinApiClient/Model/Task.php index 60796aa8..75e71c0b 100644 --- a/src/CrowdinApiClient/Model/Task.php +++ b/src/CrowdinApiClient/Model/Task.php @@ -146,9 +146,9 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); - $this->creatorId = (integer)$this->getDataProperty('creatorId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); + $this->creatorId = (int)$this->getDataProperty('creatorId'); $this->type = (string)$this->getDataProperty('type'); $this->vendor = $this->getDataProperty('vendor') ? (string)$this->getDataProperty('vendor') : null; $this->status = (string)$this->getDataProperty('status'); @@ -163,12 +163,12 @@ public function __construct(array $data = []) $this->description = (string)$this->getDataProperty('description'); $this->hash = (string)$this->getDataProperty('hash'); $this->translationUrl = (string)$this->getDataProperty('translationUrl'); - $this->wordsCount = (integer)$this->getDataProperty('wordsCount'); - $this->filesCount = (integer)$this->getDataProperty('filesCount'); - $this->commentsCount = (integer)$this->getDataProperty('commentsCount'); + $this->wordsCount = (int)$this->getDataProperty('wordsCount'); + $this->filesCount = (int)$this->getDataProperty('filesCount'); + $this->commentsCount = (int)$this->getDataProperty('commentsCount'); $this->deadline = (string)$this->getDataProperty('deadline'); $this->timeRange = (string)$this->getDataProperty('timeRange'); - $this->workflowStepId = (integer)$this->getDataProperty('workflowStepId'); + $this->workflowStepId = (int)$this->getDataProperty('workflowStepId'); $this->buyUrl = $this->getDataProperty('buyUrl') ? (string)$this->getDataProperty('buyUrl') : null; $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/TaskComment.php b/src/CrowdinApiClient/Model/TaskComment.php index 1ea534c4..0986875c 100644 --- a/src/CrowdinApiClient/Model/TaskComment.php +++ b/src/CrowdinApiClient/Model/TaskComment.php @@ -46,11 +46,11 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->userId = (integer)$this->getDataProperty('userId'); - $this->taskId = (integer)$this->getDataProperty('taskId'); + $this->id = (int)$this->getDataProperty('id'); + $this->userId = (int)$this->getDataProperty('userId'); + $this->taskId = (int)$this->getDataProperty('taskId'); $this->text = (string)$this->getDataProperty('text'); - $this->timeSpent = $this->getDataProperty('timeSpent') ? (integer)$this->getDataProperty('timeSpent') : null; + $this->timeSpent = $this->getDataProperty('timeSpent') ? (int)$this->getDataProperty('timeSpent') : null; $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); } diff --git a/src/CrowdinApiClient/Model/TaskSettingsTemplate.php b/src/CrowdinApiClient/Model/TaskSettingsTemplate.php index 8ce4f76b..92cf58a5 100644 --- a/src/CrowdinApiClient/Model/TaskSettingsTemplate.php +++ b/src/CrowdinApiClient/Model/TaskSettingsTemplate.php @@ -32,7 +32,7 @@ class TaskSettingsTemplate extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->name = (string)$this->getDataProperty('name'); $this->config = (array)$this->getDataProperty('config'); $this->createdAt = (string)$this->getDataProperty('createdAt'); diff --git a/src/CrowdinApiClient/Model/Term.php b/src/CrowdinApiClient/Model/Term.php index bbd605e4..2a2b5990 100644 --- a/src/CrowdinApiClient/Model/Term.php +++ b/src/CrowdinApiClient/Model/Term.php @@ -94,9 +94,9 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->userId = (integer)$this->getDataProperty('userId'); - $this->glossaryId = (integer)$this->getDataProperty('glossaryId'); + $this->id = (int)$this->getDataProperty('id'); + $this->userId = (int)$this->getDataProperty('userId'); + $this->glossaryId = (int)$this->getDataProperty('glossaryId'); $this->languageId = (string)$this->getDataProperty('languageId'); $this->text = (string)$this->getDataProperty('text'); $this->description = (string)$this->getDataProperty('description'); diff --git a/src/CrowdinApiClient/Model/TranslationMemoryExport.php b/src/CrowdinApiClient/Model/TranslationMemoryExport.php index 7f2ea632..b1d39497 100644 --- a/src/CrowdinApiClient/Model/TranslationMemoryExport.php +++ b/src/CrowdinApiClient/Model/TranslationMemoryExport.php @@ -52,7 +52,7 @@ public function __construct(array $data = []) parent::__construct($data); $this->identifier = (string)$this->getDataProperty('identifier'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/TranslationMemoryImport.php b/src/CrowdinApiClient/Model/TranslationMemoryImport.php index 411dd830..fed33c8b 100644 --- a/src/CrowdinApiClient/Model/TranslationMemoryImport.php +++ b/src/CrowdinApiClient/Model/TranslationMemoryImport.php @@ -52,7 +52,7 @@ public function __construct(array $data = []) parent::__construct($data); $this->identifier = (string)$this->getDataProperty('identifier'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); diff --git a/src/CrowdinApiClient/Model/TranslationMemorySegment.php b/src/CrowdinApiClient/Model/TranslationMemorySegment.php index 30f2a7f2..c9fd51d7 100644 --- a/src/CrowdinApiClient/Model/TranslationMemorySegment.php +++ b/src/CrowdinApiClient/Model/TranslationMemorySegment.php @@ -21,7 +21,7 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->records = array_map(static function (array $record): TranslationMemorySegmentRecord { return new TranslationMemorySegmentRecord($record); }, (array)$this->getDataProperty('records')); diff --git a/src/CrowdinApiClient/Model/TranslationMemorySegmentRecord.php b/src/CrowdinApiClient/Model/TranslationMemorySegmentRecord.php index a0def1d3..89f42a25 100644 --- a/src/CrowdinApiClient/Model/TranslationMemorySegmentRecord.php +++ b/src/CrowdinApiClient/Model/TranslationMemorySegmentRecord.php @@ -50,12 +50,12 @@ class TranslationMemorySegmentRecord extends BaseModel public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->languageId = (string)$this->getDataProperty('languageId'); $this->text = (string)$this->getDataProperty('text'); - $this->usageCount = (integer)$this->getDataProperty('usageCount'); - $this->createdBy = (integer)$this->getDataProperty('createdBy'); - $this->updatedBy = (integer)$this->getDataProperty('updatedBy'); + $this->usageCount = (int)$this->getDataProperty('usageCount'); + $this->createdBy = (int)$this->getDataProperty('createdBy'); + $this->updatedBy = (int)$this->getDataProperty('updatedBy'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); } diff --git a/src/CrowdinApiClient/Model/TranslationProjectBuild.php b/src/CrowdinApiClient/Model/TranslationProjectBuild.php index ce80990c..a15bd0e0 100644 --- a/src/CrowdinApiClient/Model/TranslationProjectBuild.php +++ b/src/CrowdinApiClient/Model/TranslationProjectBuild.php @@ -36,10 +36,10 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->attributes = (array)$this->getDataProperty('attributes'); } diff --git a/src/CrowdinApiClient/Model/TranslationProjectDirectory.php b/src/CrowdinApiClient/Model/TranslationProjectDirectory.php index 62e73012..8d229ad3 100644 --- a/src/CrowdinApiClient/Model/TranslationProjectDirectory.php +++ b/src/CrowdinApiClient/Model/TranslationProjectDirectory.php @@ -43,10 +43,10 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); - $this->projectId = (integer)$this->getDataProperty('projectId'); + $this->id = (int)$this->getDataProperty('id'); + $this->projectId = (int)$this->getDataProperty('projectId'); $this->status = (string)$this->getDataProperty('status'); - $this->progress = (integer)$this->getDataProperty('progress'); + $this->progress = (int)$this->getDataProperty('progress'); $this->createdAt = (string)$this->getDataProperty('createdAt'); $this->updatedAt = (string)$this->getDataProperty('updatedAt'); $this->finishedAt = (string)$this->getDataProperty('finishedAt'); diff --git a/src/CrowdinApiClient/Model/User.php b/src/CrowdinApiClient/Model/User.php index 8c538921..5096f147 100644 --- a/src/CrowdinApiClient/Model/User.php +++ b/src/CrowdinApiClient/Model/User.php @@ -56,7 +56,7 @@ public function __construct(array $data = []) { parent::__construct($data); - $this->id = (integer)$this->getDataProperty('id'); + $this->id = (int)$this->getDataProperty('id'); $this->username = (string)$this->getDataProperty('username'); $this->email = (string)$this->getDataProperty('email'); $this->fullName = (string)$this->getDataProperty('fullName');