1 <?php
2 /* --------------------------------------------------------------
3 CustomerServiceSettings.inc.php 2015-01-30 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12 MainFactory::load_class('CustomerServiceSettingsInterface');
13
14 /**
15 * Value Object
16 *
17 * Class CustomerServiceSettings
18 *
19 * Represents the default settings of a customer/guest
20 *
21 * @category System
22 * @package Customer
23 * @subpackage ValueObjects
24 * @implements CustomerServiceSettingsInterface
25 */
26 class CustomerServiceSettings implements CustomerServiceSettingsInterface
27 {
28 /**
29 * Default customer status ID.
30 * @var int
31 */
32 protected $defaultCustomerStatusId;
33
34 /**
35 * Default guest customer status ID.
36 * @var int
37 */
38 protected $defaultGuestStatusId;
39
40
41 /**
42 * Constructor of the class CustomerServiceSettings.
43 *
44 * Sets default customer status ids and and default guest status ids from constants.
45 */
46 public function __construct()
47 {
48 $this->defaultCustomerStatusId = DEFAULT_CUSTOMERS_STATUS_ID;
49 $this->defaultGuestStatusId = DEFAULT_CUSTOMERS_STATUS_ID_GUEST;
50 }
51
52
53 /**
54 * Returns the default customer status ID.
55 * @return int
56 */
57 public function getDefaultCustomerStatusId()
58 {
59 return $this->defaultCustomerStatusId;
60 }
61
62
63 /**
64 * Returns the default guest customer status ID.
65 * @return int
66 */
67 public function getDefaultGuestStatusId()
68 {
69 return $this->defaultGuestStatusId;
70 }
71
72 }
73