Skip to content

Commit 45abe15

Browse files
authored
Sequence: Add constructor to required fields.
1 parent 34369dc commit 45abe15

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Entity/Sequence.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ class Sequence
3939
*/
4040
private $data;
4141

42+
/**
43+
* @param string $aId
44+
*/
45+
public function __construct(string $aId)
46+
{
47+
$this->aId = $aId;
48+
$this->updateData();
49+
}
50+
4251
/**
4352
* @return string
4453
*/
@@ -118,4 +127,4 @@ public function getFormula(): ?string
118127
return $this->getDataType('F');
119128
}
120129

121-
}
130+
}

0 commit comments

Comments
 (0)