1
0
Fork 0
mirror of synced 2025-04-03 22:03:34 +03:00
Adding classes for validation
This commit is contained in:
Ivan Chaplygin 2024-04-24 10:40:43 +03:00
parent b76d34e511
commit 80399b661f
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?php
if (!class_exists('WC_Retailcrm_Loyalty_Constraint')) :
/**
* PHP version 7.0
*
* Class WC_Retailcrm_Loyalty_Constraint - Constraint for CRM loyalty.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Loyalty_Constraint
{
/** @var string */
public $err = 'error';
}
endif;

View file

@ -0,0 +1,22 @@
<?php
if (!class_exists('WC_Retailcrm_Loyalty_Validator')) :
/**
* PHP version 7.0
*
* Class WC_Retailcrm_Loyalty_Validator - Validate CRM loyalty.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Loyalty_Validator extends WC_Retailcrm_Loyalty_Constraint
{
public function checkAccount(int $userId)
{
}
}
endif;