PHP code example of maximaster / bitrix-enums
1. Go to this page and download the library: Download maximaster/bitrix-enums library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
maximaster / bitrix-enums example snippets
use Maximaster\BitrixEnums\Main\ModuleId;
CModule::IncludeModule(ModuleId::SALE);
function doSomething(ModuleId $moduleId): void {}
doSomething(ModuleId::SALE());