Skip to content

Commit 4a7bccd

Browse files
author
Phrase
committed
1 parent 2877150 commit 4a7bccd

File tree

6 files changed

+85
-47
lines changed

6 files changed

+85
-47
lines changed

docs/Model/Translation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**state** | **string** | | [optional]
1616
**created_at** | **\DateTime** | | [optional]
1717
**updated_at** | **\DateTime** | | [optional]
18+
**linked_translation** | [**\Phrase\Model\TranslationParent**](TranslationParent.md) | | [optional]
1819

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

docs/Model/TranslationDetails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Name | Type | Description | Notes
1515
**state** | **string** | | [optional]
1616
**created_at** | **\DateTime** | | [optional]
1717
**updated_at** | **\DateTime** | | [optional]
18+
**linked_translation** | [**\Phrase\Model\TranslationParent**](TranslationParent.md) | | [optional]
1819
**user** | [**\Phrase\Model\UserPreview**](UserPreview.md) | | [optional]
1920
**word_count** | **int** | | [optional]
20-
**linked_translation** | [**\Phrase\Model\TranslationParent**](TranslationParent.md) | | [optional]
2121

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

lib/Model/Translation.php

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ class Translation implements ModelInterface, ArrayAccess
6565
'placeholders' => 'string[]',
6666
'state' => 'string',
6767
'created_at' => '\DateTime',
68-
'updated_at' => '\DateTime'
68+
'updated_at' => '\DateTime',
69+
'linked_translation' => '\Phrase\Model\TranslationParent'
6970
];
7071

7172
/**
@@ -84,7 +85,8 @@ class Translation implements ModelInterface, ArrayAccess
8485
'placeholders' => null,
8586
'state' => null,
8687
'created_at' => 'date-time',
87-
'updated_at' => 'date-time'
88+
'updated_at' => 'date-time',
89+
'linked_translation' => null
8890
];
8991

9092
/**
@@ -124,7 +126,8 @@ public static function openAPIFormats()
124126
'placeholders' => 'placeholders',
125127
'state' => 'state',
126128
'created_at' => 'created_at',
127-
'updated_at' => 'updated_at'
129+
'updated_at' => 'updated_at',
130+
'linked_translation' => 'linked_translation'
128131
];
129132

130133
/**
@@ -143,7 +146,8 @@ public static function openAPIFormats()
143146
'placeholders' => 'setPlaceholders',
144147
'state' => 'setState',
145148
'created_at' => 'setCreatedAt',
146-
'updated_at' => 'setUpdatedAt'
149+
'updated_at' => 'setUpdatedAt',
150+
'linked_translation' => 'setLinkedTranslation'
147151
];
148152

149153
/**
@@ -162,7 +166,8 @@ public static function openAPIFormats()
162166
'placeholders' => 'getPlaceholders',
163167
'state' => 'getState',
164168
'created_at' => 'getCreatedAt',
165-
'updated_at' => 'getUpdatedAt'
169+
'updated_at' => 'getUpdatedAt',
170+
'linked_translation' => 'getLinkedTranslation'
166171
];
167172

168173
/**
@@ -236,6 +241,7 @@ public function __construct(?array $data = null)
236241
$this->container['state'] = isset($data['state']) ? $data['state'] : null;
237242
$this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null;
238243
$this->container['updated_at'] = isset($data['updated_at']) ? $data['updated_at'] : null;
244+
$this->container['linked_translation'] = isset($data['linked_translation']) ? $data['linked_translation'] : null;
239245
}
240246

241247
/**
@@ -525,6 +531,30 @@ public function setUpdatedAt($updated_at)
525531

526532
return $this;
527533
}
534+
535+
/**
536+
* Gets linked_translation
537+
*
538+
* @return \Phrase\Model\TranslationParent|null
539+
*/
540+
public function getLinkedTranslation()
541+
{
542+
return $this->container['linked_translation'];
543+
}
544+
545+
/**
546+
* Sets linked_translation
547+
*
548+
* @param \Phrase\Model\TranslationParent|null $linked_translation linked_translation
549+
*
550+
* @return $this
551+
*/
552+
public function setLinkedTranslation($linked_translation)
553+
{
554+
$this->container['linked_translation'] = $linked_translation;
555+
556+
return $this;
557+
}
528558
/**
529559
* Returns true if offset exists. False otherwise.
530560
*

lib/Model/TranslationDetails.php

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ class TranslationDetails implements ModelInterface, ArrayAccess
6666
'state' => 'string',
6767
'created_at' => '\DateTime',
6868
'updated_at' => '\DateTime',
69+
'linked_translation' => '\Phrase\Model\TranslationParent',
6970
'user' => '\Phrase\Model\UserPreview',
70-
'word_count' => 'int',
71-
'linked_translation' => '\Phrase\Model\TranslationParent'
71+
'word_count' => 'int'
7272
];
7373

7474
/**
@@ -88,9 +88,9 @@ class TranslationDetails implements ModelInterface, ArrayAccess
8888
'state' => null,
8989
'created_at' => 'date-time',
9090
'updated_at' => 'date-time',
91+
'linked_translation' => null,
9192
'user' => null,
92-
'word_count' => null,
93-
'linked_translation' => null
93+
'word_count' => null
9494
];
9595

9696
/**
@@ -131,9 +131,9 @@ public static function openAPIFormats()
131131
'state' => 'state',
132132
'created_at' => 'created_at',
133133
'updated_at' => 'updated_at',
134+
'linked_translation' => 'linked_translation',
134135
'user' => 'user',
135-
'word_count' => 'word_count',
136-
'linked_translation' => 'linked_translation'
136+
'word_count' => 'word_count'
137137
];
138138

139139
/**
@@ -153,9 +153,9 @@ public static function openAPIFormats()
153153
'state' => 'setState',
154154
'created_at' => 'setCreatedAt',
155155
'updated_at' => 'setUpdatedAt',
156+
'linked_translation' => 'setLinkedTranslation',
156157
'user' => 'setUser',
157-
'word_count' => 'setWordCount',
158-
'linked_translation' => 'setLinkedTranslation'
158+
'word_count' => 'setWordCount'
159159
];
160160

161161
/**
@@ -175,9 +175,9 @@ public static function openAPIFormats()
175175
'state' => 'getState',
176176
'created_at' => 'getCreatedAt',
177177
'updated_at' => 'getUpdatedAt',
178+
'linked_translation' => 'getLinkedTranslation',
178179
'user' => 'getUser',
179-
'word_count' => 'getWordCount',
180-
'linked_translation' => 'getLinkedTranslation'
180+
'word_count' => 'getWordCount'
181181
];
182182

183183
/**
@@ -251,9 +251,9 @@ public function __construct(?array $data = null)
251251
$this->container['state'] = isset($data['state']) ? $data['state'] : null;
252252
$this->container['created_at'] = isset($data['created_at']) ? $data['created_at'] : null;
253253
$this->container['updated_at'] = isset($data['updated_at']) ? $data['updated_at'] : null;
254+
$this->container['linked_translation'] = isset($data['linked_translation']) ? $data['linked_translation'] : null;
254255
$this->container['user'] = isset($data['user']) ? $data['user'] : null;
255256
$this->container['word_count'] = isset($data['word_count']) ? $data['word_count'] : null;
256-
$this->container['linked_translation'] = isset($data['linked_translation']) ? $data['linked_translation'] : null;
257257
}
258258

259259
/**
@@ -545,73 +545,73 @@ public function setUpdatedAt($updated_at)
545545
}
546546

547547
/**
548-
* Gets user
548+
* Gets linked_translation
549549
*
550-
* @return \Phrase\Model\UserPreview|null
550+
* @return \Phrase\Model\TranslationParent|null
551551
*/
552-
public function getUser()
552+
public function getLinkedTranslation()
553553
{
554-
return $this->container['user'];
554+
return $this->container['linked_translation'];
555555
}
556556

