app = $app; } /** * Get language files. * * @param string $language Language key * @param string $destination Application destination (e.g. Backend) * * @return array * * @since 1.0.0 */ public static function getLocalization(string $language, string $destination) : array { $lang = []; if (file_exists($oldPath = __DIR__ . '/../../Modules/' . static::MODULE_NAME . '/Theme/' . $destination . '/Lang/' . $language . '.lang.php')) { /** @noinspection PhpIncludeInspection */ $lang = include $oldPath; } return $lang; } /** * {@inheritdoc} */ public function addReceiving(string $module) /* : void */ { $this->receiving[] = $module; } /** * {@inheritdoc} */ public function getProviding() : array { /** @noinspection PhpUndefinedFieldInspection */ return static::$providing; } /** * {@inheritdoc} */ public function getName() : string { /** @noinspection PhpUndefinedFieldInspection */ return static::MODULE_NAME; } /** * {@inheritdoc} */ public function getDependencies() : array { /** @noinspection PhpUndefinedFieldInspection */ return static::$dependencies; } }