Make classes final

This commit is contained in:
Dennis Eichhorn 2018-05-11 21:33:24 +02:00
parent aef7699ba2
commit 59d3f98110
110 changed files with 315 additions and 151 deletions

View File

@ -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();
} }
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
} }

View File

@ -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
{ {
/** /**

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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
{ {
/** /**

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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.

View File

@ -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.

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
} }

View File

@ -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
{ {
/** /**

View File

@ -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.

View File

@ -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
{ {
/** /**

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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
{ {
/** /**

View File

@ -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.

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
} }

View File

@ -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}';

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.
* *

View File

@ -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
* *

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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.

View File

@ -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
{ {
} }

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
} }

View File

@ -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
{ {
/** /**

View File

@ -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.

View File

@ -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
{ {
/** /**

View File

@ -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.

View File

@ -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
{ {
} }

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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 = [];

View File

@ -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
{ {
} }

View File

@ -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
{ {
} }

View File

@ -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.

View File

@ -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.
* *

View File

@ -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.
* *

View File

@ -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?
* *

View File

@ -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?
* *

View File

@ -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.
* *

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -27,7 +27,7 @@ use phpOMS\DataStorage\LockException;
* *
* @SuppressWarnings(PHPMD.Superglobals) * @SuppressWarnings(PHPMD.Superglobals)
*/ */
class Header extends HeaderAbstract final class Header extends HeaderAbstract
{ {
/** /**

View File

@ -32,7 +32,7 @@ use phpOMS\Uri\UriInterface;
* *
* @SuppressWarnings(PHPMD.Superglobals) * @SuppressWarnings(PHPMD.Superglobals)
*/ */
class Request extends RequestAbstract final class Request extends RequestAbstract
{ {
/** /**

View File

@ -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.

View File

@ -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
{ {
/** /**

View File

@ -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.

View File

@ -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.

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
} }

View File

@ -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.

View File

@ -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
{ {
/** /**

View File

@ -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
* *

View File

@ -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'];

View File

@ -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.

View File

@ -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
{ {
/** /**

View File

@ -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.

View File

@ -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.

View File

@ -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.
* *

View File

@ -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
{ {
/** /**

View File

@ -28,7 +28,7 @@ use phpOMS\Utils\StringUtils;
* *
* @SuppressWarnings(PHPMD.Superglobals) * @SuppressWarnings(PHPMD.Superglobals)
*/ */
class Http implements UriInterface final class Http implements UriInterface
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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
{ {
/** /**

View File

@ -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

View File

@ -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.
* *

View File

@ -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.
* *

View File

@ -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