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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,19 +27,19 @@ use phpOMS\DataStorage\Database\Query\Builder as QueryBuilder;
*/ */
class Builder extends 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. * Constructor.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -33,7 +33,7 @@ class CityMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'city_id' => ['name' => 'city_id', 'type' => 'int', 'internal' => 'id'], 'city_id' => ['name' => 'city_id', 'type' => 'int', 'internal' => 'id'],
'city_city' => ['name' => 'city_city', 'type' => 'string', 'internal' => 'name'], 'city_city' => ['name' => 'city_city', 'type' => 'string', 'internal' => 'name'],
'city_country' => ['name' => 'city_country', 'type' => 'string', 'internal' => 'countryCode'], 'city_country' => ['name' => 'city_country', 'type' => 'string', 'internal' => 'countryCode'],
@ -49,7 +49,7 @@ class CityMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'city'; protected static string $table = 'city';
/** /**
* Primary field name. * Primary field name.
@ -57,5 +57,5 @@ class CityMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @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>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'country_id' => ['name' => 'country_id', 'type' => 'int', 'internal' => 'id'], 'country_id' => ['name' => 'country_id', 'type' => 'int', 'internal' => 'id'],
'country_name' => ['name' => 'country_name', 'type' => 'string', 'internal' => 'name'], 'country_name' => ['name' => 'country_name', 'type' => 'string', 'internal' => 'name'],
'country_code2' => ['name' => 'country_code2', 'type' => 'string', 'internal' => 'code2'], 'country_code2' => ['name' => 'country_code2', 'type' => 'string', 'internal' => 'code2'],
@ -48,7 +48,7 @@ class CountryMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'country'; protected static string $table = 'country';
/** /**
* Primary field name. * Primary field name.
@ -56,5 +56,5 @@ class CountryMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @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>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'currency_id' => ['name' => 'currency_id', 'type' => 'int', 'internal' => 'id'], 'currency_id' => ['name' => 'currency_id', 'type' => 'int', 'internal' => 'id'],
'currency_name' => ['name' => 'currency_name', 'type' => 'string', 'internal' => 'name'], 'currency_name' => ['name' => 'currency_name', 'type' => 'string', 'internal' => 'name'],
'currency_code' => ['name' => 'currency_code', 'type' => 'string', 'internal' => 'code'], 'currency_code' => ['name' => 'currency_code', 'type' => 'string', 'internal' => 'code'],
@ -48,7 +48,7 @@ class CurrencyMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'currency'; protected static string $table = 'currency';
/** /**
* Primary field name. * Primary field name.
@ -56,5 +56,5 @@ class CurrencyMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @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>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'iban_id' => ['name' => 'iban_id', 'type' => 'int', 'internal' => 'id'], 'iban_id' => ['name' => 'iban_id', 'type' => 'int', 'internal' => 'id'],
'iban_country' => ['name' => 'iban_country', 'type' => 'string', 'internal' => 'country'], 'iban_country' => ['name' => 'iban_country', 'type' => 'string', 'internal' => 'country'],
'iban_chars' => ['name' => 'iban_chars', 'type' => 'int', 'internal' => 'chars'], 'iban_chars' => ['name' => 'iban_chars', 'type' => 'int', 'internal' => 'chars'],
@ -47,7 +47,7 @@ class IbanMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'iban'; protected static string $table = 'iban';
/** /**
* Primary field name. * Primary field name.
@ -55,5 +55,5 @@ class IbanMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @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>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'language_id' => ['name' => 'language_id', 'type' => 'int', 'internal' => 'id'], 'language_id' => ['name' => 'language_id', 'type' => 'int', 'internal' => 'id'],
'language_native' => ['name' => 'language_native', 'type' => 'string', 'internal' => 'name'], 'language_native' => ['name' => 'language_native', 'type' => 'string', 'internal' => 'name'],
'language_639_1' => ['name' => 'language_639_1', 'type' => 'string', 'internal' => 'native'], 'language_639_1' => ['name' => 'language_639_1', 'type' => 'string', 'internal' => 'native'],
@ -48,7 +48,7 @@ class LanguageMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'language'; protected static string $table = 'language';
/** /**
* Primary field name. * Primary field name.
@ -56,5 +56,5 @@ class LanguageMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @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 * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
private $language = []; private array $language = [];
/** /**
* App Name. * App Name.
@ -42,7 +42,7 @@ final class L11nManager
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $appName = ''; private string $appName = '';
/** /**
* Construct. * Construct.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -33,7 +33,7 @@ final class PhpCode
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
public static $disabledFunctions = [ public static array $disabledFunctions = [
'apache_child_terminate', 'apache_setenv', 'define_syslog_variables', 'escapeshellarg', 'escapeshellcmd', 'eval', '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', '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', 'ftp_rawlist', 'highlight_file', 'ini_alter', 'ini_get_all', 'ini_restore', 'inject_code', 'mysql_pconnect',
@ -48,7 +48,7 @@ final class PhpCode
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
public static $deprecatedFunctions = [ public static array $deprecatedFunctions = [
'apache_child_terminate', 'apache_setenv', 'define_syslog_variables', 'escapeshellarg', 'escapeshellcmd', 'eval', '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', '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', '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 * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $recipient = ''; private string $recipient = '';
/** /**
* Sub of the address. * Sub of the address.
@ -39,7 +39,7 @@ class Address implements \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $fao = ''; private string $fao = '';
/** /**
* Location. * Location.
@ -47,7 +47,7 @@ class Address implements \JsonSerializable
* @var Location * @var Location
* @since 1.0.0 * @since 1.0.0
*/ */
private $location = null; private Location $location = null;
/** /**
* Constructor. * Constructor.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -33,7 +33,7 @@ class C25 extends C128Abstract
* @var string[] * @var string[]
* @since 1.0.0 * @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. * Char weighted array.
@ -41,7 +41,7 @@ class C25 extends C128Abstract
* @var string[] * @var string[]
* @since 1.0.0 * @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', '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', '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 * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $CODE_START = '1111'; protected static string $CODE_START = '1111';
/** /**
* Code end. * Code end.
@ -60,7 +60,7 @@ class C25 extends C128Abstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $CODE_END = '311'; protected static string $CODE_END = '311';
/** /**
* Set content to encrypt * Set content to encrypt

View File

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

View File

@ -33,7 +33,7 @@ class Codebar extends C128Abstract
* @var string[] * @var string[]
* @since 1.0.0 * @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. * Char weighted array.
@ -41,7 +41,7 @@ class Codebar extends C128Abstract
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $CODEARRAY2 = [ protected static array $CODEARRAY2 = [
'1111221', '1112112', '2211111', '1121121', '2111121', '1211112', '1211211', '1221111', '2112111', '1111122', '1111221', '1112112', '2211111', '1121121', '2111121', '1211112', '1211211', '1221111', '2112111', '1111122',
'1112211', '1122111', '2111212', '2121112', '2121211', '1121212', '1122121', '1212112', '1112122', '1112221', '1112211', '1122111', '2111212', '2121112', '2121211', '1121212', '1122121', '1212112', '1112122', '1112221',
]; ];
@ -52,7 +52,7 @@ class Codebar extends C128Abstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $CODE_START = '11221211'; protected static string $CODE_START = '11221211';
/** /**
* Code end. * Code end.
@ -60,7 +60,7 @@ class Codebar extends C128Abstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $CODE_END = '1122121'; protected static string $CODE_END = '1122121';
/** /**
* {@inheritdoc} * {@inheritdoc}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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