phpOMS/Module/NullModule.php
2020-12-03 23:07:33 +01:00

48 lines
1.0 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package phpOMS\Module
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace phpOMS\Module;
use phpOMS\Log\FileLogger;
/**
* Module abstraction class.
*
* @package phpOMS\Module
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class NullModule extends ModuleAbstract
{
/** {@inheritdoc} */
public function __call(string $name, array $arguments) : void
{
self::__callStatic($name, $arguments);
}
/** {@inheritdoc} */
public static function __callStatic(string $name, array $arguments) : void
{
FileLogger::getInstance('', false)
->error(
FileLogger::MSG_FULL, [
'message' => 'Expected module/controller but got NullModule.',
'line' => __LINE__,
'file' => self::class,
]
);
}
}