diff --git a/public/admin/tool/mobile/classes/local/hooks/before_extend_ios_app_banner.php b/public/admin/tool/mobile/classes/local/hooks/before_extend_ios_app_banner.php new file mode 100644 index 00000000000..8555bdcd6db --- /dev/null +++ b/public/admin/tool/mobile/classes/local/hooks/before_extend_ios_app_banner.php @@ -0,0 +1,78 @@ +. + +namespace tool_mobile\local\hooks; + +/** + * Allow adjustment of ios smart app banner fields. + * + * @package tool_mobile + * @copyright 2025 Safat Shahin + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +#[\core\attribute\label('Allow adjustment of ios smart app banner fields')] +#[\core\attribute\tags('mobile')] +final class before_extend_ios_app_banner { + /** + * Create a new instance of the hook. + * + * @param string $appid The app id for the ios smart banner + * @param string $appargument The app argument for the ios smart banner + */ + public function __construct( + /** @var string $appid The app id for the ios smart banner */ + private string $appid, + /** @var string $appargument The app argument for the ios smart banner */ + private string $appargument, + ) { + } + + /** + * Get the appid. + * + * @return string + */ + public function get_appid(): string { + return $this->appid; + } + + /** + * Set the appid. + * + * @param string $appid + */ + public function set_appid(string $appid): void { + $this->appid = $appid; + } + + /** + * Get the appargument. + * + * @return string + */ + public function get_appargument(): string { + return $this->appargument; + } + + /** + * Set the appargument. + * + * @param string $appargument + */ + public function set_appargument(string $appargument): void { + $this->appargument = $appargument; + } +}