Skip to content

Commit 7ac61dc

Browse files
author
Codeliner
committed
Add cargo size attribute
1 parent a6c7c60 commit 7ac61dc

File tree

1 file changed

+32
-0
lines changed
  • module/Application/src/Application/Domain/Model/Cargo

1 file changed

+32
-0
lines changed

module/Application/src/Application/Domain/Model/Cargo/Cargo.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ class Cargo implements EntityInterface
4040
*/
4141
protected $trackingId;
4242

43+
/**
44+
* Size of the Cargo
45+
*
46+
* ---Annotations required by Doctrine---
47+
* @Column(type="integer")
48+
* --------------------------------------
49+
*
50+
* @var integer
51+
*/
52+
protected $size;
53+
4354
/**
4455
* Construct
4556
*
@@ -59,7 +70,28 @@ public function getTrackingId()
5970
{
6071
return $this->trackingId;
6172
}
73+
74+
/**
75+
* Get the size of the Cargo.
76+
*
77+
* @return integer
78+
*/
79+
public function getSize()
80+
{
81+
return $this->size;
82+
}
83+
84+
/**
85+
* Set the size of the Cargo.
86+
*
87+
* @param integer $size
88+
*/
89+
public function setSize($size)
90+
{
91+
$this->size = $size;
92+
}
6293

94+
6395
/**
6496
* {@inheritDoc}
6597
*/

0 commit comments

Comments
 (0)