mirror of
https://github.com/Karaka-Management/oms-ClientManagement.git
synced 2026-02-13 07:18:41 +00:00
Nullable+void typehint
This commit is contained in:
parent
aea332dade
commit
29af3586d0
|
|
@ -36,7 +36,7 @@ class Navigation
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function install(string $path = null, DatabasePool $dbPool = null) /* : void */
|
public static function install(string $path = null, DatabasePool $dbPool = null) : void
|
||||||
{
|
{
|
||||||
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ class Client
|
||||||
return $this->number;
|
return $this->number;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setNumber(int $number) /* : void */
|
public function setNumber(int $number) : void
|
||||||
{
|
{
|
||||||
$this->number = $number;
|
$this->number = $number;
|
||||||
}
|
}
|
||||||
|
|
@ -77,7 +77,7 @@ class Client
|
||||||
return $this->numberReverse;
|
return $this->numberReverse;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setReverseNumber($rev_no) /* : void */
|
public function setReverseNumber($rev_no) : void
|
||||||
{
|
{
|
||||||
if (!is_scalar($rev_no)) {
|
if (!is_scalar($rev_no)) {
|
||||||
throw new \Exception();
|
throw new \Exception();
|
||||||
|
|
@ -91,7 +91,7 @@ class Client
|
||||||
return $this->status;
|
return $this->status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setStatus(int $status) /* : void */
|
public function setStatus(int $status) : void
|
||||||
{
|
{
|
||||||
$this->status = $status;
|
$this->status = $status;
|
||||||
}
|
}
|
||||||
|
|
@ -101,7 +101,7 @@ class Client
|
||||||
return $this->type;
|
return $this->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setType(int $type) /* : void */
|
public function setType(int $type) : void
|
||||||
{
|
{
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
}
|
}
|
||||||
|
|
@ -111,7 +111,7 @@ class Client
|
||||||
return $this->taxId;
|
return $this->taxId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setTaxId(string $taxId) /* : void */
|
public function setTaxId(string $taxId) : void
|
||||||
{
|
{
|
||||||
$this->taxId = $taxId;
|
$this->taxId = $taxId;
|
||||||
}
|
}
|
||||||
|
|
@ -136,7 +136,7 @@ class Client
|
||||||
return $this->profile;
|
return $this->profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setProfile(Profile $profile) /* : void */
|
public function setProfile(Profile $profile) : void
|
||||||
{
|
{
|
||||||
$this->profile = $profile;
|
$this->profile = $profile;
|
||||||
}
|
}
|
||||||
|
|
@ -146,7 +146,7 @@ class Client
|
||||||
return $this->files;
|
return $this->files;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addFile(Media $file) /* : void */
|
public function addFile(Media $file) : void
|
||||||
{
|
{
|
||||||
$this->files[] = $file;
|
$this->files[] = $file;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user