We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f4d08b commit d4ce33aCopy full SHA for d4ce33a
src/Entity/PackageWeight.php
@@ -7,6 +7,15 @@ class PackageWeight
7
private UnitOfMeasurement $unitOfMeasurement;
8
private ?string $weight;
9
10
+ public function exists()
11
+ {
12
+ if ($this->weight && $this->unitOfMeasurement->exists()) {
13
+ return true;
14
+ }
15
+
16
+ return false;
17
18
19
public function setUnitOfMeasurement(UnitOfMeasurement $unitOfMeasurement): self
20
{
21
$this->unitOfMeasurement = $unitOfMeasurement;
0 commit comments