Skip to content

Commit 99bfaaa

Browse files
authored
Update UnitOfMeasurement.php
1 parent b8773c8 commit 99bfaaa

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Entity/UnitOfMeasurement.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@ class UnitOfMeasurement
1313
public const OUNCES = "OZS";
1414

1515
private ?string $code;
16-
private ?string $description;
16+
private string $description = "";
17+
18+
public function exists()
19+
{
20+
if ($this->code) {
21+
return true;
22+
}
23+
24+
return false;
25+
}
1726

1827
public function setCode(string $code): self
1928
{

0 commit comments

Comments
 (0)