557557
/**
558-
* Sets user
558+
* Sets linked_translation
559559
*
560-
* @param \Phrase\Model\UserPreview|null $user user
560+
* @param \Phrase\Model\TranslationParent|null $linked_translation linked_translation
561561
*
562562
* @return $this
563563
*/
564-
public function setUser($user)
564+
public function setLinkedTranslation($linked_translation)
565565
{
566-
$this->container['user'] = $user;
566+
$this->container['linked_translation'] = $linked_translation;
567567

568568
return $this;
569569
}
570570

571571
/**
572-
* Gets word_count
572+
* Gets user
573573
*
574-
* @return int|null
574+
* @return \Phrase\Model\UserPreview|null
575575
*/
576-
public function getWordCount()
576+
public function getUser()
577577
{
578-
return $this->container['word_count'];
578+
return $this->container['user'];
579579
}
580580

581581
/**
582-
* Sets word_count
582+
* Sets user
583583
*
584-
* @param int|null $word_count word_count
584+
* @param \Phrase\Model\UserPreview|null $user user
585585
*
586586
* @return $this
587587
*/
588-
public function setWordCount($word_count)
588+
public function setUser($user)
589589
{
590-
$this->container['word_count'] = $word_count;
590+
$this->container['user'] = $user;
591591

592592
return $this;
593593
}
594594

595595
/**
596-
* Gets linked_translation
596+
* Gets word_count
597597
*
598-
* @return \Phrase\Model\TranslationParent|null
598+
* @return int|null
599599
*/
600-
public function getLinkedTranslation()
600+
public function getWordCount()
601601
{
602-
return $this->container['linked_translation'];
602+
return $this->container['word_count'];
603603
}
604604

605605
/**
606-
* Sets linked_translation
606+
* Sets word_count
607607
*
608-
* @param \Phrase\Model\TranslationParent|null $linked_translation linked_translation
608+
* @param int|null $word_count word_count
609609
*
610610
* @return $this
611611
*/
612-
public function setLinkedTranslation($linked_translation)
612+
public function setWordCount($word_count)
613613
{
614-
$this->container['linked_translation'] = $linked_translation;
614+
$this->container['word_count'] = $word_count;
615615

616616
return $this;
617617
}

test/Model/TranslationDetailsTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,23 +154,23 @@ public function testPropertyUpdatedAt()
154154
}
155155

156156
/**
157-
* Test attribute "user"
157+
* Test attribute "linked_translation"
158158
*/
159-
public function testPropertyUser()
159+
public function testPropertyLinkedTranslation()
160160
{
161161
}
162162

163163
/**
164-
* Test attribute "word_count"
164+
* Test attribute "user"
165165
*/
166-
public function testPropertyWordCount()
166+
public function testPropertyUser()
167167
{
168168
}
169169

170170
/**
171-
* Test attribute "linked_translation"
171+
* Test attribute "word_count"
172172
*/
173-
public function testPropertyLinkedTranslation()
173+
public function testPropertyWordCount()
174174
{
175175
}
176176
}

test/Model/TranslationTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,11 @@ public function testPropertyCreatedAt()
152152
public function testPropertyUpdatedAt()
153153
{
154154
}
155+
156+
/**
157+
* Test attribute "linked_translation"
158+
*/
159+
public function testPropertyLinkedTranslation()
160+
{
161+
}
155162
}

0 commit comments

Comments
 (0)