1 <?php
2
3 /* --------------------------------------------------------------
4 OrderShippingType.php 2015-10-27 gm
5 Gambio GmbH
6 http://www.gambio.de
7 Copyright (c) 2015 Gambio GmbH
8 Released under the GNU General Public License (Version 2)
9 [http://www.gnu.org/licenses/gpl-2.0.html]
10 --------------------------------------------------------------
11 */
12
13 MainFactory::load_class('OrderShippingTypeInterface');
14
15 /**
16 * Class OrderShippingType
17 *
18 * @category System
19 * @package Order
20 * @subpackage Entities
21 */
22 class OrderShippingType implements OrderShippingTypeInterface
23 {
24 /**
25 * Shipping type title.
26 *
27 * @var string
28 */
29 protected $title = '';
30
31 /**
32 * Shipping type module.
33 *
34 * @var string
35 */
36 protected $module = '';
37
38
39 /**
40 * OrderShippingType constructor.
41 *
42 * @param StringType $title Order shipping type title.
43 * @param StringType $module Order shipping type module.
44 */
45 public function __construct(StringType $title, StringType $module)
46 {
47 $this->title = $title->asString();
48 $this->module = $module->asString();
49 }
50
51
52 /**
53 * Returns the order shipping type title.
54 *
55 * @return string Order shipping type title.
56 */
57 public function getTitle()
58 {
59 return $this->title;
60 }
61
62
63 /**
64 * Returns the order shipping type module.
65 *
66 * @return string Order shipping type module.
67 */
68 public function getModule()
69 {
70 return $this->module;
71 }
72 }