mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-16 13:38:41 +00:00
typehint and init value optimization
This commit is contained in:
parent
35a304f3ab
commit
856d634802
|
|
@ -40,7 +40,7 @@ class Audit
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $type = 0;
|
private int $type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Audit subtype.
|
* Audit subtype.
|
||||||
|
|
@ -48,7 +48,7 @@ class Audit
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $subtype = 0;
|
private int $subtype;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Audit module.
|
* Audit module.
|
||||||
|
|
@ -56,7 +56,7 @@ class Audit
|
||||||
* @var null|string
|
* @var null|string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $module = null;
|
private ?string $module;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Audit reference.
|
* Audit reference.
|
||||||
|
|
@ -66,7 +66,7 @@ class Audit
|
||||||
* @var null|string
|
* @var null|string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $ref = null;
|
private ?string $ref;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Audit content.
|
* Audit content.
|
||||||
|
|
@ -76,7 +76,7 @@ class Audit
|
||||||
* @var null|string
|
* @var null|string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $content = null;
|
private ?string $content;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Old value.
|
* Old value.
|
||||||
|
|
@ -84,7 +84,7 @@ class Audit
|
||||||
* @var null|string
|
* @var null|string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $old = null;
|
private ?string $old;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* New value.
|
* New value.
|
||||||
|
|
@ -92,7 +92,7 @@ class Audit
|
||||||
* @var null|string
|
* @var null|string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $new = null;
|
private ?string $new;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Account.
|
* Account.
|
||||||
|
|
@ -100,15 +100,15 @@ class Audit
|
||||||
* @var Account|int
|
* @var Account|int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $createdBy = 0;
|
private $createdBy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created at.
|
* Created at.
|
||||||
*
|
*
|
||||||
* @var null|\DateTime
|
* @var \DateTime
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private ?\DateTime $createdAt = null;
|
private \DateTime $createdAt;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ip of creator.
|
* Ip of creator.
|
||||||
|
|
@ -121,13 +121,13 @@ class Audit
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @parram Account $account Account of the creator
|
* @parram Account $account Account of the creator
|
||||||
* @parram string $old Old value
|
* @parram null|string $old Old value
|
||||||
* @parram string $new New value
|
* @parram null|string $new New value
|
||||||
* @parram int $type Type of the audit
|
* @parram int $type Type of the audit
|
||||||
* @parram int $subtype Subtype of the audit
|
* @parram int $subtype Subtype of the audit
|
||||||
* @parram string $module Module id
|
* @parram null|string $module Module id
|
||||||
* @parram string $content Additional audit information
|
* @parram null|string $content Additional audit information
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user