Implement php 7.4 type hints

This commit is contained in:
Dennis Eichhorn 2019-08-15 21:54:59 +02:00
parent eb7dbe4663
commit b4084913de
118 changed files with 479 additions and 476 deletions

View File

@ -94,7 +94,7 @@ class Account implements ArrayableInterface, \JsonSerializable
/**
* Last activity.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected ?\DateTime $lastActive = null;
@ -102,7 +102,7 @@ class Account implements ArrayableInterface, \JsonSerializable
/**
* Last activity.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected ?\DateTime $createdAt = null;

View File

@ -31,7 +31,7 @@ final class AssetManager implements \Countable
* @var array
* @since 1.0.0
*/
private $assets = [];
private array $assets = [];
/**
* Add asset.

View File

@ -33,7 +33,7 @@ final class NetPromoterScore
* @var int[]
* @since 1.0.0
*/
private $scores = [];
private array $scores = [];
/**
* Add score.

View File

@ -33,7 +33,7 @@ trait OptionsTrait
* @var array
* @since 1.0.0
*/
private $options = [];
private array $options = [];
/**
* {@inheritdoc}

View File

@ -16,6 +16,8 @@ namespace phpOMS\Config;
use phpOMS\DataStorage\Database\DatabaseExceptionFactory;
use phpOMS\DataStorage\Database\Query\Builder;
use phpOMS\DataStorage\Cache\CachePool;
use phpOMS\DataStorage\Database\Connection\ConnectionAbstract;
/**
* Settings class.
@ -34,26 +36,26 @@ abstract class SettingsAbstract implements OptionsInterface
/**
* Cache manager (pool).
*
* @var \phpOMS\DataStorage\Cache\CachePool
* @var null|CachePool
* @since 1.0.0
*/
protected $cache = null;
protected ?CachePool $cache = null;
/**
* Database connection instance.
*
* @var \phpOMS\DataStorage\Database\Connection\ConnectionAbstract
* @var null|ConnectionAbstract
* @since 1.0.0
*/
protected $connection = null;
protected ?ConnectionAbstract $connection = null;
/**
* Settings table.
*
* @var string
* @var null|string
* @since 1.0.0
*/
protected static $table = null;
protected static ?string $table = null;
/**
* Columns to identify the value.
@ -61,7 +63,7 @@ abstract class SettingsAbstract implements OptionsInterface
* @var string[]
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'id',
];
@ -71,7 +73,7 @@ abstract class SettingsAbstract implements OptionsInterface
* @var string
* @since 1.0.0
*/
protected $valueField = 'option';
protected string $valueField = 'option';
/**
* Get option by key.

View File

@ -37,7 +37,7 @@ final class CachePool implements DataStoragePoolInterface
* @var DataStorageConnectionInterface[]
* @since 1.0.0
*/
private $pool = null;
private ?array $pool = null;
/**
* Add database.

View File

@ -49,15 +49,15 @@ abstract class ConnectionAbstract implements ConnectionInterface
* @var string
* @since 1.0.0
*/
public $prefix = '';
public string string $prefix = '';
/**
* Database data.
*
* @var string[]
* @var null|string[]
* @since 1.0.0
*/
protected $dbdata = null;
protected ?array $dbdata = null;
/**
* Database type.
@ -65,7 +65,7 @@ abstract class ConnectionAbstract implements ConnectionInterface
* @var string
* @since 1.0.0
*/
protected $type = CacheType::UNDEFINED;
protected string $type = CacheType::UNDEFINED;
/**
* Database status.
@ -73,7 +73,7 @@ abstract class ConnectionAbstract implements ConnectionInterface
* @var int
* @since 1.0.0
*/
protected $status = CacheStatus::CLOSED;
protected int $status = CacheStatus::CLOSED;
/**
* {@inheritdoc}

View File

@ -69,7 +69,7 @@ class FileCache extends ConnectionAbstract
* @var int
* @since 1.0.0
*/
private $threshold = 50;
private int $threshold = 50;
/**
* Constructor

View File

@ -31,7 +31,7 @@ class MemCached extends ConnectionAbstract
/**
* {@inheritdoc}
*/
protected $type = CacheType::MEMCACHED;
protected string $type = CacheType::MEMCACHED;
/**
* Only cache if data is larger than threshold (0-100).
@ -39,7 +39,7 @@ class MemCached extends ConnectionAbstract
* @var int
* @since 1.0.0
*/
private $threshold = 0;
private int $threshold = 0;
/**
* Constructor.

View File

@ -31,7 +31,7 @@ class RedisCache extends ConnectionAbstract
/**
* {@inheritdoc}
*/
protected $type = CacheType::REDIS;
protected string $type = CacheType::REDIS;
/**
* Constructor

View File

@ -32,14 +32,14 @@ final class CookieJar
* @var bool
* @since 1.0.0
*/
private static $isLocked = false;
private static bool $isLocked = false;
/**
* Cookie values.
*
* @var array
* @since 1.0.0
*/
private $cookies = [];
private array $cookies = [];
/**
* Constructor.

View File

@ -30,18 +30,18 @@ abstract class BuilderAbstract
/**
* Grammar.
*
* @var GrammarAbstract
* @var null|GrammarAbstract
* @since 1.0.0
*/
protected $grammar = null;
protected ?GrammarAbstract $grammar = null;
/**
* Database connection.
*
* @var DataStorageConnectionInterface
* @var null|DataStorageConnectionInterface
* @since 1.0.0
*/
protected $connection = null;
protected ?DataStorageConnectionInterface $connection = null;
/**
* Query type.
@ -49,7 +49,7 @@ abstract class BuilderAbstract
* @var int
* @since 1.0.0
*/
protected $type = QueryType::NONE;
protected int $type = QueryType::NONE;
/**
* Prefix.
@ -57,7 +57,7 @@ abstract class BuilderAbstract
* @var string
* @since 1.0.0
*/
protected $prefix = '';
protected string $prefix = '';
/**
* Raw.
@ -65,7 +65,7 @@ abstract class BuilderAbstract
* @var string
* @since 1.0.0
*/
public $raw = '';
public string $raw = '';
/**
* Get connection

View File

@ -41,7 +41,7 @@ abstract class ConnectionAbstract implements ConnectionInterface
* @var null|\PDO
* @since 1.0.0
*/
public $con = null;
public ?\PDO $con = null;
/**
* Database prefix.
@ -51,15 +51,15 @@ abstract class ConnectionAbstract implements ConnectionInterface
* @var string
* @since 1.0.0
*/
public $prefix = '';
public string $prefix = '';
/**
* Database data.
*
* @var string[]
* @var null|string[]
* @since 1.0.0
*/
protected $dbdata = null;
protected ?array $dbdata = null;
/**
* Database type.
@ -67,7 +67,7 @@ abstract class ConnectionAbstract implements ConnectionInterface
* @var string
* @since 1.0.0
*/
protected $type = DatabaseType::UNDEFINED;
protected string $type = DatabaseType::UNDEFINED;
/**
* Database status.
@ -75,23 +75,23 @@ abstract class ConnectionAbstract implements ConnectionInterface
* @var int
* @since 1.0.0
*/
protected $status = DatabaseStatus::CLOSED;
protected int $status = DatabaseStatus::CLOSED;
/**
* Database grammar.
*
* @var Grammar
* @var null|Grammar
* @since 1.0.0
*/
protected $grammar = null;
protected ?Grammar $grammar = null;
/**
* Database grammar.
*
* @var SchemaGrammar
* @var null|SchemaGrammar
* @since 1.0.0
*/
protected $schemaGrammar = null;
protected ?SchemaGrammar $schemaGrammar = null;
/**
* {@inheritdoc}

View File

@ -37,10 +37,10 @@ class DataMapperAbstract implements DataMapperInterface
/**
* Database connection.
*
* @var ConnectionAbstract
* @var null|ConnectionAbstract
* @since 1.0.0
*/
protected static $db = null;
protected static ?ConnectionAbstract $db = null;
/**
* Overwriting extended values.
@ -48,7 +48,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var bool
* @since 1.0.0
*/
protected static $overwrite = true;
protected static bool $overwrite = true;
/**
* Primary field name.
@ -56,7 +56,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var string
* @since 1.0.0
*/
protected static $primaryField = '';
protected static string $primaryField = '';
/**
* Primary field name.
@ -64,7 +64,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var string
* @since 1.0.0
*/
protected static $createdAt = '';
protected static string $createdAt = '';
/**
* Language
@ -72,7 +72,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var string
* @since 1.0.0
*/
protected static $languageField = '';
protected static string $languageField = '';
/**
* Columns.
@ -80,7 +80,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $columns = [];
protected static array $columns = [];
/**
* Has many relation.
@ -88,7 +88,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var array<string, array>
* @since 1.0.0
*/
protected static $hasMany = [];
protected static array $hasMany = [];
/**
* Relations.
@ -98,7 +98,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var array<string, array>
* @since 1.0.0
*/
protected static $ownsOne = [];
protected static array $ownsOne = [];
/**
* Relations.
@ -113,7 +113,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [];
protected static array $belongsTo = [];
/**
* Table.
@ -121,7 +121,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var string
* @since 1.0.0
*/
protected static $table = '';
protected static string $table = '';
/**
* Fields to load.
@ -129,7 +129,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var array[]
* @since 1.0.0
*/
protected static $fields = [];
protected static array $fields = [];
/**
* Initialized objects for cross reference to reduce initialization costs
@ -137,7 +137,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var array[]
* @since 1.0.0
*/
protected static $initObjects = [];
protected static array $initObjects = [];
/**
* Initialized arrays for cross reference to reduce initialization costs
@ -145,7 +145,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var array[]
* @since 1.0.0
*/
protected static $initArrays = [];
protected static array $initArrays = [];
/**
* Highest mapper to know when to clear initialized objects
@ -153,7 +153,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var null|string
* @since 1.0.0
*/
protected static $parentMapper = null;
protected static ?string $parentMapper = null;
/**
* Extended value collection.
@ -161,7 +161,7 @@ class DataMapperAbstract implements DataMapperInterface
* @var array
* @since 1.0.0
*/
protected static $collection = [
protected static array $collection = [
'primaryField' => [],
'createdAt' => [],
'columns' => [],

View File

@ -36,7 +36,7 @@ final class DatabasePool implements DataStoragePoolInterface
* @var DataStorageConnectionInterface[]
* @since 1.0.0
*/
private $pool = [];
private array $pool = [];
/**
* Constructor.

View File

@ -32,7 +32,7 @@ abstract class GrammarAbstract
* @var string
* @since 1.0.0
*/
protected $comment = '--';
protected string $comment = '--';
/**
* String quotes style.
@ -40,7 +40,7 @@ abstract class GrammarAbstract
* @var string
* @since 1.0.0
*/
protected $valueQuotes = '\'';
protected string $valueQuotes = '\'';
/**
* System identifier.
@ -48,7 +48,7 @@ abstract class GrammarAbstract
* @var string
* @since 1.0.0
*/
protected $systemIdentifier = '"';
protected string $systemIdentifier = '"';
/**
* And operator.
@ -56,7 +56,7 @@ abstract class GrammarAbstract
* @var string
* @since 1.0.0
*/
protected $and = 'AND';
protected string $and = 'AND';
/**
* Or operator.
@ -64,7 +64,7 @@ abstract class GrammarAbstract
* @var string
* @since 1.0.0
*/
protected $or = 'OR';
protected string $or = 'OR';
/**
* Table prefix.
@ -72,7 +72,7 @@ abstract class GrammarAbstract
* @var string
* @since 1.0.0
*/
protected $tablePrefix = '';
protected string $tablePrefix = '';
/**
* Special keywords.
@ -80,7 +80,7 @@ abstract class GrammarAbstract
* @var array
* @since 1.0.0
*/
protected $specialKeywords = [
protected array $specialKeywords = [
'COUNT(',
];

View File

@ -33,7 +33,7 @@ class Builder extends BuilderAbstract
* @var bool
* @since 1.0.0
*/
protected $isReadOnly = false;
protected bool $isReadOnly = false;
/**
* Columns.
@ -41,7 +41,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $selects = [];
public array $selects = [];
/**
* Columns.
@ -49,7 +49,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $updates = [];
public array $updates = [];
/**
* Stupid work around because value needs to be not null for it to work in Grammar.
@ -57,7 +57,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $deletes = [1];
public array $deletes = [1];
/**
* Into.
@ -73,7 +73,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $inserts = [];
public array $inserts = [];
/**
* Into columns.
@ -81,7 +81,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $values = [];
public array $values = [];
/**
* Into columns.
@ -89,7 +89,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $sets = [];
public array $sets = [];
/**
* Distinct.
@ -97,7 +97,7 @@ class Builder extends BuilderAbstract
* @var bool
* @since 1.0.0
*/
public $distinct = false;
public bool $distinct = false;
/**
* From.
@ -105,7 +105,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $from = [];
public array $from = [];
/**
* Joins.
@ -113,7 +113,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $joins = [];
public array $joins = [];
/**
* Ons of joins.
@ -121,7 +121,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $ons = [];
public array $ons = [];
/**
* Where.
@ -129,7 +129,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $wheres = [];
public array $wheres = [];
/**
* Group.
@ -137,7 +137,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $groups = [];
public array $groups = [];
/**
* Order.
@ -145,23 +145,23 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $orders = [];
public array $orders = [];
/**
* Limit.
*
* @var int
* @var null|int
* @since 1.0.0
*/
public $limit = null;
public ?int $limit = null;
/**
* Offset.
*
* @var int
* @var null|int
* @since 1.0.0
*/
public $offset = null;
public ?int $offset = null;
/**
* Binds.
@ -169,7 +169,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
private $binds = [];
private array $binds = [];
/**
* Union.
@ -177,7 +177,7 @@ class Builder extends BuilderAbstract
* @var array
* @since 1.0.0
*/
public $unions = [];
public array $unions = [];
/**
* Lock.
@ -185,7 +185,7 @@ class Builder extends BuilderAbstract
* @var bool
* @since 1.0.0
*/
public $lock = false;
public bool $lock = false;
/**
* Comparison OPERATORS.

View File

@ -31,7 +31,7 @@ class Column
* @var string
* @since 1.0.0
*/
private $column = '';
private string $column = '';
/**
* Constructor.

View File

@ -36,7 +36,7 @@ class Grammar extends GrammarAbstract
* @var string[]
* @since 1.0.0
*/
protected $selectComponents = [
protected array $selectComponents = [
'aggregate',
'selects',
'from',
@ -57,7 +57,7 @@ class Grammar extends GrammarAbstract
* @var string[]
* @since 1.0.0
*/
protected $insertComponents = [
protected array $insertComponents = [
'into',
'inserts',
'values',
@ -69,7 +69,7 @@ class Grammar extends GrammarAbstract
* @var string[]
* @since 1.0.0
*/
protected $updateComponents = [
protected array $updateComponents = [
'updates',
'sets',
'wheres',
@ -81,7 +81,7 @@ class Grammar extends GrammarAbstract
* @var string[]
* @since 1.0.0
*/
protected $deleteComponents = [
protected array $deleteComponents = [
'deletes',
'from',
'wheres',
@ -93,7 +93,7 @@ class Grammar extends GrammarAbstract
* @var string[]
* @since 1.0.0
*/
protected $randomComponents = [
protected array $randomComponents = [
'random',
];

View File

@ -33,7 +33,7 @@ class MysqlGrammar extends Grammar
* @var string
* @since 1.0.0
*/
protected $systemIdentifier = '`';
protected string $systemIdentifier = '`';
/**
* Compile random.

View File

@ -33,7 +33,7 @@ class SQLiteGrammar extends Grammar
* @var string
* @since 1.0.0
*/
public $systemIdentifier = '`';
public string $systemIdentifier = '`';
/**
* Compile random.

View File

@ -27,19 +27,19 @@ use phpOMS\DataStorage\Database\Query\Builder as QueryBuilder;
*/
class Builder extends QueryBuilder
{
public $createTable = '';
public string $createTable = '';
public $createFields = [];
public array $createFields = [];
public $dropDatabase = '';
public string $dropDatabase = '';
public $dropTable = '';
public string $dropTable = '';
public $selectTables = ['*'];
public array $selectTables = ['*'];
public $selectFields = '';
public string $selectFields = '';
public $createTableSettings = true;
public bool $createTableSettings = true;
/**
* Constructor.

View File

@ -34,7 +34,7 @@ class Grammar extends QueryGrammar
* @var string[]
* @since 1.0.0
*/
protected $dropDatabaseComponents = [
protected array $dropDatabaseComponents = [
'dropDatabase',
];
@ -44,7 +44,7 @@ class Grammar extends QueryGrammar
* @var string[]
* @since 1.0.0
*/
protected $dropTableComponents = [
protected array $dropTableComponents = [
'dropTable',
];
@ -54,7 +54,7 @@ class Grammar extends QueryGrammar
* @var string[]
* @since 1.0.0
*/
protected $createTablesComponents = [
protected array $createTablesComponents = [
'createTable',
'createFields',
'createTableSettings',
@ -66,7 +66,7 @@ class Grammar extends QueryGrammar
* @var string[]
* @since 1.0.0
*/
protected $tablesComponents = [
protected array $tablesComponents = [
'selectTables',
];
@ -76,7 +76,7 @@ class Grammar extends QueryGrammar
* @var string[]
* @since 1.0.0
*/
protected $fieldsComponents = [
protected array $fieldsComponents = [
'selectFields',
];

View File

@ -33,7 +33,7 @@ class MysqlGrammar extends Grammar
* @var string
* @since 1.0.0
*/
protected $systemIdentifier = '`';
protected string $systemIdentifier = '`';
/**
* Compile from.

View File

@ -22,5 +22,5 @@ class SQLiteGrammar extends Grammar
* @var string
* @since 1.0.0
*/
protected $systemIdentifier = '`';
protected string $systemIdentifier = '`';
}

View File

@ -30,10 +30,10 @@ class SchemaMapper
/**
* Database connection.
*
* @var ConnectionAbstract
* @var null|ConnectionAbstract
* @since 1.0.0
*/
protected $db = null;
protected ?ConnectionAbstract $db = null;
public function __construct(ConnectionAbstract $db)
{

View File

@ -37,7 +37,7 @@ class HttpSession implements SessionInterface
* @var bool
* @since 1.0.0
*/
private $isLocked = false;
private bool $isLocked = false;
/**
* Raw session data.
@ -45,7 +45,7 @@ class HttpSession implements SessionInterface
* @var array
* @since 1.0.0
*/
private $sessionData = [];
private array $sessionData = [];
/**
* Session ID.
@ -61,7 +61,7 @@ class HttpSession implements SessionInterface
* @var int
* @since 1.0.0
*/
private $inactivityInterval = 0;
private int $inactivityInterval = 0;
/**
* Constructor.

View File

@ -36,7 +36,7 @@ final class Dispatcher
* @var null|ApplicationAbstract
* @since 1.0.0
*/
private $app = null;
private ?ApplicationAbstract $app = null;
/**
* Controller.
@ -46,7 +46,7 @@ final class Dispatcher
* @var array
* @since 1.0.0
*/
private $controllers = [];
private array $controllers = [];
/**
* Constructor.

View File

@ -38,7 +38,7 @@ final class EventManager implements \Countable
* @var array
* @since 1.0.0
*/
private $groups = [];
private array $groups = [];
/**
* Callbacks.
@ -46,7 +46,7 @@ final class EventManager implements \Countable
* @var array
* @since 1.0.0
*/
private $callbacks = [];
private array $callbacks = [];
/**
* Dispatcher.
@ -54,7 +54,7 @@ final class EventManager implements \Countable
* @var Dispatcher|Object<dispatch>
* @since 1.0.0
*/
private $dispatcher = null;
private ?Dispatcher $dispatcher = null;
/**
* Constructor.

View File

@ -33,7 +33,7 @@ class CityMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'city_id' => ['name' => 'city_id', 'type' => 'int', 'internal' => 'id'],
'city_city' => ['name' => 'city_city', 'type' => 'string', 'internal' => 'name'],
'city_country' => ['name' => 'city_country', 'type' => 'string', 'internal' => 'countryCode'],
@ -49,7 +49,7 @@ class CityMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'city';
protected static string $table = 'city';
/**
* Primary field name.
@ -57,5 +57,5 @@ class CityMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'city_id';
protected static string $primaryField = 'city_id';
}

View File

@ -33,7 +33,7 @@ class CountryMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'country_id' => ['name' => 'country_id', 'type' => 'int', 'internal' => 'id'],
'country_name' => ['name' => 'country_name', 'type' => 'string', 'internal' => 'name'],
'country_code2' => ['name' => 'country_code2', 'type' => 'string', 'internal' => 'code2'],
@ -48,7 +48,7 @@ class CountryMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'country';
protected static string $table = 'country';
/**
* Primary field name.
@ -56,5 +56,5 @@ class CountryMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'country_id';
protected static string $primaryField = 'country_id';
}

View File

@ -33,7 +33,7 @@ class CurrencyMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'currency_id' => ['name' => 'currency_id', 'type' => 'int', 'internal' => 'id'],
'currency_name' => ['name' => 'currency_name', 'type' => 'string', 'internal' => 'name'],
'currency_code' => ['name' => 'currency_code', 'type' => 'string', 'internal' => 'code'],
@ -48,7 +48,7 @@ class CurrencyMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'currency';
protected static string $table = 'currency';
/**
* Primary field name.
@ -56,5 +56,5 @@ class CurrencyMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'currency_id';
protected static string $primaryField = 'currency_id';
}

View File

@ -33,7 +33,7 @@ class IbanMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'iban_id' => ['name' => 'iban_id', 'type' => 'int', 'internal' => 'id'],
'iban_country' => ['name' => 'iban_country', 'type' => 'string', 'internal' => 'country'],
'iban_chars' => ['name' => 'iban_chars', 'type' => 'int', 'internal' => 'chars'],
@ -47,7 +47,7 @@ class IbanMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'iban';
protected static string $table = 'iban';
/**
* Primary field name.
@ -55,5 +55,5 @@ class IbanMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'iban_id';
protected static string $primaryField = 'iban_id';
}

View File

@ -33,7 +33,7 @@ class LanguageMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static $columns = [
protected static array $columns = [
'language_id' => ['name' => 'language_id', 'type' => 'int', 'internal' => 'id'],
'language_native' => ['name' => 'language_native', 'type' => 'string', 'internal' => 'name'],
'language_639_1' => ['name' => 'language_639_1', 'type' => 'string', 'internal' => 'native'],
@ -48,7 +48,7 @@ class LanguageMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $table = 'language';
protected static string $table = 'language';
/**
* Primary field name.
@ -56,5 +56,5 @@ class LanguageMapper extends DataMapperAbstract
* @var string
* @since 1.0.0
*/
protected static $primaryField = 'language_id';
protected static string $primaryField = 'language_id';
}

View File

@ -34,7 +34,7 @@ final class L11nManager
* @var array
* @since 1.0.0
*/
private $language = [];
private array $language = [];
/**
* App Name.
@ -42,7 +42,7 @@ final class L11nManager
* @var string
* @since 1.0.0
*/
private $appName = '';
private string $appName = '';
/**
* Construct.

View File

@ -35,7 +35,7 @@ class Localization
* @var string
* @since 1.0.0
*/
private $country = ISO3166TwoEnum::_USA;
private string $country = ISO3166TwoEnum::_USA;
/**
* Timezone.
@ -43,7 +43,7 @@ class Localization
* @var string
* @since 1.0.0
*/
private $timezone = 'America/New_York';
private string $timezone = 'America/New_York';
/**
* Language ISO code.
@ -51,7 +51,7 @@ class Localization
* @var string
* @since 1.0.0
*/
private $language = ISO639x1Enum::_EN;
private string $language = ISO639x1Enum::_EN;
/**
* Currency.
@ -59,7 +59,7 @@ class Localization
* @var string
* @since 1.0.0
*/
private $currency = ISO4217Enum::_USD;
private string $currency = ISO4217Enum::_USD;
/**
* Number format.
@ -67,7 +67,7 @@ class Localization
* @var string
* @since 1.0.0
*/
private $decimal = '.';
private string $decimal = '.';
/**
* Number format.
@ -75,7 +75,7 @@ class Localization
* @var string
* @since 1.0.0
*/
private $thousands = ',';
private string $thousands = ',';
/**
* Angle type.
@ -83,7 +83,7 @@ class Localization
* @var string
* @since 1.0.0
*/
private $angle = AngleType::DEGREE;
private string $angle = AngleType::DEGREE;
/**
* Temperature type.
@ -91,7 +91,7 @@ class Localization
* @var string
* @since 1.0.0
*/
private $temperature = TemperatureType::CELSIUS;
private string $temperature = TemperatureType::CELSIUS;
/**
* Time format.
@ -99,7 +99,7 @@ class Localization
* @var array
* @since 1.0.0
*/
private $datetime = [];
private array $datetime = [];
/**
* Weight.
@ -107,7 +107,7 @@ class Localization
* @var array
* @since 1.0.0
*/
private $weight = [];
private array $weight = [];
/**
* Speed.
@ -115,7 +115,7 @@ class Localization
* @var array
* @since 1.0.0
*/
private $speed = [];
private array $speed = [];
/**
* Length.
@ -123,7 +123,7 @@ class Localization
* @var array
* @since 1.0.0
*/
private $length = [];
private array $length = [];
/**
* Area.
@ -131,7 +131,7 @@ class Localization
* @var array
* @since 1.0.0
*/
private $area = [];
private array $area = [];
/**
* Volume.
@ -139,7 +139,7 @@ class Localization
* @var array
* @since 1.0.0
*/
private $volume = [];
private array $volume = [];
/**
* Load localization from language code

View File

@ -39,7 +39,7 @@ final class Money implements \Serializable
* @var string
* @since 1.0.0
*/
private $thousands = ',';
private string $thousands = ',';
/**
* Decimal separator.
@ -47,7 +47,7 @@ final class Money implements \Serializable
* @var string
* @since 1.0.0
*/
private $decimal = '.';
private string $decimal = '.';
/**
* Currency symbol position
@ -55,7 +55,7 @@ final class Money implements \Serializable
* @var int
* @since 1.0.0
*/
private $position = 1;
private int $position = 1;
/**
* Currency symbol.
@ -63,7 +63,7 @@ final class Money implements \Serializable
* @var string
* @since 1.0.0
*/
private $symbol = ISO4217SymbolEnum::_USD;
private string $symbol = ISO4217SymbolEnum::_USD;
/**
* Value.
@ -71,7 +71,7 @@ final class Money implements \Serializable
* @var int
* @since 1.0.0
*/
private $value = 0;
private int $value = 0;
/**
* Constructor.

View File

@ -42,15 +42,15 @@ final class FileLogger implements LoggerInterface
* @var array
* @since 1.0.0
*/
private static $timings = [];
private static array $timings = [];
/**
* Instance.
*
* @var FileLogger
* @var null|FileLogger
* @since 1.0.0
*/
protected static $instance = null;
protected static ?FileLogger $instance = null;
/**
* Verbose.
@ -58,7 +58,7 @@ final class FileLogger implements LoggerInterface
* @var bool
* @since 1.0.0
*/
protected $verbose = false;
protected bool $verbose = false;
/**
* The file pointer for the logging.
@ -76,7 +76,7 @@ final class FileLogger implements LoggerInterface
* @var string
* @since 1.0.0
*/
private $path = '';
private string $path = '';
/**
* Is the logging file created
@ -84,7 +84,7 @@ final class FileLogger implements LoggerInterface
* @var bool
* @since 1.0.0
*/
private $created = false;
private bool $created = false;
/**
* Object constructor.

View File

@ -40,7 +40,7 @@ final class Polygon implements D2ShapeInterface
* @var array[]
* @since 1.0.0
*/
private $coord = [];
private array $coord = [];
/**
* Constructor.

View File

@ -30,7 +30,7 @@ final class Sphere implements D3ShapeInterface
* @var float
* @since 1.0.0
*/
private $radius = 0.0;
private float $radius = 0.0;
/**
* Constructor.

View File

@ -34,7 +34,7 @@ final class CholeskyDecomposition
* @var array
* @since 1.0.0
*/
private $L = [];
private array $L = [];
/**
* Dimension of L
@ -42,7 +42,7 @@ final class CholeskyDecomposition
* @var int
* @since 1.0.0
*/
private $m = 0;
private int $m = 0;
/**
* Is symmetric positiv definite
@ -50,7 +50,7 @@ final class CholeskyDecomposition
* @var bool
* @since 1.0.0
*/
private $isSpd = true;
private bool $isSpd = true;
/**
* Constructor.

View File

@ -35,7 +35,7 @@ final class EigenvalueDecomposition
* @var int
* @since 1.0.0
*/
private $m = 0;
private int $m = 0;
/**
* Is symmetric
@ -43,7 +43,7 @@ final class EigenvalueDecomposition
* @var bool
* @since 1.0.0
*/
private $isSymmetric = true;
private bool $isSymmetric = true;
/**
* A square matrix.
@ -51,7 +51,7 @@ final class EigenvalueDecomposition
* @var array
* @since 1.0.0
*/
private $A = [];
private array $A = [];
/**
* Eigenvectors
@ -59,7 +59,7 @@ final class EigenvalueDecomposition
* @var array
* @since 1.0.0
*/
private $V = [];
private array $V = [];
/**
* Eigenvalues
@ -67,7 +67,7 @@ final class EigenvalueDecomposition
* @var array
* @since 1.0.0
*/
private $D = [];
private array $D = [];
/**
* Eigenvalues
@ -75,7 +75,7 @@ final class EigenvalueDecomposition
* @var array
* @since 1.0.0
*/
private $E = [];
private array $E = [];
/**
* Hessenberg form
@ -83,7 +83,7 @@ final class EigenvalueDecomposition
* @var array
* @since 1.0.0
*/
private $H = [];
private array $H = [];
/**
* Non-symmetric storage
@ -91,7 +91,7 @@ final class EigenvalueDecomposition
* @var array
* @since 1.0.0
*/
private $ort = [];
private array $ort = [];
/**
* Complex scalar division
@ -99,7 +99,7 @@ final class EigenvalueDecomposition
* @var float
* @since 1.0.0
*/
private $cdivr = 0.0;
private float $cdivr = 0.0;
/**
* Complex scalar division
@ -107,7 +107,7 @@ final class EigenvalueDecomposition
* @var float
* @since 1.0.0
*/
private $cdivi = 0.0;
private float $cdivi = 0.0;
/**
* Constructor.

View File

@ -34,7 +34,7 @@ final class LUDecomposition
* @var array
* @since 1.0.0
*/
private $LU = [];
private array $LU = [];
/**
* Dimension m
@ -42,7 +42,7 @@ final class LUDecomposition
* @var int
* @since 1.0.0
*/
private $m = 0;
private int $m = 0;
/**
* Dimension n
@ -50,7 +50,7 @@ final class LUDecomposition
* @var int
* @since 1.0.0
*/
private $n = 0;
private int $n = 0;
/**
* Pivot sign
@ -58,7 +58,7 @@ final class LUDecomposition
* @var int
* @since 1.0.0
*/
private $pivSign = 1;
private int $pivSign = 1;
/**
* Pivot
@ -66,7 +66,7 @@ final class LUDecomposition
* @var array
* @since 1.0.0
*/
private $piv = [];
private array $piv = [];
/**
* Constructor.

View File

@ -32,7 +32,7 @@ class Matrix implements \ArrayAccess, \Iterator
* @var array
* @since 1.0.0
*/
protected $matrix = [];
protected array $matrix = [];
/**
* Columns.
@ -40,7 +40,7 @@ class Matrix implements \ArrayAccess, \Iterator
* @var int
* @since 1.0.0
*/
protected $n = 0;
protected int $n = 0;
/**
* Rows.
@ -48,7 +48,7 @@ class Matrix implements \ArrayAccess, \Iterator
* @var int
* @since 1.0.0
*/
protected $m = 0;
protected int $m = 0;
/**
* Iterator position.
@ -56,7 +56,7 @@ class Matrix implements \ArrayAccess, \Iterator
* @var int
* @since 1.0.0
*/
protected $position = 0;
protected int $position = 0;
/**
* Constructor.

View File

@ -35,7 +35,7 @@ final class QRDecomposition
* @var array[]
* @since 1.0.0
*/
private $QR = [];
private array $QR = [];
/**
* Dimension m
@ -43,7 +43,7 @@ final class QRDecomposition
* @var int
* @since 1.0.0
*/
private $m = 0;
private int $m = 0;
/**
* Dimension n
@ -51,7 +51,7 @@ final class QRDecomposition
* @var int
* @since 1.0.0
*/
private $n = 0;
private int $n = 0;
/**
* R diagonal
@ -59,7 +59,7 @@ final class QRDecomposition
* @var array
* @since 1.0.0
*/
private $Rdiag = [];
private array $Rdiag = [];
/**
* Constructor.

View File

@ -32,7 +32,7 @@ final class SingularValueDecomposition
* @var array[]
* @since 1.0.0
*/
private $U = [];
private array $U = [];
/**
* V matrix.
@ -40,7 +40,7 @@ final class SingularValueDecomposition
* @var array[]
* @since 1.0.0
*/
private $V = [];
private array $V = [];
/**
* Singular values.
@ -48,7 +48,7 @@ final class SingularValueDecomposition
* @var array
* @since 1.0.0
*/
private $S = [];
private array $S = [];
/**
* Dimension m
@ -56,7 +56,7 @@ final class SingularValueDecomposition
* @var int
* @since 1.0.0
*/
private $m = 0;
private int $m = 0;
/**
* Dimension n
@ -64,7 +64,7 @@ final class SingularValueDecomposition
* @var int
* @since 1.0.0
*/
private $n = 0;
private int $n = 0;
/**
* Constructor.

View File

@ -42,7 +42,7 @@ final class Header extends HeaderAbstract
* @var string[][]
* @since 1.0.0
*/
private $header = [];
private array $header = [];
/**
* Constructor.

View File

@ -36,10 +36,10 @@ final class Request extends RequestAbstract
/**
* OS type.
*
* @var string
* @var null|string
* @since 1.0.0
*/
private $os = null;
private ?string $os = null;
/**
* Constructor.

View File

@ -38,7 +38,7 @@ final class Response extends ResponseAbstract implements RenderableInterface
* @var int
* @since 1.0.0
*/
protected $status = RequestStatusCode::R_200;
protected int $status = RequestStatusCode::R_200;
/**
* Constructor.

View File

@ -32,15 +32,15 @@ abstract class HeaderAbstract
* @var bool
* @since 1.0.0
*/
protected $isLocked = false;
protected bool $isLocked = false;
/**
* Localization.
*
* @var Localization
* @var null|Localization
* @since 1.0.0
*/
protected $l11n = null;
protected ?Localization $l11n = null;
/**
* Account.
@ -48,7 +48,7 @@ abstract class HeaderAbstract
* @var int
* @since 1.0.0
*/
protected $account = 0;
protected int $account = 0;
/**
* Response status.
@ -56,7 +56,7 @@ abstract class HeaderAbstract
* @var int
* @since 1.0.0
*/
protected $status = 0;
protected int $status = 0;
/**
* Constructor.

View File

@ -36,7 +36,7 @@ final class Header extends HeaderAbstract
* @var string[][]
* @since 1.0.0
*/
private $header = [];
private array $header = [];
/**
* Constructor.

View File

@ -37,26 +37,26 @@ final class Request extends RequestAbstract
/**
* Browser type.
*
* @var string
* @var null|string
* @since 1.0.0
*/
private $browser = null;
private ?string $browser = null;
/**
* OS type.
*
* @var string
* @var null|string
* @since 1.0.0
*/
private $os = null;
private ?string $os = null;
/**
* Request information.
*
* @var string[]
* @var null|string[]
* @since 1.0.0
*/
private $info = null;
private ?array $info = null;
/**
* Constructor.

View File

@ -38,7 +38,7 @@ final class Response extends ResponseAbstract implements RenderableInterface
* @var int
* @since 1.0.0
*/
protected $status = RequestStatusCode::R_200;
protected int $status = RequestStatusCode::R_200;
/**
* Constructor.

View File

@ -163,7 +163,7 @@ class Mail
/**
* Mail from.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected $messageDate = null;

View File

@ -29,26 +29,26 @@ abstract class RequestAbstract implements MessageInterface
/**
* Uri.
*
* @var UriInterface
* @var null|UriInterface
* @since 1.0.0
*/
protected $uri = null;
protected ?UriInterface $uri = null;
/**
* Request method.
*
* @var string
* @var null|string
* @since 1.0.0
*/
protected $method = null;
protected ?string $method = null;
/**
* Request type.
*
* @var string
* @var null|string
* @since 1.0.0
*/
protected $type = null;
protected ?string $type = null;
/**
* Request data.
@ -56,7 +56,7 @@ abstract class RequestAbstract implements MessageInterface
* @var array
* @since 1.0.0
*/
protected $data = [];
protected array $data = [];
/**
* Request hash.
@ -64,7 +64,7 @@ abstract class RequestAbstract implements MessageInterface
* @var array
* @since 1.0.0
*/
protected $hash = [];
protected array $hash = [];
/**
* Uploaded files.
@ -72,7 +72,7 @@ abstract class RequestAbstract implements MessageInterface
* @var array
* @since 1.0.0
*/
protected $files = [];
protected array $files = [];
/**
* Request lock.
@ -80,15 +80,15 @@ abstract class RequestAbstract implements MessageInterface
* @var bool
* @since 1.0.0
*/
protected $lock = false;
protected bool $lock = false;
/**
* Request header.
*
* @var HeaderAbstract
* @var null|HeaderAbstract
* @since 1.0.0
*/
protected $header = null;
protected ?HeaderAbstract $header = null;
/**
* Get request uri.

View File

@ -30,15 +30,15 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable
* @var array
* @since 1.0.0
*/
protected $response = [];
protected array $response = [];
/**
* Header.
*
* @var HeaderAbstract
* @var null|HeaderAbstract
* @since 1.0.0
*/
protected $header = null;
protected ?HeaderAbstract $header = null;
/**
* Get response by ID.

View File

@ -37,7 +37,7 @@ class Head implements RenderableInterface
* @var string
* @since 1.0.0
*/
private $language = ISO639x1Enum::_EN;
private string $language = ISO639x1Enum::_EN;
/**
* Page title.
@ -45,7 +45,7 @@ class Head implements RenderableInterface
* @var string
* @since 1.0.0
*/
private $title = '';
private string $title = '';
/**
* Assets bound to this page instance.
@ -53,7 +53,7 @@ class Head implements RenderableInterface
* @var array
* @since 1.0.0
*/
private $assets = [];
private array $assets = [];
/**
* Is the header set?
@ -61,15 +61,15 @@ class Head implements RenderableInterface
* @var bool
* @since 1.0.0
*/
private $hasContent = false;
private bool $hasContent = false;
/**
* Page meta.
*
* @var Meta
* @var null|Meta
* @since 1.0.0
*/
private $meta = null;
private ?Meta $meta = null;
/**
* html style.
@ -79,7 +79,7 @@ class Head implements RenderableInterface
* @var mixed[]
* @since 1.0.0
*/
private $style = [];
private array $style = [];
/**
* html script.
@ -87,7 +87,7 @@ class Head implements RenderableInterface
* @var mixed[]
* @since 1.0.0
*/
private $script = [];
private array $script = [];
/**
* Constructor.

View File

@ -34,7 +34,7 @@ class Meta implements RenderableInterface
* @var string[]
* @since 1.0.0
*/
private $keywords = [];
private array $keywords = [];
/**
* Author.
@ -42,7 +42,7 @@ class Meta implements RenderableInterface
* @var string
* @since 1.0.0
*/
private $author = '';
private string $author = '';
/**
* Charset.
@ -50,7 +50,7 @@ class Meta implements RenderableInterface
* @var string
* @since 1.0.0
*/
private $charset = '';
private string $charset = '';
/**
* Description.
@ -58,7 +58,7 @@ class Meta implements RenderableInterface
* @var string
* @since 1.0.0
*/
private $description = '';
private string $description = '';
/**
* Itemprop.
@ -66,7 +66,7 @@ class Meta implements RenderableInterface
* @var array
* @since 1.0.0
*/
private $itemprops = [];
private array $itemprops = [];
/**
* Property.
@ -74,7 +74,7 @@ class Meta implements RenderableInterface
* @var array
* @since 1.0.0
*/
private $properties = [];
private array $properties = [];
/**
* Name.
@ -82,7 +82,7 @@ class Meta implements RenderableInterface
* @var array
* @since 1.0.0
*/
private $names = [];
private array $names = [];
/**
* Add keyword.

View File

@ -41,7 +41,7 @@ class Dom implements \Serializable, ArrayableInterface
* @var string
* @since 1.0.0
*/
private $selector = '';
private string $selector = '';
/**
* Dom content.
@ -49,7 +49,7 @@ class Dom implements \Serializable, ArrayableInterface
* @var string
* @since 1.0.0
*/
private $content = '';
private string $content = '';
/**
* Dom action.
@ -57,7 +57,7 @@ class Dom implements \Serializable, ArrayableInterface
* @var int
* @since 1.0.0
*/
private $action = DomAction::MODIFY;
private int $action = DomAction::MODIFY;
/**
* Delay in ms.
@ -65,7 +65,7 @@ class Dom implements \Serializable, ArrayableInterface
* @var int
* @since 1.0.0
*/
private $delay = 0;
private int $delay = 0;
/**
* Set DOM content

View File

@ -41,7 +41,7 @@ class FormValidation implements \Serializable, ArrayableInterface, \JsonSerializ
* @var array
* @since 1.0.0
*/
private $validation = [];
private array $validation = [];
/**
* Constructor.

View File

@ -41,7 +41,7 @@ class Notify implements \Serializable, ArrayableInterface, \JsonSerializable
* @var string
* @since 1.0.0
*/
private $title = '';
private string $title = '';
/**
* Message.
@ -49,7 +49,7 @@ class Notify implements \Serializable, ArrayableInterface, \JsonSerializable
* @var string
* @since 1.0.0
*/
private $message = '';
private string $message = '';
/**
* Delay in ms.
@ -57,7 +57,7 @@ class Notify implements \Serializable, ArrayableInterface, \JsonSerializable
* @var int
* @since 1.0.0
*/
private $delay = 0;
private int $delay = 0;
/**
* Stay in ms.
@ -65,7 +65,7 @@ class Notify implements \Serializable, ArrayableInterface, \JsonSerializable
* @var int
* @since 1.0.0
*/
private $stay = 0;
private int $stay = 0;
/**
* Level or type.
@ -73,7 +73,7 @@ class Notify implements \Serializable, ArrayableInterface, \JsonSerializable
* @var int
* @since 1.0.0
*/
private $level = NotifyType::INFO;
private int $level = NotifyType::INFO;
/**
* Constructor.

View File

@ -41,7 +41,7 @@ class Redirect implements \Serializable, ArrayableInterface, \JsonSerializable
* @var string
* @since 1.0.0
*/
private $uri = '';
private string $uri = '';
/**
* Delay.
@ -49,7 +49,7 @@ class Redirect implements \Serializable, ArrayableInterface, \JsonSerializable
* @var int
* @since 1.0.0
*/
private $delay = 0;
private int $delay = 0;
/**
* Window.
@ -57,7 +57,7 @@ class Redirect implements \Serializable, ArrayableInterface, \JsonSerializable
* @var bool
* @since 1.0.0
*/
private $new = false;
private bool $new = false;
/**
* Constructor.

View File

@ -41,7 +41,7 @@ class Reload implements \Serializable, ArrayableInterface, \JsonSerializable
* @var int
* @since 1.0.0
*/
private $delay = 0;
private int $delay = 0;
/**
* Constructor.

View File

@ -36,7 +36,7 @@ final class InfoManager
* @var string
* @since 1.0.0
*/
private $path = '';
private string $path = '';
/**
* Info data.
@ -44,7 +44,7 @@ final class InfoManager
* @var array
* @since 1.0.0
*/
private $info = [];
private array $info = [];
/**
* Object constructor.

View File

@ -71,35 +71,39 @@ abstract class ModuleAbstract
* @var string[]
* @since 1.0.0
*/
protected static $providing = [];
protected static array $providing = [];
/**
* Localization files.
*
* @var array
* @since 1.0.0
*/
protected static $localization = [];
protected static array $localization = [];
/**
* Dependencies.
*
* @var string[]
* @since 1.0.0
*/
protected static $dependencies = [];
protected static array $dependencies = [];
/**
* Receiving modules from?
*
* @var string[]
* @since 1.0.0
*/
protected $receiving = [];
protected array $receiving = [];
/**
* Application instance.
*
* @var null|\phpOMS\ApplicationAbstract
* @var null|ApplicationAbstract
* @since 1.0.0
*/
protected $app = null;
protected ?ApplicationAbstract $app = null;
/**
* Constructor.

View File

@ -41,7 +41,7 @@ final class ModuleManager
* @var \phpOMS\Module\ModuleAbstract[]
* @since 1.0.0
*/
private $running = [];
private array $running = [];
/**
* All modules another module is providing for.
@ -51,15 +51,15 @@ final class ModuleManager
* @var array<string, array<int, string>>
* @since 1.0.0
*/
private $providing = [];
private array $providing = [];
/**
* Application instance.
*
* @var ApplicationAbstract
* @var null|ApplicationAbstract
* @since 1.0.0
*/
private $app = null;
private ?ApplicationAbstract $app = null;
/**
* Installed modules.
@ -67,7 +67,7 @@ final class ModuleManager
* @var array
* @since 1.0.0
*/
private $installed = [];
private array $installed = [];
/**
* All active modules (on all pages not just the ones that are running now).
@ -75,7 +75,7 @@ final class ModuleManager
* @var array
* @since 1.0.0
*/
private $active = [];
private array $active = [];
/**
* Module path.
@ -83,7 +83,7 @@ final class ModuleManager
* @var string
* @since 1.0.0
*/
private $modulePath = __DIR__ . '/../../Modules';
private string $modulePath = __DIR__ . '/../../Modules';
/**
* All modules in the module directory.
@ -91,7 +91,7 @@ final class ModuleManager
* @var array
* @since 1.0.0
*/
private $all = [];
private array $all = [];
/**
* To load based on request uri.
@ -99,7 +99,7 @@ final class ModuleManager
* @var array
* @since 1.0.0
*/
private $uriLoad = null;
private array $uriLoad = [];
/**
* Constructor.
@ -149,7 +149,7 @@ final class ModuleManager
*/
public function getUriLoad(RequestAbstract $request) : array
{
if ($this->uriLoad === null) {
if (empty($this->uriLoad)) {
$uriHash = $request->getHash();
$query = new Builder($this->app->dbPool->get('select'));

View File

@ -39,7 +39,7 @@ final class PackageManager
* @var string
* @since 1.0.0
*/
private $path = '';
private string $path = '';
/**
* Base path.
@ -47,7 +47,7 @@ final class PackageManager
* @var string
* @since 1.0.0
*/
private $basePath = '';
private string $basePath = '';
/**
* Extract path.
@ -55,7 +55,7 @@ final class PackageManager
* @var string
* @since 1.0.0
*/
private $extractPath = '';
private string $extractPath = '';
/**
* Public key.
@ -63,7 +63,7 @@ final class PackageManager
* @var string
* @since 1.0.0
*/
private $publicKey = '';
private string $publicKey = '';
/**
* Info data.
@ -71,7 +71,7 @@ final class PackageManager
* @var array
* @since 1.0.0
*/
private $info = [];
private array $info = [];
/**
* Constructor.

View File

@ -34,7 +34,7 @@ final class Router
* @var array
* @since 1.0.0
*/
private $routes = [];
private array $routes = [];
/**
* Add routes from file.

View File

@ -33,7 +33,7 @@ final class PhpCode
* @var array
* @since 1.0.0
*/
public static $disabledFunctions = [
public static array $disabledFunctions = [
'apache_child_terminate', 'apache_setenv', 'define_syslog_variables', 'escapeshellarg', 'escapeshellcmd', 'eval',
'exec', 'fp', 'fput', 'ftp_connect', 'ftp_exec', 'ftp_get', 'ftp_login', 'ftp_nb_fput', 'ftp_put', 'ftp_raw',
'ftp_rawlist', 'highlight_file', 'ini_alter', 'ini_get_all', 'ini_restore', 'inject_code', 'mysql_pconnect',
@ -48,7 +48,7 @@ final class PhpCode
* @var array
* @since 1.0.0
*/
public static $deprecatedFunctions = [
public static array $deprecatedFunctions = [
'apache_child_terminate', 'apache_setenv', 'define_syslog_variables', 'escapeshellarg', 'escapeshellcmd', 'eval',
'exec', 'fp', 'fput', 'ftp_connect', 'ftp_exec', 'ftp_get', 'ftp_login', 'ftp_nb_fput', 'ftp_put', 'ftp_raw',
'ftp_rawlist', 'highlight_file', 'ini_alter', 'ini_get_all', 'ini_restore', 'inject_code', 'mysql_pconnect',

View File

@ -31,7 +31,7 @@ class Address implements \JsonSerializable
* @var string
* @since 1.0.0
*/
private $recipient = '';
private string $recipient = '';
/**
* Sub of the address.
@ -39,7 +39,7 @@ class Address implements \JsonSerializable
* @var string
* @since 1.0.0
*/
private $fao = '';
private string $fao = '';
/**
* Location.
@ -47,7 +47,7 @@ class Address implements \JsonSerializable
* @var Location
* @since 1.0.0
*/
private $location = null;
private Location $location = null;
/**
* Constructor.

View File

@ -32,7 +32,7 @@ abstract class EnumArray
* @var array
* @since 1.0.0
*/
protected static $constants = [];
protected static array $constants = [];
/**
* Checking enum name.

View File

@ -32,7 +32,7 @@ class Iban implements \Serializable
* @var string
* @since 1.0.0
*/
private $iban = '';
private string $iban = '';
/**
* Constructor.

View File

@ -31,7 +31,7 @@ class Location implements \JsonSerializable, \Serializable
* @var int
* @since 1.0.0
*/
private $id = 0;
private int $id = 0;
/**
* Zip or postal.
@ -39,7 +39,7 @@ class Location implements \JsonSerializable, \Serializable
* @var string
* @since 1.0.0
*/
private $postal = '';
private string $postal = '';
/**
* Name of city.
@ -47,7 +47,7 @@ class Location implements \JsonSerializable, \Serializable
* @var string
* @since 1.0.0
*/
private $city = '';
private string $city = '';
/**
* Name of the country.
@ -55,7 +55,7 @@ class Location implements \JsonSerializable, \Serializable
* @var string
* @since 1.0.0
*/
private $country = '';
private string $country = '';
/**
* Street & district.
@ -63,7 +63,7 @@ class Location implements \JsonSerializable, \Serializable
* @var string
* @since 1.0.0
*/
private $address = '';
private string $address = '';
/**
* Address type
@ -71,7 +71,7 @@ class Location implements \JsonSerializable, \Serializable
* @var int
* @since 1.0.0
*/
private $type = AddressType::HOME;
private int $type = AddressType::HOME;
/**
* State.
@ -79,7 +79,7 @@ class Location implements \JsonSerializable, \Serializable
* @var string
* @since 1.0.0
*/
private $state = '';
private string $state = '';
/**
* Geo coordinates.
@ -87,7 +87,7 @@ class Location implements \JsonSerializable, \Serializable
* @var float[]
* @since 1.0.0
*/
private $geo = ['lat' => 0, 'long' => 0];
private array $geo = ['lat' => 0, 'long' => 0];
/**
* Constructor.

View File

@ -33,7 +33,7 @@ class MultiMap implements \Countable
* @var array
* @since 1.0.0
*/
private $values = [];
private array $values = [];
/**
* Associated keys for values.
@ -41,7 +41,7 @@ class MultiMap implements \Countable
* @var array
* @since 1.0.0
*/
private $keys = [];
private array $keys = [];
/**
* Key type.
@ -49,7 +49,7 @@ class MultiMap implements \Countable
* @var int
* @since 1.0.0
*/
private $keyType = KeyType::SINGLE;
private int $keyType = KeyType::SINGLE;
/**
* Order type.
@ -57,7 +57,7 @@ class MultiMap implements \Countable
* @var int
* @since 1.0.0
*/
private $orderType = OrderType::LOOSE;
private int $orderType = OrderType::LOOSE;
/**
* Constructor.

View File

@ -32,7 +32,7 @@ class PriorityQueue implements \Countable, \Serializable
* @var int
* @since 1.0.0
*/
private $type = PriorityMode::FIFO;
private int $type = PriorityMode::FIFO;
/**
* Queue.
@ -40,7 +40,7 @@ class PriorityQueue implements \Countable, \Serializable
* @var array
* @since 1.0.0
*/
private $queue = [];
private array $queue = [];
/**
* Constructor.

View File

@ -39,7 +39,7 @@ class Directory extends FileAbstract implements FtpContainerInterface, Directory
* @var FileAbstract[]
* @since 1.0.0
*/
private $nodes = [];
private array $nodes = [];
/**
* Create ftp connection.

View File

@ -47,10 +47,10 @@ class File extends FileAbstract implements FileInterface
/**
* Ftp connection uri.
*
* @var Http
* @var null|Http
* @since 1.0.0
*/
private $uri = null;
private ?Http $uri = null;
public function __construct(string $path)
{

View File

@ -34,7 +34,7 @@ abstract class FileAbstract implements ContainerInterface
* @var string
* @since 1.0.0
*/
protected $path = '';
protected string $path = '';
/**
* Name.
@ -42,7 +42,7 @@ abstract class FileAbstract implements ContainerInterface
* @var string
* @since 1.0.0
*/
protected $name = 'new_directory';
protected string $name = 'new_directory';
/**
* Directory/File count.
@ -50,7 +50,7 @@ abstract class FileAbstract implements ContainerInterface
* @var int
* @since 1.0.0
*/
protected $count = 0;
protected int $count = 0;
/**
* Directory/Filesize in bytes.
@ -58,23 +58,23 @@ abstract class FileAbstract implements ContainerInterface
* @var int
* @since 1.0.0
*/
protected $size = 0;
protected int $size = 0;
/**
* Created at.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected $createdAt = null;
protected ?\DateTime $createdAt = null;
/**
* Last changed at.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected $changedAt = null;
protected ?\DateTime $changedAt = null;
/**
* Owner.
@ -82,7 +82,7 @@ abstract class FileAbstract implements ContainerInterface
* @var int
* @since 1.0.0
*/
protected $owner = 0;
protected int $owner = 0;
/**
* Permission.
@ -90,7 +90,7 @@ abstract class FileAbstract implements ContainerInterface
* @var int
* @since 1.0.0
*/
protected $permission = 0755;
protected int $permission = 0755;
/**
* Constructor.

View File

@ -30,7 +30,7 @@ use phpOMS\System\File\StorageAbstract;
*/
class FtpStorage extends StorageAbstract
{
private static $instance = null;
private static ?self $instance = null;
public function __construct()
{

View File

@ -37,7 +37,7 @@ final class Directory extends FileAbstract implements LocalContainerInterface, D
* @var string
* @since 1.0.0
*/
private $filter = '*';
private string $filter = '*';
/**
* Directory nodes (files and directories).
@ -45,7 +45,7 @@ final class Directory extends FileAbstract implements LocalContainerInterface, D
* @var FileAbstract[]
* @since 1.0.0
*/
private $nodes = [];
private array $nodes = [];
/**
* Constructor.

View File

@ -34,7 +34,7 @@ abstract class FileAbstract implements ContainerInterface
* @var string
* @since 1.0.0
*/
protected $path = '';
protected string $path = '';
/**
* Name.
@ -42,7 +42,7 @@ abstract class FileAbstract implements ContainerInterface
* @var string
* @since 1.0.0
*/
protected $name = 'new_directory';
protected string $name = 'new_directory';
/**
* Directory/File count.
@ -50,7 +50,7 @@ abstract class FileAbstract implements ContainerInterface
* @var int
* @since 1.0.0
*/
protected $count = 0;
protected int $count = 0;
/**
* Directory/Filesize in bytes.
@ -58,23 +58,23 @@ abstract class FileAbstract implements ContainerInterface
* @var int
* @since 1.0.0
*/
protected $size = 0;
protected int $size = 0;
/**
* Created at.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected $createdAt = null;
protected ?\DateTime $createdAt = null;
/**
* Last changed at.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected $changedAt = null;
protected ?\DateTime $changedAt = null;
/**
* Owner.
@ -82,7 +82,7 @@ abstract class FileAbstract implements ContainerInterface
* @var int
* @since 1.0.0
*/
protected $owner = 0;
protected int $owner = 0;
/**
* Permission.
@ -90,7 +90,7 @@ abstract class FileAbstract implements ContainerInterface
* @var int
* @since 1.0.0
*/
protected $permission = 0755;
protected int $permission = 0755;
/**
* Constructor.

View File

@ -35,7 +35,7 @@ class LocalStorage extends StorageAbstract
* @var LocalStorage
* @since 1.0.0
*/
private static $instance = null;
private static ?self $instance = null;
/**
* Get instance.

View File

@ -32,7 +32,7 @@ final class Storage
* @var array
* @since 1.0.0
*/
private static $registered = [];
private static array $registered = [];
/**
* Constructor.

View File

@ -32,7 +32,7 @@ abstract class StorageAbstract
* @var int
* @since 1.0.0
*/
protected $type = 0;
protected int $type = 0;
/**
* Get instance.

View File

@ -37,7 +37,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $rootPath = '/';
private string $rootPath = '/';
/**
* Path offset.
@ -45,7 +45,7 @@ final class Argument implements UriInterface
* @var int
* @since 1.0.0
*/
private $pathOffset = 0;
private int $pathOffset = 0;
/**
* Path elements.
@ -53,7 +53,7 @@ final class Argument implements UriInterface
* @var array
* @since 1.0.0
*/
private $pathElements = [];
private array $pathElements = [];
/**
* Uri.
@ -61,7 +61,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $uri = '';
private string $uri = '';
/**
* Uri scheme.
@ -69,7 +69,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $scheme = '';
private string $scheme = '';
/**
* Uri host.
@ -77,7 +77,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $host = '';
private string $host = '';
/**
* Uri port.
@ -85,7 +85,7 @@ final class Argument implements UriInterface
* @var int
* @since 1.0.0
*/
private $port = 0;
private int $port = 0;
/**
* Uri user.
@ -93,7 +93,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $user = '';
private string $user = '';
/**
* Uri password.
@ -101,7 +101,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $pass = '';
private string $pass = '';
/**
* Uri path.
@ -109,7 +109,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $path = '';
private string $path = '';
/**
* Uri query.
@ -117,7 +117,7 @@ final class Argument implements UriInterface
* @var array
* @since 1.0.0
*/
private $query = [];
private array $query = [];
/**
* Uri query.
@ -125,7 +125,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $queryString = '';
private string $queryString = '';
/**
* Uri fragment.
@ -133,7 +133,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $fragment = '';
private string $fragment = '';
/**
* Uri base.
@ -141,7 +141,7 @@ final class Argument implements UriInterface
* @var string
* @since 1.0.0
*/
private $base = '';
private string $base = '';
/**
* Constructor.

View File

@ -37,7 +37,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $rootPath = '';
private string $rootPath = '';
/**
* Path offset.
@ -45,7 +45,7 @@ final class Http implements UriInterface
* @var int
* @since 1.0.0
*/
private $pathOffset = 0;
private int $pathOffset = 0;
/**
* Path elements.
@ -53,7 +53,7 @@ final class Http implements UriInterface
* @var array
* @since 1.0.0
*/
private $pathElements = [];
private array $pathElements = [];
/**
* Uri.
@ -61,7 +61,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $uri = '';
private string $uri = '';
/**
* Uri scheme.
@ -69,7 +69,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $scheme = '';
private string $scheme = '';
/**
* Uri host.
@ -77,7 +77,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $host = '';
private string $host = '';
/**
* Uri port.
@ -85,7 +85,7 @@ final class Http implements UriInterface
* @var int
* @since 1.0.0
*/
private $port = 80;
private int $port = 80;
/**
* Uri user.
@ -93,7 +93,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $user = '';
private string $user = '';
/**
* Uri password.
@ -101,7 +101,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $pass = '';
private string $pass = '';
/**
* Uri path.
@ -109,7 +109,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $path = '';
private string $path = '';
/**
* Uri query.
@ -117,7 +117,7 @@ final class Http implements UriInterface
* @var array
* @since 1.0.0
*/
private $query = [];
private array $query = [];
/**
* Uri query.
@ -125,7 +125,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $queryString = '';
private string $queryString = '';
/**
* Uri fragment.
@ -133,7 +133,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $fragment = '';
private string $fragment = '';
/**
* Uri base.
@ -141,7 +141,7 @@ final class Http implements UriInterface
* @var string
* @since 1.0.0
*/
private $base = '';
private string $base = '';
/**
* Constructor.

View File

@ -33,7 +33,7 @@ final class UriFactory
* @var string[]
* @since 1.0.0
*/
private static $uri = [];
private static array $uri = [];
/**
* Constructor.

View File

@ -35,7 +35,7 @@ abstract class C128Abstract
* @var int
* @since 1.0.0
*/
protected static $CHECKSUM = 0;
protected static int $CHECKSUM = 0;
/**
* Char weighted array.
@ -43,7 +43,7 @@ abstract class C128Abstract
* @var string[]
* @since 1.0.0
*/
protected static $CODEARRAY = [];
protected static array $CODEARRAY = [];
/**
* Code start.
@ -51,7 +51,7 @@ abstract class C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_START = '';
protected static string $CODE_START = '';
/**
* Code end.
@ -59,7 +59,7 @@ abstract class C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_END = '';
protected static string $CODE_END = '';
/**
* Orientation.
@ -67,7 +67,7 @@ abstract class C128Abstract
* @var int
* @since 1.0.0
*/
protected $orientation = 0;
protected int $orientation = 0;
/**
* Barcode dimension.
@ -75,7 +75,7 @@ abstract class C128Abstract
* @var int[]
* @since 1.0.0
*/
protected $dimension = ['width' => 0, 'height' => 0];
protected array $dimension = ['width' => 0, 'height' => 0];
/**
* Barcode dimension.
@ -83,7 +83,7 @@ abstract class C128Abstract
* @var int
* @since 1.0.0
*/
protected $margin = 10;
protected int $margin = 10;
/**
* Content to encrypt.
@ -91,7 +91,7 @@ abstract class C128Abstract
* @var string
* @since 1.0.0
*/
protected $content = '';
protected string $content = '';
/**
* Show text below barcode.
@ -99,7 +99,7 @@ abstract class C128Abstract
* @var bool
* @since 1.0.0
*/
protected $showText = true;
protected bool $showText = true;
/**
* Background color.
@ -107,7 +107,7 @@ abstract class C128Abstract
* @var int[]
* @since 1.0.0
*/
protected $background = ['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0];
protected array $background = ['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0];
/**
* Front color.
@ -115,7 +115,7 @@ abstract class C128Abstract
* @var int[]
* @since 1.0.0
*/
protected $front = ['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0];
protected array $front = ['r' => 0, 'g' => 0, 'b' => 0, 'a' => 0];
/**
* Constructor

View File

@ -41,7 +41,7 @@ class C128a extends C128Abstract
* @var string[]
* @since 1.0.0
*/
protected static $CODEARRAY = [
protected static array $CODEARRAY = [
' ' => '212222', '!' => '222122', '"' => '222221', '#' => '121223', '$' => '121322', '%' => '131222',
'&' => '122213', '\'' => '122312', '(' => '132212', ')' => '221213', '*' => '221312', '+' => '231212',
',' => '112232', '-' => '122132', '.' => '122231', '/' => '113222', '0' => '123122', '1' => '123221',
@ -70,7 +70,7 @@ class C128a extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_START = '211412';
protected static string $CODE_START = '211412';
/**
* Code end.
@ -78,7 +78,7 @@ class C128a extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_END = '2331112';
protected static string $CODE_END = '2331112';
/**
* {@inheritdoc}

View File

@ -41,7 +41,7 @@ class C128b extends C128Abstract
* @var string[]
* @since 1.0.0
*/
protected static $CODEARRAY = [
protected static array $CODEARRAY = [
' ' => '212222', '!' => '222122', '"' => '222221', '#' => '121223', '$' => '121322', '%' => '131222',
'&' => '122213', '\'' => '122312', '(' => '132212', ')' => '221213', '*' => '221312', '+' => '231212',
',' => '112232', '-' => '122132', '.' => '122231', '/' => '113222', '0' => '123122', '1' => '123221',
@ -69,7 +69,7 @@ class C128b extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_START = '211214';
protected static string $CODE_START = '211214';
/**
* Code end.
@ -77,5 +77,5 @@ class C128b extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_END = '2331112';
protected static string $CODE_END = '2331112';
}

View File

@ -41,7 +41,7 @@ class C128c extends C128Abstract
* @var string[]
* @since 1.0.0
*/
protected static $CODEARRAY = [
protected static array $CODEARRAY = [
'00' => '212222', '01' => '222122', '02' => '222221', '03' => '121223', '04' => '121322', '05' => '131222',
'06' => '122213', '07' => '122312', '08' => '132212', '09' => '221213', '10' => '221312', '11' => '231212',
'12' => '112232', '13' => '122132', '14' => '122231', '15' => '113222', '16' => '123122', '17' => '123221',
@ -69,7 +69,7 @@ class C128c extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_START = '211232';
protected static string $CODE_START = '211232';
/**
* Code end.
@ -77,7 +77,7 @@ class C128c extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_END = '2331112';
protected static string $CODE_END = '2331112';
/**
* {@inheritdoc}

View File

@ -33,7 +33,7 @@ class C25 extends C128Abstract
* @var string[]
* @since 1.0.0
*/
protected static $CODEARRAY = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'];
protected static array $CODEARRAY = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'];
/**
* Char weighted array.
@ -41,7 +41,7 @@ class C25 extends C128Abstract
* @var string[]
* @since 1.0.0
*/
protected static $CODEARRAY2 = [
protected static array $CODEARRAY2 = [
'3-1-1-1-3', '1-3-1-1-3', '3-3-1-1-1', '1-1-3-1-3', '3-1-3-1-1',
'1-3-3-1-1', '1-1-1-3-3', '3-1-1-3-1', '1-3-1-3-1', '1-1-3-3-1',
];
@ -52,7 +52,7 @@ class C25 extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_START = '1111';
protected static string $CODE_START = '1111';
/**
* Code end.
@ -60,7 +60,7 @@ class C25 extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_END = '311';
protected static string $CODE_END = '311';
/**
* Set content to encrypt

View File

@ -33,7 +33,7 @@ class C39 extends C128Abstract
* @var string[]
* @since 1.0.0
*/
protected static $CODEARRAY = [
protected static array $CODEARRAY = [
'0' => '111221211', '1' => '211211112', '2' => '112211112', '3' => '212211111', '4' => '111221112',
'5' => '211221111', '6' => '112221111', '7' => '111211212', '8' => '211211211', '9' => '112211211',
'A' => '211112112', 'B' => '112112112', 'C' => '212112111', 'D' => '111122112', 'E' => '211122111',
@ -51,7 +51,7 @@ class C39 extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_START = '1211212111';
protected static string $CODE_START = '1211212111';
/**
* Code end.
@ -59,7 +59,7 @@ class C39 extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_END = '121121211';
protected static string $CODE_END = '121121211';
/**
* {@inheritdoc}

View File

@ -33,7 +33,7 @@ class Codebar extends C128Abstract
* @var string[]
* @since 1.0.0
*/
protected static $CODEARRAY = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '$', ':', '/', '.', '+', 'A', 'B', 'C', 'D'];
protected static array $CODEARRAY = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '$', ':', '/', '.', '+', 'A', 'B', 'C', 'D'];
/**
* Char weighted array.
@ -41,7 +41,7 @@ class Codebar extends C128Abstract
* @var string[]
* @since 1.0.0
*/
protected static $CODEARRAY2 = [
protected static array $CODEARRAY2 = [
'1111221', '1112112', '2211111', '1121121', '2111121', '1211112', '1211211', '1221111', '2112111', '1111122',
'1112211', '1122111', '2111212', '2121112', '2121211', '1121212', '1122121', '1212112', '1112122', '1112221',
];
@ -52,7 +52,7 @@ class Codebar extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_START = '11221211';
protected static string $CODE_START = '11221211';
/**
* Code end.
@ -60,7 +60,7 @@ class Codebar extends C128Abstract
* @var string
* @since 1.0.0
*/
protected static $CODE_END = '1122121';
protected static string $CODE_END = '1122121';
/**
* {@inheritdoc}

View File

@ -37,7 +37,7 @@ class Currency
* @var null|array
* @since 1.0.0
*/
private static $ecbCurrencies = null;
private static ?array $ecbCurrencies = null;
/**
* Constructor.

View File

@ -30,7 +30,7 @@ final class Dictionary
* @var array
* @since 1.0.0
*/
private $dictionary = [];
private array $dictionary = [];
/**
* Minimum length.
@ -38,7 +38,7 @@ final class Dictionary
* @var int
* @since 1.0.0
*/
private $min = -1;
private int $min = -1;
/**
* Maximum length.
@ -46,7 +46,7 @@ final class Dictionary
* @var int
* @since 1.0.0
*/
private $max = -1;
private int $max = -1;
/**
* Constructor.

View File

@ -27,10 +27,10 @@ final class Huffman
/**
* Huffman dictionary.
*
* @var Dictionary
* @var null|Dictionary
* @since 1.0.0
*/
private $dictionary = null;
private ?Dictionary $dictionary = null;
/**
* Get dictionary

View File

@ -30,7 +30,7 @@ class Author
* @var string
* @since 1.0.0
*/
private $name = '';
private string $name = '';
/**
* Email.
@ -38,7 +38,7 @@ class Author
* @var string
* @since 1.0.0
*/
private $email = '';
private string $email = '';
/**
* Commit count.
@ -46,7 +46,7 @@ class Author
* @var int
* @since 1.0.0
*/
private $commitCount = 0;
private int $commitCount = 0;
/**
* Additions count.
@ -54,7 +54,7 @@ class Author
* @var int
* @since 1.0.0
*/
private $additionsCount = 0;
private int $additionsCount = 0;
/**
* Removals count.
@ -62,7 +62,7 @@ class Author
* @var int
* @since 1.0.0
*/
private $removalsCount = 0;
private int $removalsCount = 0;
/**
* Constructor

View File

@ -30,7 +30,7 @@ class Branch
* @var string
* @since 1.0.0
*/
private $name = '';
private string $name = '';
/**
* Constructor

View File

@ -30,47 +30,47 @@ class Commit
* @var string
* @since 1.0.0
*/
private $id = '';
private string $id = '';
/**
* Author.
*
* @var Author
* @var null|Author
* @since 1.0.0
*/
private $author = null;
private ?Author $author = null;
/**
* Branch.
*
* @var Branch
* @var null|Branch
* @since 1.0.0
*/
private $branch = null;
private ?Branch $branch = null;
/**
* Tag.
*
* @var Tag
* @var null|Tag
* @since 1.0.0
*/
private $tag = null;
private ?Tag $tag = null;
/**
* Commit date.
*
* @var \DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private $date = null;
private ?\DateTime $date = null;
/**
* Repository.
*
* @var Repository
* @var null|Repository
* @since 1.0.0
*/
private $repository = null;
private ?Repository $repository = null;
/**
* Commit message.
@ -78,7 +78,7 @@ class Commit
* @var string
* @since 1.0.0
*/
private $message = '';
private string $message = '';
/**
* Files.
@ -86,7 +86,7 @@ class Commit
* @var array
* @since 1.0.0
*/
private $files = [];
private array $files = [];
/**
* Constructor

Some files were not shown because too many files have changed in this diff Show More