style fixes and time recording app draft

This commit is contained in:
Dennis Eichhorn 2019-09-28 20:59:03 +02:00
parent 87eac53e96
commit fe05196a1d
3 changed files with 44 additions and 15 deletions

View File

@ -27,29 +27,38 @@ use Modules\Profile\Models\Profile;
*/ */
class Client class Client
{ {
private $id = 0; private int $id = 0;
private $number = ''; private string $number = '';
private $numberReverse = ''; private string $numberReverse = '';
private $status = 0; private int $status = 0;
private $type = 0; private int $type = 0;
private $taxId = 0; private array $ids = [];
private $info = ''; private string $info = '';
private $createdAt = null; private \DateTime $createdAt;
private $profile = null; private $profile = null;
private $files = []; private array $files = [];
private $contactElements = []; private array $contactElements = [];
private $address = []; private array $address = [];
private array $partners = [];
private $salesRep = null;
private int $advertisementMaterial = 0;
private $defaultDeliveryAddress = null;
private $defaultInvoiceAddress = null;
public function __construct() public function __construct()
{ {
@ -116,6 +125,26 @@ class Client
$this->taxId = $taxId; $this->taxId = $taxId;
} }
public function setDefaultDeliveryAddress($deliveryAddress) : void
{
$this->defaultDeliveryAddress = $deliveryAddress;
}
public function getDefaultDeliveryAddress()
{
return $this->defaultDeliveryAddress;
}
public function setDefaultInvoiceAddress($invoiceAddress) : void
{
$this->defaultTnvoiceAddress = $invoiceAddress;
}
public function getDefaultInvoiceAddress()
{
return $this->defaultInvoiceAddress;
}
public function getInfo() : string public function getInfo() : string
{ {
return $this->info; return $this->info;

View File

@ -5,7 +5,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\ClientManagement * @package Modules\ClientManagement\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -24,7 +24,7 @@ use phpOMS\DataStorage\Database\Query\Column;
/** /**
* Client mapper class. * Client mapper class.
* *
* @package Modules\ClientManagement * @package Modules\ClientManagement\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0

View File

@ -4,7 +4,7 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\ClientManagement * @package Modules\ClientManagement\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
@ -19,7 +19,7 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Permision state enum. * Permision state enum.
* *
* @package Modules\ClientManagement * @package Modules\ClientManagement\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0