mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 21:28:40 +00:00
Make classes final
This commit is contained in:
parent
aef7699ba2
commit
59d3f98110
|
|
@ -169,7 +169,7 @@ class Account implements ArrayableInterface, \JsonSerializable
|
||||||
$this->createdAt = new \DateTime('now');
|
$this->createdAt = new \DateTime('now');
|
||||||
$this->lastActive = new \DateTime('now');
|
$this->lastActive = new \DateTime('now');
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
$this->l11n = new NullLocalization();
|
$this->l11n = new Localization();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ use phpOMS\DataStorage\Session\SessionInterface;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class AccountManager implements \Countable
|
final class AccountManager implements \Countable
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,6 @@ namespace phpOMS\Account;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class NullAccount extends Account
|
final class NullAccount extends Account
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Asset;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class AssetManager implements \Countable
|
final class AssetManager implements \Countable
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ use phpOMS\DataStorage\Session\SessionInterface;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Auth
|
final class Auth
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace phpOMS;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class AutoloadException extends \RuntimeException
|
final class AutoloadException extends \RuntimeException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ spl_autoload_register('\phpOMS\Autoloader::defaultAutoloader');
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Autoloader
|
final class Autoloader
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Base paths for autoloading
|
* Base paths for autoloading
|
||||||
|
|
@ -36,6 +36,17 @@ class Autoloader
|
||||||
__DIR__ . '/../',
|
__DIR__ . '/../',
|
||||||
__DIR__ . '/../../',
|
__DIR__ . '/../../',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add base path for autoloading
|
* Add base path for autoloading
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Business\Finance;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Depreciation
|
final class Depreciation
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Calculate linear depretiation rate
|
* Calculate linear depretiation rate
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ use phpOMS\Math\Matrix\Exception\InvalidDimensionException;
|
||||||
* @SuppressWarnings(PHPMD.CamelCaseParameterName)
|
* @SuppressWarnings(PHPMD.CamelCaseParameterName)
|
||||||
* @SuppressWarnings(PHPMD.CamelCaseVariableName)
|
* @SuppressWarnings(PHPMD.CamelCaseVariableName)
|
||||||
*/
|
*/
|
||||||
class FinanceFormulas
|
final class FinanceFormulas
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ namespace phpOMS\Business\Finance;
|
||||||
* @SuppressWarnings(PHPMD.CamelCaseParameterName)
|
* @SuppressWarnings(PHPMD.CamelCaseParameterName)
|
||||||
* @SuppressWarnings(PHPMD.CamelCaseVariableName)
|
* @SuppressWarnings(PHPMD.CamelCaseVariableName)
|
||||||
*/
|
*/
|
||||||
class Loan
|
final class Loan
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Balloon Loan - Payments
|
* Balloon Loan - Payments
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Business\Finance;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Lorenzkurve
|
final class Lorenzkurve
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Calculate Gini coefficient
|
* Calculate Gini coefficient
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ namespace phpOMS\Business\Finance;
|
||||||
* @SuppressWarnings(PHPMD.CamelCaseParameterName)
|
* @SuppressWarnings(PHPMD.CamelCaseParameterName)
|
||||||
* @SuppressWarnings(PHPMD.CamelCaseVariableName)
|
* @SuppressWarnings(PHPMD.CamelCaseVariableName)
|
||||||
*/
|
*/
|
||||||
class StockBonds
|
final class StockBonds
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Bond Equivalent Yield
|
* Bond Equivalent Yield
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace phpOMS\Business\Marketing;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Metrics
|
final class Metrics
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Calculate customer retention
|
* Calculate customer retention
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ namespace phpOMS\Business\Marketing;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class NetPromoterScore
|
final class NetPromoterScore
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Score values
|
* Score values
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace phpOMS\Business\Programming;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Metrics
|
final class Metrics
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Calculate ABC metric score
|
* Calculate ABC metric score
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ namespace phpOMS\Business\Sales;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class MarketShareEstimation
|
final class MarketShareEstimation
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Calculate rank (r) based on market share (m)
|
* Calculate rank (r) based on market share (m)
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ use phpOMS\DataStorage\Cache\Connection\NullCache;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class CachePool implements DataStoragePoolInterface
|
final class CachePool implements DataStoragePoolInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* MemCache instance.
|
* MemCache instance.
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ use phpOMS\DataStorage\LockException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class CookieJar
|
final class CookieJar
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Locked.
|
* Locked.
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ use phpOMS\DataStorage\Database\DatabaseType;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class ConnectionFactory
|
final class ConnectionFactory
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ use phpOMS\DataStorage\Database\Exception\InvalidConnectionConfigException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class MysqlConnection extends ConnectionAbstract
|
final class MysqlConnection extends ConnectionAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ use phpOMS\DataStorage\Database\Exception\InvalidConnectionConfigException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class NullConnection extends ConnectionAbstract
|
final class NullConnection extends ConnectionAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ namespace phpOMS\DataStorage\Database\Connection;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
abstract class PostgresConnection extends \Exception
|
final class PostgresConnection extends \Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ use phpOMS\DataStorage\Database\Query\Grammar\SqliteGrammar;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class SqliteConnection extends ConnectionAbstract
|
final class SqliteConnection extends ConnectionAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ use phpOMS\DataStorage\Database\Schema\Grammar\MysqlGrammar as MysqlSchemaGramma
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class SqlServerConnection extends ConnectionAbstract
|
final class SqlServerConnection extends ConnectionAbstract
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Object constructor.
|
* Object constructor.
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ use phpOMS\DataStorage\Database\Connection\NullConnection;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class DatabasePool implements DataStoragePoolInterface
|
final class DatabasePool implements DataStoragePoolInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\DataStorage\Database\Exception;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class InvalidConnectionConfigException extends \InvalidArgumentException
|
final class InvalidConnectionConfigException extends \InvalidArgumentException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\DataStorage\Database\Exception;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class InvalidDatabaseTypeException extends \InvalidArgumentException
|
final class InvalidDatabaseTypeException extends \InvalidArgumentException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\DataStorage\Database\Exception;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class InvalidMapperException extends \RuntimeException
|
final class InvalidMapperException extends \RuntimeException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ use phpOMS\DataStorage\Database\Connection\ConnectionAbstract;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Builder extends BuilderAbstract
|
final class Builder extends BuilderAbstract
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Is read only.
|
* Is read only.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\DataStorage;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class LockException extends \RuntimeException
|
final class LockException extends \RuntimeException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ use phpOMS\System\File\PathException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Dispatcher
|
final class Dispatcher
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace phpOMS\Event;
|
||||||
*
|
*
|
||||||
* @todo : make cachable + database storable -> can reload user defined listeners (persistent events)
|
* @todo : make cachable + database storable -> can reload user defined listeners (persistent events)
|
||||||
*/
|
*/
|
||||||
class EventManager
|
final class EventManager
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Events.
|
* Events.
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ use phpOMS\Module\ModuleAbstract;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class L11nManager
|
final class L11nManager
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ use phpOMS\Utils\Converter\TemperatureType;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Localization
|
final class Localization
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Localization;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Money implements \Serializable
|
final class Money implements \Serializable
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Localization;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class NullLocalization extends Localization
|
final class NullLocalizations
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ use phpOMS\System\File\Local\File;
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.Superglobals)
|
* @SuppressWarnings(PHPMD.Superglobals)
|
||||||
*/
|
*/
|
||||||
class FileLogger implements LoggerInterface
|
final class FileLogger implements LoggerInterface
|
||||||
{
|
{
|
||||||
public const MSG_BACKTRACE = '{datetime}; {level}; {ip}; {message}; {backtrace}';
|
public const MSG_BACKTRACE = '{datetime}; {level}; {ip}; {message}; {backtrace}';
|
||||||
public const MSG_FULL = '{datetime}; {level}; {ip}; {line}; {version}; {os}; {path}; {message}; {file}; {backtrace}';
|
public const MSG_FULL = '{datetime}; {level}; {ip}; {line}; {version}; {os}; {path}; {message}; {file}; {backtrace}';
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Exception;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class ZeroDevisionException extends \UnexpectedValueException
|
final class ZeroDevisionException extends \UnexpectedValueException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,18 @@ use phpOMS\Math\Number\Numbers;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Fibunacci
|
final class Fibunacci
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is fibunacci number.
|
* Is fibunacci number.
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,18 @@ namespace phpOMS\Math\Functions;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Functions
|
final class Functions
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate gammar function value.
|
* Calculate gammar function value.
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,19 @@ namespace phpOMS\Math\Functions;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Gamma
|
final class Gamma
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* approximation values.
|
* approximation values.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,17 @@ namespace phpOMS\Math\Geometry\ConvexHull;
|
||||||
*/
|
*/
|
||||||
final class MonotoneChain
|
final class MonotoneChain
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create convex hull
|
* Create convex hull
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D2;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Circle implements D2ShapeInterface
|
final class Circle implements D2ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D2;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Ellipse implements D2ShapeInterface
|
final class Ellipse implements D2ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D2;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Polygon implements D2ShapeInterface
|
final class Polygon implements D2ShapeInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Epsilon for float comparison.
|
* Epsilon for float comparison.
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
namespace phpOMS\Math\Geometry\Shape\D2;
|
namespace phpOMS\Math\Geometry\Shape\D2;
|
||||||
|
|
||||||
class Quadrilateral implements D2ShapeInterface
|
final class Quadrilateral implements D2ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D2;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Rectangle implements D2ShapeInterface
|
final class Rectangle implements D2ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D2;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Trapezoid implements D2ShapeInterface
|
final class Trapezoid implements D2ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D2;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Triangle implements D2ShapeInterface
|
final class Triangle implements D2ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D3;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Cone implements D3ShapeInterface
|
final class Cone implements D3ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D3;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Cuboid implements D3ShapeInterface
|
final class Cuboid implements D3ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D3;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Cylinder implements D3ShapeInterface
|
final class Cylinder implements D3ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
namespace phpOMS\Math\Geometry\Shape\D3;
|
namespace phpOMS\Math\Geometry\Shape\D3;
|
||||||
|
|
||||||
class Prism implements D3ShapeInterface
|
final class Prism implements D3ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D3;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class RectangularPyramid implements D3ShapeInterface
|
final class RectangularPyramid implements D3ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D3;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Sphere implements D3ShapeInterface
|
final class Sphere implements D3ShapeInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Radius.
|
* Radius.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Geometry\Shape\D3;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Tetrahedron implements D3ShapeInterface
|
final class Tetrahedron implements D3ShapeInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ use phpOMS\Math\Matrix\Exception\InvalidDimensionException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class CholeskyDecomposition
|
final class CholeskyDecomposition
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* L matrix.
|
* L matrix.
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,6 @@ namespace phpOMS\Math\Matrix;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class EigenValueDecomposition
|
final class EigenValueDecomposition
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Matrix\Exception;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class InvalidDimensionException extends \UnexpectedValueException
|
final class InvalidDimensionException extends \UnexpectedValueException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Matrix;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class IdentityMatrix extends Matrix
|
final class IdentityMatrix extends Matrix
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ use phpOMS\Math\Matrix\Exception\InvalidDimensionException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class LUDecomposition
|
final class LUDecomposition
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* LU matrix.
|
* LU matrix.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Matrix;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class QRDecomposition
|
final class QRDecomposition
|
||||||
{
|
{
|
||||||
private $QR = [];
|
private $QR = [];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,6 @@ namespace phpOMS\Math\Matrix;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class SingularValueDecomposition
|
final class SingularValueDecomposition
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,6 @@ namespace phpOMS\Math\Matrix;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Vector extends Matrix
|
final class Vector extends Matrix
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Math\Number;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Complex
|
final class Complex
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Real part.
|
* Real part.
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,19 @@ namespace phpOMS\Math\Number;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Integer
|
final class Integer
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is integer.
|
* Is integer.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,19 @@ namespace phpOMS\Math\Number;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Natural
|
final class Natural
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is natural number.
|
* Is natural number.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,19 @@ namespace phpOMS\Math\Number;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Numbers
|
final class Numbers
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is perfect number?
|
* Is perfect number?
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,19 @@ namespace phpOMS\Math\Number;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Prime
|
final class Prime
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is mersenne number?
|
* Is mersenne number?
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ use phpOMS\Math\Matrix\Exception\InvalidDimensionException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Average
|
final class Average
|
||||||
{
|
{
|
||||||
|
|
||||||
public const MA3 = [1 / 3, 1 / 3];
|
public const MA3 = [1 / 3, 1 / 3];
|
||||||
|
|
@ -40,6 +40,17 @@ class Average
|
||||||
public const MAH13 = [0.240, 0.214, 0.147, 0.66, 0, -0.028, -0.019];
|
public const MAH13 = [0.240, 0.214, 0.147, 0.66, 0, -0.028, -0.019];
|
||||||
public const MAH23 = [0.148, 0.138, 0.122, 0.097, 0.068, 0.039, 0.013, -0.005, -0.015, -0.016, -0.011, -0.004];
|
public const MAH23 = [0.148, 0.138, 0.122, 0.097, 0.068, 0.039, 0.013, -0.005, -0.015, -0.016, -0.011, -0.004];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Average change.
|
* Average change.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,18 @@ namespace phpOMS\Math\Statistic;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Basic
|
final class Basic
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate frequency.
|
* Calculate frequency.
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,18 @@ namespace phpOMS\Math\Statistic;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Correlation
|
final class Correlation
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculage bravais person correlation coefficient.
|
* Calculage bravais person correlation coefficient.
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,18 @@ use phpOMS\Math\Matrix\Exception\InvalidDimensionException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class MeasureOfDispersion
|
final class MeasureOfDispersion
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get range.
|
* Get range.
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ use phpOMS\DataStorage\LockException;
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.Superglobals)
|
* @SuppressWarnings(PHPMD.Superglobals)
|
||||||
*/
|
*/
|
||||||
class Header extends HeaderAbstract
|
final class Header extends HeaderAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ use phpOMS\Uri\UriInterface;
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.Superglobals)
|
* @SuppressWarnings(PHPMD.Superglobals)
|
||||||
*/
|
*/
|
||||||
class Request extends RequestAbstract
|
final class Request extends RequestAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ use phpOMS\Views\View;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Response extends ResponseAbstract implements RenderableInterface
|
final class Response extends ResponseAbstract implements RenderableInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Response status.
|
* Response status.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Message\Http;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Rest
|
final class Rest
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Module\Exception;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class InvalidModuleException extends \UnexpectedValueException
|
final class InvalidModuleException extends \UnexpectedValueException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Module\Exception;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class InvalidThemeException extends \UnexpectedValueException
|
final class InvalidThemeException extends \UnexpectedValueException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ use phpOMS\Utils\ArrayUtils;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class InfoManager
|
final class InfoManager
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ use phpOMS\ApplicationAbstract;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class ModuleFactory
|
final class ModuleFactory
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ use phpOMS\Module\Exception\InvalidModuleException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class ModuleManager
|
final class ModuleManager
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,6 @@ namespace phpOMS\Module;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class NullModule extends ModuleAbstract
|
final class NullModule extends ModuleAbstract
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ use phpOMS\Utils\StringUtils;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class PackageManager
|
final class PackageManager
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* File path.
|
* File path.
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ use phpOMS\Message\RequestAbstract;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Router
|
final class Router
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Security;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class PhpCode
|
final class PhpCode
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Disabled functions
|
* Disabled functions
|
||||||
|
|
@ -54,6 +54,17 @@ class PhpCode
|
||||||
'posix_setuid', 'posix_uname', 'proc_close', 'proc_get_status',
|
'posix_setuid', 'posix_uname', 'proc_close', 'proc_get_status',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Normalize source code for inspection
|
* Normalize source code for inspection
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\System\File;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class FileUtils
|
final class FileUtils
|
||||||
{
|
{
|
||||||
public const CODE_EXTENSION = ['cpp', 'c', 'h', 'hpp', 'cs', 'css', 'htm', 'html', 'php', 'rb'];
|
public const CODE_EXTENSION = ['cpp', 'c', 'h', 'hpp', 'cs', 'css', 'htm', 'html', 'php', 'rb'];
|
||||||
public const TEXT_EXTENSION = ['doc', 'docx', 'txt', 'md', 'csv'];
|
public const TEXT_EXTENSION = ['doc', 'docx', 'txt', 'md', 'csv'];
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ use phpOMS\Utils\StringUtils;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Directory extends FileAbstract implements DirectoryInterface
|
final class Directory extends FileAbstract implements DirectoryInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Directory list filter.
|
* Directory list filter.
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ use phpOMS\System\File\PathException;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class File extends FileAbstract implements FileInterface
|
final class File extends FileAbstract implements FileInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\System\File;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class PathException extends \UnexpectedValueException
|
final class PathException extends \UnexpectedValueException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\System\File;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class PermissionException extends \RuntimeException
|
final class PermissionException extends \RuntimeException
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,17 @@ namespace phpOMS\System;
|
||||||
*/
|
*/
|
||||||
final class OperatingSystem
|
final class OperatingSystem
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get OS.
|
* Get OS.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\System;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class SystemUtils
|
final class SystemUtils
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ use phpOMS\Utils\StringUtils;
|
||||||
*
|
*
|
||||||
* @SuppressWarnings(PHPMD.Superglobals)
|
* @SuppressWarnings(PHPMD.Superglobals)
|
||||||
*/
|
*/
|
||||||
class Http implements UriInterface
|
final class Http implements UriInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ namespace phpOMS\Uri;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class UriFactory
|
final class UriFactory
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Utils;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class ArrayUtils
|
final class ArrayUtils
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,18 @@ namespace phpOMS\Utils;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class ColorUtils
|
final class ColorUtils
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert int to rgb
|
* Convert int to rgb
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,19 @@ namespace phpOMS\Utils;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class ImageUtils
|
final class ImageUtils
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Decode base64 image.
|
* Decode base64 image.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace phpOMS\Utils;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class JsonBuilder implements \Serializable, \JsonSerializable
|
final class JsonBuilder implements \Serializable, \JsonSerializable
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -33,15 +33,6 @@ class JsonBuilder implements \Serializable, \JsonSerializable
|
||||||
*/
|
*/
|
||||||
private $json = [];
|
private $json = [];
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor.
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get json data.
|
* Get json data.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,19 @@ namespace phpOMS\Utils;
|
||||||
* @link http://website.orange-management.de
|
* @link http://website.orange-management.de
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
class Permutation
|
final class Permutation
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @codeCoverageIgnore
|
||||||
|
*/
|
||||||
|
private function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create all permutations.
|
* Create all permutations.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user