Files
izyim/app/Classes/Modules/Contacts/DataTransferObjects/ContactObject.php
T
2019-03-07 15:31:16 +08:00

128 lines
2.0 KiB
PHP

<?php
namespace App\Classes\Modules\Contacts\DataTransferObjects;
class ContactObject
{
/** @var string */
private $name;
/** @var string */
private $designation;
/** @var string */
private $contact;
/** @var string */
private $email;
/** @var int|null */
private $type;
/** @var int|null */
private $referenceId;
/** @var int|null */
private $id;
/**
* ContactObject constructor.
* @param string $name
* @param string $designation
* @param string $contact
* @param string $email
*/
public function __construct(string $name, string $designation,string $contact, string $email)
{
$this->name = $name;
$this->designation = $designation;
$this->email = $email;
$this->contact = $contact;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @return string
*/
public function getDesignation(): string
{
return $this->designation;
}
/**
* @return string
*/
public function getEmail(): string
{
return $this->email;
}
/**
* @return string
*/
public function getContact(): string
{
return $this->contact;
}
/**
* @return int|null
*/
public function getType(): ?int
{
return $this->type;
}
/**
* @return int|null
*/
public function getReferenceId(): ?int
{
return $this->referenceId;
}
/**
* @return int|null
*/
public function getId()
{
return $this->id;
}
/**
* @param int|null $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @param int|null $referenceId
*/
public function setReferenceId($referenceId)
{
$this->referenceId = $referenceId;
}
/**
* @param int|null $id
*/
public function setId($id)
{
$this->id = $id;
}
}