Skip to content

Commit c73c732

Browse files
committed
Add dangerous reference in coprar
1 parent 8915ccb commit c73c732

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/Generator/Coprar/Container.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Container
1414
private $seal;
1515
private $cargo;
1616
private $dangerous;
17+
private $dgsAac;
1718
private $temperature;
1819
private $dimensions;
1920
private $containerOperator;
@@ -164,6 +165,13 @@ public function addDangerous($hazardClass, $hazardCode, $flashpoint = null, $pac
164165
return $this;
165166
}
166167

168+
public function setDangerousAdditionalInfo($addInfo)
169+
{
170+
$this->dgsAac = ['FTX', 'AAC', '', '', $addInfo];
171+
172+
return $this;
173+
}
174+
167175
public function setTemperature($setDegrees)
168176
{
169177
$this->temperature = ['TMP', '2', [$setDegrees, 'CEL']];
@@ -239,6 +247,9 @@ public function compose()
239247
$composed[] = $segment;
240248
}
241249
}
250+
if ($this->dgsAac !== null) {
251+
$composed[] = $this->dgsAac;
252+
}
242253
$composed[] = $this->containerOperator;
243254

244255
return $composed;

0 commit comments

Comments
 (0)