create new contact recode and clean up

This commit is contained in:
hazim
2019-03-05 15:23:11 +08:00
parent 4848e1bd5b
commit c46b8570f1
6 changed files with 225 additions and 1 deletions
@@ -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;
}
}