mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-21 13:34:13 +00:00
create new contact recode and clean up
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user