mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-13 08:18:40 +00:00
132 lines
1.9 KiB
PHP
Executable File
132 lines
1.9 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Karaka
|
|
*
|
|
* PHP Version 8.0
|
|
*
|
|
* @package Modules\Profile\Models
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://karaka.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Profile\Models;
|
|
|
|
use Modules\Media\Models\Media;
|
|
use Modules\Media\Models\NullMedia;
|
|
|
|
/**
|
|
* Contact element class.
|
|
*
|
|
* @package Modules\Profile\Models
|
|
* @license OMS License 1.0
|
|
* @link https://karaka.app
|
|
* @since 1.0.0
|
|
*/
|
|
class Contact
|
|
{
|
|
/**
|
|
* Id.
|
|
*
|
|
* @var int
|
|
* @since 1.0.0
|
|
*/
|
|
protected int $id = 0;
|
|
|
|
/**
|
|
* Name1
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
public string $name1 = '';
|
|
|
|
/**
|
|
* Name2
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
public string $name2 = '';
|
|
|
|
/**
|
|
* Name2
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
public string $name3 = '';
|
|
|
|
/**
|
|
* Description
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
public string $description = '';
|
|
|
|
/**
|
|
* Company name
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
public string $company = '';
|
|
|
|
/**
|
|
* Job title
|
|
*
|
|
* @var string
|
|
* @since 1.0.0
|
|
*/
|
|
public string $job = '';
|
|
|
|
/**
|
|
* Birthday
|
|
*
|
|
* @var null|\DateTime
|
|
* @since 1.0.0
|
|
*/
|
|
public ?\DateTime $birthday = null;
|
|
|
|
/**
|
|
* Contact image
|
|
*
|
|
* @var Media
|
|
* @since 1.0.0
|
|
*/
|
|
public Media $image;
|
|
|
|
/**
|
|
* Profile this contact belongs to
|
|
*
|
|
* @var int
|
|
* @since 1.0.0
|
|
*/
|
|
private int $profile = 0;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->image = new NullMedia();
|
|
}
|
|
|
|
/**
|
|
* Get id.
|
|
*
|
|
* @return int
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
public function getId() : int
|
|
{
|
|
return $this->id;
|
|
}
|
|
}
|