PHP code example of liventin / base.module.migration.crmcategory

1. Go to this page and download the library: Download liventin/base.module.migration.crmcategory 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/ */

    

liventin / base.module.migration.crmcategory example snippets




namespace ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Migration\CrmCategory\ApplicationsEvaluations;


use ${MODULE_PROVIDER_CAMMAL_CASE}\\${MODULE_CODE_CAMMAL_CASE}\Service\Migration\CrmCategory\MigrateCrmCategory;

class CategoryExample implements MigrateCrmCategory
{
    public static function getEntityTypeId(): int
    {
        return 1;
    }

    public static function getName(): string
    {
        return 'name';
    }

    public static function getSort(): string
    {
        return 500;
    }

    public static function getCode(): string
    {
        return 'CATEGORY_CODE';
    }

    public static function isDefault(): bool
    {
        return true;
    }
}