mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-01 01:18:41 +00:00
fix after change to php 7.4
This commit is contained in:
parent
3cf2c9d15e
commit
1ab01d6ea2
|
|
@ -32,7 +32,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $id = 0;
|
||||
protected int $id = 0;
|
||||
|
||||
/**
|
||||
* Name.
|
||||
|
|
@ -40,7 +40,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $name = '';
|
||||
protected string $name = '';
|
||||
|
||||
/**
|
||||
* Parent
|
||||
|
|
@ -56,7 +56,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $status = Status::INACTIVE;
|
||||
protected int $status = Status::INACTIVE;
|
||||
|
||||
/**
|
||||
* Unit this department belongs to
|
||||
|
|
@ -72,7 +72,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $description = '';
|
||||
protected string $description = '';
|
||||
|
||||
/**
|
||||
* Description.
|
||||
|
|
@ -80,7 +80,7 @@ class Department implements ArrayableInterface, \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $descriptionRaw = '';
|
||||
protected string $descriptionRaw = '';
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $id = 0;
|
||||
protected int $id = 0;
|
||||
|
||||
/**
|
||||
* Name.
|
||||
|
|
@ -40,7 +40,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $name = '';
|
||||
private string $name = '';
|
||||
|
||||
/**
|
||||
* Parent
|
||||
|
|
@ -64,7 +64,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $description = '';
|
||||
private string $description = '';
|
||||
|
||||
/**
|
||||
* Description.
|
||||
|
|
@ -72,7 +72,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $descriptionRaw = '';
|
||||
private string $descriptionRaw = '';
|
||||
|
||||
/**
|
||||
* Status
|
||||
|
|
@ -80,7 +80,7 @@ class Position implements ArrayableInterface, \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $status = Status::INACTIVE;
|
||||
protected int $status = Status::INACTIVE;
|
||||
|
||||
/**
|
||||
* Get id
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $id = 0;
|
||||
private int $id = 0;
|
||||
|
||||
/**
|
||||
* Name.
|
||||
|
|
@ -40,7 +40,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $name = '';
|
||||
private string $name = '';
|
||||
|
||||
/**
|
||||
* Parent
|
||||
|
|
@ -56,7 +56,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $description = '';
|
||||
private string $description = '';
|
||||
|
||||
/**
|
||||
* Description.
|
||||
|
|
@ -64,7 +64,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $descriptionRaw = '';
|
||||
protected string $descriptionRaw = '';
|
||||
|
||||
/**
|
||||
* Status
|
||||
|
|
@ -72,7 +72,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $status = Status::INACTIVE;
|
||||
protected int $status = Status::INACTIVE;
|
||||
|
||||
/**
|
||||
* Get id
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user