large commit

This commit is contained in:
Omair Saleh
2019-06-03 10:29:08 +08:00
parent 2546b4a7fa
commit 919e0252f7
113 changed files with 2556 additions and 1815 deletions
@@ -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;
}
}