mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-28 17:03:57 +00:00
large commit
This commit is contained in:
@@ -14,32 +14,32 @@ class ContactObject
|
||||
/** @var string */
|
||||
private $name;
|
||||
|
||||
/** @var string */
|
||||
private $designation;
|
||||
|
||||
/** @var string */
|
||||
/** @var null|string */
|
||||
private $contact;
|
||||
|
||||
/** @var string */
|
||||
/** @var null|string */
|
||||
private $email;
|
||||
|
||||
/** @var null|string */
|
||||
private $designation;
|
||||
|
||||
/**
|
||||
* ContactObject constructor.
|
||||
* @param int $type
|
||||
* @param int $referenceId
|
||||
* @param string $name
|
||||
* @param string $designation
|
||||
* @param string $contact
|
||||
* @param string $email
|
||||
* @param null|string $contact
|
||||
* @param null|string $email
|
||||
* @param null|string $designation
|
||||
*/
|
||||
public function __construct(int $type, int $referenceId, string $name, string $designation, string $contact, string $email)
|
||||
public function __construct(int $type, int $referenceId, string $name, ?string $contact = null, ?string $email = null, ?string $designation = null)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->referenceId = $referenceId;
|
||||
$this->name = $name;
|
||||
$this->designation = $designation;
|
||||
$this->contact = $contact;
|
||||
$this->email = $email;
|
||||
$this->designation = $designation;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -67,32 +67,28 @@ class ContactObject
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @return null|string
|
||||
*/
|
||||
public function getDesignation(): string
|
||||
{
|
||||
return $this->designation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getContact(): string
|
||||
public function getContact(): ?string
|
||||
{
|
||||
return $this->contact;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
* @return null|string
|
||||
*/
|
||||
public function getEmail(): string
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @return null|string
|
||||
*/
|
||||
public function getDesignation(): ?string
|
||||
{
|
||||
return $this->designation;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user