mirror of
https://gitlab.com/omair-personal/izyim.git
synced 2026-08-19 12:24:11 +00:00
8a28eb1790
This reverts merge request !5
98 lines
1.6 KiB
PHP
98 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Modules\Contacts\DataTransferObjects;
|
|
|
|
class ContactObject
|
|
{
|
|
|
|
/** @var int */
|
|
private $type;
|
|
|
|
/** @var int */
|
|
private $referenceId;
|
|
|
|
/** @var string */
|
|
private $name;
|
|
|
|
/** @var string */
|
|
private $designation;
|
|
|
|
/** @var string */
|
|
private $contact;
|
|
|
|
/** @var string */
|
|
private $email;
|
|
|
|
/**
|
|
* ContactObject constructor.
|
|
* @param int $type
|
|
* @param int $referenceId
|
|
* @param string $name
|
|
* @param string $designation
|
|
* @param string $contact
|
|
* @param string $email
|
|
*/
|
|
public function __construct(int $type, int $referenceId, string $name, string $designation, string $contact, string $email)
|
|
{
|
|
$this->type = $type;
|
|
$this->referenceId = $referenceId;
|
|
$this->name = $name;
|
|
$this->designation = $designation;
|
|
$this->contact = $contact;
|
|
$this->email = $email;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getType(): int
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getReferenceId(): int
|
|
{
|
|
return $this->referenceId;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDesignation(): string
|
|
{
|
|
return $this->designation;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getContact(): string
|
|
{
|
|
return $this->contact;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getEmail(): string
|
|
{
|
|
return $this->email;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |