Skip to content

Commit

Permalink
Deploying from phrase/openapi@2c6f4325
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Apr 19, 2024
1 parent d95c3d6 commit c4a4ebe
Show file tree
Hide file tree
Showing 8 changed files with 490 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ docs/Model/TranslationIncludeParameters.md
docs/Model/TranslationKey.md
docs/Model/TranslationKeyDetails.md
docs/Model/TranslationOrder.md
docs/Model/TranslationParent.md
docs/Model/TranslationReviewParameters.md
docs/Model/TranslationUnverifyParameters.md
docs/Model/TranslationUpdateParameters.md
Expand Down Expand Up @@ -528,6 +529,7 @@ lib/Model/TranslationIncludeParameters.php
lib/Model/TranslationKey.php
lib/Model/TranslationKeyDetails.php
lib/Model/TranslationOrder.php
lib/Model/TranslationParent.php
lib/Model/TranslationReviewParameters.php
lib/Model/TranslationUnverifyParameters.php
lib/Model/TranslationUpdateParameters.php
Expand Down Expand Up @@ -798,6 +800,7 @@ test/Model/TranslationIncludeParametersTest.php
test/Model/TranslationKeyDetailsTest.php
test/Model/TranslationKeyTest.php
test/Model/TranslationOrderTest.php
test/Model/TranslationParentTest.php
test/Model/TranslationReviewParametersTest.php
test/Model/TranslationTest.php
test/Model/TranslationUnverifyParametersTest.php
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ Class | Method | HTTP request | Description
- [TranslationKey](docs/Model/TranslationKey.md)
- [TranslationKeyDetails](docs/Model/TranslationKeyDetails.md)
- [TranslationOrder](docs/Model/TranslationOrder.md)
- [TranslationParent](docs/Model/TranslationParent.md)
- [TranslationReviewParameters](docs/Model/TranslationReviewParameters.md)
- [TranslationUnverifyParameters](docs/Model/TranslationUnverifyParameters.md)
- [TranslationUpdateParameters](docs/Model/TranslationUpdateParameters.md)
Expand Down
1 change: 1 addition & 0 deletions docs/Model/TranslationDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Name | Type | Description | Notes
**updated_at** | **\DateTime** | | [optional]
**user** | [**\Phrase\Model\UserPreview**](UserPreview.md) | | [optional]
**word_count** | **int** | | [optional]
**linked_translation** | [**\Phrase\Model\TranslationParent**](TranslationParent.md) | | [optional]

[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

Expand Down
12 changes: 12 additions & 0 deletions docs/Model/TranslationParent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# # TranslationParent

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **string** | | [optional]
**content** | **string** | | [optional]

[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)


40 changes: 35 additions & 5 deletions lib/Model/TranslationDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class TranslationDetails implements ModelInterface, ArrayAccess
'created_at' => '\DateTime',
'updated_at' => '\DateTime',
'user' => '\Phrase\Model\UserPreview',
'word_count' => 'int'
'word_count' => 'int',
'linked_translation' => '\Phrase\Model\TranslationParent'
];

/**
Expand All @@ -88,7 +89,8 @@ class TranslationDetails implements ModelInterface, ArrayAccess
'created_at' => 'date-time',
'updated_at' => 'date-time',
'user' => null,
'word_count' => null
'word_count' => null,
'linked_translation' => null
];

/**
Expand Down Expand Up @@ -130,7 +132,8 @@ public static function openAPIFormats()
'created_at' => 'created_at',
'updated_at' => 'updated_at',
'user' => 'user',
'word_count' => 'word_count'
'word_count' => 'word_count',
'linked_translation' => 'linked_translation'
];

/**
Expand All @@ -151,7 +154,8 @@ public static function openAPIFormats()
'created_at' => 'setCreatedAt',
'updated_at' => 'setUpdatedAt',
'user' => 'setUser',
'word_count' => 'setWordCount'
'word_count' => 'setWordCount',
'linked_translation' => 'setLinkedTranslation'
];

/**
Expand All @@ -172,7 +176,8 @@ public static function openAPIFormats()
'created_at' => 'getCreatedAt',
'updated_at' => 'getUpdatedAt',
'user' => 'getUser',
'word_count' => 'getWordCount'
'word_count' => 'getWordCount',
'linked_translation' => 'getLinkedTranslation'
];

/**
Expand Down Expand Up @@ -248,6 +253,7 @@ public function __construct(array $data = null)
$this->container['updated_at'] = isset($data['updated_at']) ? $data['updated_at'] : null;
$this->container['user'] = isset($data['user']) ? $data['user'] : null;
$this->container['word_count'] = isset($data['word_count']) ? $data['word_count'] : null;
$this->container['linked_translation'] = isset($data['linked_translation']) ? $data['linked_translation'] : null;
}

/**
Expand Down Expand Up @@ -585,6 +591,30 @@ public function setWordCount($word_count)

return $this;
}

/**
* Gets linked_translation
*
* @return \Phrase\Model\TranslationParent|null
*/
public function getLinkedTranslation()
{
return $this->container['linked_translation'];
}

/**
* Sets linked_translation
*
* @param \Phrase\Model\TranslationParent|null $linked_translation linked_translation
*
* @return $this
*/
public function setLinkedTranslation($linked_translation)
{
$this->container['linked_translation'] = $linked_translation;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
Loading

0 comments on commit c4a4ebe

Please sign in to comment.