| 1 | <?php |
||
| 13 | class Shipping implements ShippingInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Shippint id |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | private $id; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Shippint name |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $name; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Shipping description |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $description; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Shipping cost |
||
| 35 | * @var float |
||
| 36 | */ |
||
| 37 | private $cost; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Price format object |
||
| 41 | * @var \Plane\Shop\PriceFormat\PriceFormatInterface |
||
| 42 | */ |
||
| 43 | private $priceFormat; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Constructor |
||
| 47 | * @param array $data |
||
| 48 | */ |
||
| 49 | 3 | public function __construct(array $data) |
|
| 55 | |||
| 56 | /** |
||
| 57 | * Return id |
||
| 58 | * @return int |
||
| 59 | */ |
||
| 60 | 1 | public function getId() |
|
| 64 | |||
| 65 | /** |
||
| 66 | * Return name |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | 1 | public function getName() |
|
| 73 | |||
| 74 | /** |
||
| 75 | * Return description |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | 1 | public function getDescription() |
|
| 82 | |||
| 83 | /** |
||
| 84 | * Return cost |
||
| 85 | * @return float |
||
| 86 | */ |
||
| 87 | 3 | public function getCost() |
|
| 95 | |||
| 96 | /** |
||
| 97 | * Set cost |
||
| 98 | * @param int|float $cost |
||
| 99 | */ |
||
| 100 | 1 | public function setCost($cost) |
|
| 104 | |||
| 105 | /** |
||
| 106 | * Set price format object |
||
| 107 | * @param \Plane\Shop\PriceFormat\PriceFormatInterface $priceFormat |
||
| 108 | */ |
||
| 109 | 1 | public function setPriceFormat(PriceFormatInterface $priceFormat) |
|
| 113 | } |
||
| 114 |