1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63  64  65  66  67  68  69  70  71  72  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95  96  97  98  99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 
<?php
/* --------------------------------------------------------------
   CustomerDisplaySettings.inc.php 2018-02-27
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2018 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/

/**
 * Class CustomerDisplaySettings
 */
class CustomerDisplaySettings
{
    /**
     * @var bool
     */
    private $gender;
    
    /**
     * @var bool
     */
    private $dateOfBirth;
    
    /**
     * @var bool
     */
    private $company;
    
    /**
     * @var bool
     */
    private $countryZone;
    
    /**
     * @var bool
     */
    private $telephone;
    
    /**
     * @var bool
     */
    private $fax;
    
    /**
     * @var bool
     */
    private $suburb;
    
    
    /**
     * CustomerDisplaySettings constructor.
     *
     * @param \BoolType $gender      Should the customers gender be displayed?
     * @param \BoolType $dateOfBirth Should the customers date of birth be displayed?
     * @param \BoolType $company     Should the customers company be displayed?
     * @param \BoolType $countryZone Should the customers country zone be displayed?
     * @param \BoolType $telephone   Should the customers telephone be displayed?
     * @param \BoolType $fax         Should the customers fax be displayed?
     * @param \BoolType $suburb      Should the customers suburb be displayed?
     */
    public function __construct(\BoolType $gender,
                                \BoolType $dateOfBirth,
                                \BoolType $company,
                                \BoolType $countryZone,
                                \BoolType $telephone,
                                \BoolType $fax,
                                \BoolType $suburb)
    {
        $this->gender      = $gender->asBool();
        $this->dateOfBirth = $dateOfBirth->asBool();
        $this->company     = $company->asBool();
        $this->countryZone = $countryZone->asBool();
        $this->telephone   = $telephone->asBool();
        $this->fax         = $fax->asBool();
        $this->suburb      = $suburb->asBool();
    }
    
    
    /**
     * Should the customers gender be displayed?
     *
     * @return bool
     */
    public function gender()
    {
        return $this->gender;
    }
    
    
    /**
     * Should the customers date of birth be displayed?
     *
     * @return bool
     */
    public function dateOfBirth()
    {
        return $this->dateOfBirth;
    }
    
    
    /**
     * Should the customers company be displayed?
     *
     * @return bool
     */
    public function company()
    {
        return $this->company;
    }
    
    
    /**
     * Should the customers country zone be displayed?
     *
     * @return bool
     */
    public function countryZone()
    {
        return $this->countryZone;
    }
    
    
    /**
     * Should the customers telephone be displayed?
     *
     * @return bool
     */
    public function telephone()
    {
        return $this->telephone;
    }
    
    
    /**
     * Should the customers fax be displayed?
     *
     * @return bool
     */
    public function fax()
    {
        return $this->fax;
    }
    
    
    /**
     * Should the customers suburb be displayed?
     *
     * @return bool
     */
    public function suburb()
    {
        return $this->suburb;
    }
}