1
0
mirror of synced 2025-01-18 08:51:41 +03:00

Refactoring class description

This commit is contained in:
Dima Uryvskiy 2022-01-10 12:53:00 +03:00 committed by GitHub
parent 5a480f0b31
commit 593bbd4f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
62 changed files with 457 additions and 198 deletions

View File

@ -1,7 +1,14 @@
<?php
/**
* Class WC_Retailcrm_Abstract_Builder.
* PHP version 5.6
*
* Class WC_Retailcrm_Abstract_Builder - Builds data for CRM.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
abstract class WC_Retailcrm_Abstract_Builder implements WC_Retailcrm_Builder_Interface
{

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Abstracts_Address - Builds data for addresses orders/customers.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
abstract class WC_Retailcrm_Abstracts_Address extends WC_Retailcrm_Abstracts_Data
{
/** @var array $data */

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Abstracts_Data - Class manage different data.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,10 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
/**
* Class WC_Retailcrm_Abstracts_Data
*/
abstract class WC_Retailcrm_Abstracts_Data
{
/** @var array */

View File

@ -1,15 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Abstracts_Settings - Settings plugin Simla.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
abstract class WC_Retailcrm_Abstracts_Settings extends WC_Integration
{
/** @var string */

View File

@ -1,9 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Request class
* Class WC_Retailcrm_Client_V4 - Api Client V4 class.
*
* @category Integration
* @package WC_Retailcrm_Client
@ -12,11 +11,11 @@
* @link http://retailcrm.ru/docs/Developers/ApiVersion4
*/
if ( ! class_exists( 'WC_Retailcrm_Request' ) ) {
if (!class_exists('WC_Retailcrm_Request')) {
include_once(WC_Integration_Retailcrm::checkCustomFile('include/api/class-wc-retailcrm-request.php'));
}
if ( ! class_exists( 'WC_Retailcrm_Response' ) ) {
if (!class_exists('WC_Retailcrm_Response')) {
include_once(WC_Integration_Retailcrm::checkCustomFile('include/api/class-wc-retailcrm-response.php'));
}
@ -52,7 +51,7 @@ class WC_Retailcrm_Client_V4
/**
* Returns api versions list
*
*
* @return WC_Retailcrm_Response
*/
public function apiVersions()

View File

@ -1,9 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Request class
* Class WC_Retailcrm_Client_V5 - Api Client V5 class.
*
* @category Integration
* @package WC_Retailcrm_Client

View File

@ -1,16 +1,17 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* WC_Retailcrm_Exception_Curl class
* Class WC_Retailcrm_Exception_Curl.
*
* @category RetailCRM
* @package WC_Retailcrm_Exception_Curl
* @author RetailCRM <dev@retailcrm.ru>
* @license https://opensource.org/licenses/MIT MIT License
* @link http://retailcrm.ru/docs/Developers/ApiVersion4
* @link http://retailcrm.ru/docs/Developers/ApiVersion5
*/
class WC_Retailcrm_Exception_Curl extends \RuntimeException
{
}

View File

@ -1,16 +1,17 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* WC_Retailcrm_Exception_Json class
* Class WC_Retailcrm_Exception_Json.
*
* @category RetailCRM
* @package WC_Retailcrm_Exception_Json
* @author RetailCRM <dev@retailcrm.ru>
* @license https://opensource.org/licenses/MIT MIT License
* @link http://retailcrm.ru/docs/Developers/ApiVersion5
*/
class WC_Retailcrm_Exception_Json extends \DomainException
{
}

View File

@ -1,17 +1,17 @@
<?php
/**
* RetailCRM Integration.
* PHP version 5.6
*
* Class WC_Retailcrm_Proxy - RetailCRM Integration.
*
* @package WC_Retailcrm_Proxy
* @category Integration
* @author RetailCRM
* @package WC_Retailcrm_Proxy
* @author RetailCRM <dev@retailcrm.ru>
* @license https://opensource.org/licenses/MIT MIT License
* @link http://retailcrm.ru/docs/Developers/ApiVersion5
*/
if ( ! class_exists( 'WC_Retailcrm_Proxy' ) ) :
/**
* Class WC_Retailcrm_Proxy
*/
if (!class_exists('WC_Retailcrm_Proxy')) :
class WC_Retailcrm_Proxy
{
protected $retailcrm;

View File

@ -1,21 +1,21 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Request class
* Class WC_Retailcrm_Request - Request class.
*
* @category Integration
* @package WC_Retailcrm_Request
* @author RetailCRM <dev@retailcrm.ru>
* @license https://opensource.org/licenses/MIT MIT License
* @link http://retailcrm.ru/docs/Developers/ApiVersion5
*/
if ( ! class_exists( 'WC_Retailcrm_Exception_Curl' ) ) {
if (!class_exists('WC_Retailcrm_Exception_Curl')) {
include_once(WC_Integration_Retailcrm::checkCustomFile('include/api/class-wc-retailcrm-exception-curl.php'));
}
if ( ! class_exists( 'WC_Retailcrm_Response' ) ) {
if (!class_exists('WC_Retailcrm_Response')) {
include_once(WC_Integration_Retailcrm::checkCustomFile('include/api/class-wc-retailcrm-response.php'));
}

View File

@ -1,21 +1,20 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Response class
* Class WC_Retailcrm_Response - Response class.
*
* @category Integration
* @package WC_Retailcrm_Response
* @author RetailCRM <dev@retailcrm.ru>
* @license https://opensource.org/licenses/MIT MIT License
* @link http://retailcrm.ru/docs/Developers/ApiVersion5
*/
if ( ! class_exists( 'WC_Retailcrm_Exception_Json' ) ) {
if (!class_exists('WC_Retailcrm_Exception_Json')) {
include_once(WC_Integration_Retailcrm::checkCustomFile('include/api/class-wc-retailcrm-exception-json.php'));
}
class WC_Retailcrm_Response implements \ArrayAccess
{
// HTTP response status code

View File

@ -1,11 +1,14 @@
<?php
/**
* RetailCRM Integration.
* PHP version 5.6
*
* Class WC_Retailcrm_Base - Main settings plugin.
*
* @package WC_Retailcrm_Base
* @category Integration
* @author RetailCRM
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if (!class_exists('WC_Retailcrm_Base')) {
@ -13,9 +16,6 @@ if (!class_exists('WC_Retailcrm_Base')) {
include_once(WC_Integration_Retailcrm::checkCustomFile('include/abstracts/class-wc-retailcrm-abstracts-settings.php'));
}
/**
* Class WC_Retailcrm_Base
*/
class WC_Retailcrm_Base extends WC_Retailcrm_Abstracts_Settings
{
/** @var \WC_Retailcrm_Proxy|WC_Retailcrm_Client_V4|WC_Retailcrm_Client_V5|bool */

View File

@ -1,18 +1,17 @@
<?php
/**
* RetailCRM Integration.
* PHP version 5.6
*
* Class WC_Retailcrm_Customers - Allows transfer data customers with CMS.
*
* @package WC_Retailcrm_Customers
* @category Integration
* @author RetailCRM
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if (!class_exists('WC_Retailcrm_Customers')) :
/**
* Class WC_Retailcrm_Customers
*/
class WC_Retailcrm_Customers
{
/** @var bool | WC_Retailcrm_Proxy | \WC_Retailcrm_Client_V5 */

View File

@ -1,7 +1,18 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Daemon_Collector - Integration with Daemon Collector.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if (!defined('ABSPATH')) {
exit;
exit;
}
class WC_Retailcrm_Daemon_Collector {

View File

@ -1,7 +1,17 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Google_Analytics - Integration with Google Analytics.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if (!class_exists('WC_Retailcrm_Google_Analytics')) {
class WC_Retailcrm_Google_Analytics {
private static $instance;
private $options;

View File

@ -1,17 +1,17 @@
<?php
/**
* RetailCRM Integration.
* PHP version 5.6
*
* Class WC_Retailcrm_History - Allows transfer data orders/customers with CRM.
*
* @package WC_Retailcrm_History
* @category Integration
* @author RetailCRM
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if ( ! class_exists( 'WC_Retailcrm_History' ) ) :
/**
* Class WC_Retailcrm_History
*/
if (!class_exists('WC_Retailcrm_History')) :
class WC_Retailcrm_History
{
/** @var \DateTime */

View File

@ -1,17 +1,17 @@
<?php
/**
* RetailCRM Integration.
* PHP version 5.6
*
* Class WC_Retailcrm_Icml - Generate ICML file (catalog).
*
* @package WC_Retailcrm_Icml
* @category Integration
* @author RetailCRM
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if ( ! class_exists( 'WC_Retailcrm_Icml' ) ) :
/**
* Class WC_Retailcrm_Icml
*/
if (!class_exists('WC_Retailcrm_Icml')) :
class WC_Retailcrm_Icml
{
protected $shop;

View File

@ -1,17 +1,17 @@
<?php
/**
* RetailCRM Integration.
* PHP version 5.6
*
* Class WC_Retailcrm_Inventories - Allows manage stocks.
*
* @package WC_Retailcrm_Inventories
* @category Integration
* @author RetailCRM
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if (!class_exists('WC_Retailcrm_Inventories')) :
/**
* Class WC_Retailcrm_Inventories
*/
class WC_Retailcrm_Inventories
{
/** @var WC_Retailcrm_Client_V5 */
@ -40,7 +40,7 @@ if (!class_exists('WC_Retailcrm_Inventories')) :
}
/**
* Load stock from retailCRM
* Load stock from RetailCRM
*
* @return mixed
*/

View File

@ -1,17 +1,17 @@
<?php
/**
* RetailCRM Integration.
* PHP version 5.6
*
* Class WC_Retailcrm_Orders - Allows transfer data orders with CMS.
*
* @package WC_Retailcrm_Orders
* @category Integration
* @author RetailCRM
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if ( ! class_exists( 'WC_Retailcrm_Orders' ) ) :
/**
* Class WC_Retailcrm_Orders
*/
if (!class_exists('WC_Retailcrm_Orders')) :
class WC_Retailcrm_Orders
{
/** @var bool|WC_Retailcrm_Proxy|\WC_Retailcrm_Client_V5|\WC_Retailcrm_Client_V4 */

View File

@ -1,5 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Plugin - Internal plugin settings.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Plugin
{

View File

@ -1,17 +1,17 @@
<?php
/**
* RetailCRM Integration.
* PHP version 5.6
*
* Class WC_Retailcrm_Uploader - Allows upload archival orders/customers in CRM.
*
* @package WC_Retailcrm_Uploader
* @category Integration
* @author RetailCRM
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if (class_exists('WC_Retailcrm_Uploader') === false) {
/**
* Class WC_Retailcrm_Uploader
*/
class WC_Retailcrm_Uploader
{
const RETAILCRM_COUNT_OBJECT_UPLOAD = 50;

View File

@ -1,9 +1,15 @@
<?php
/**
* Class WC_Retailcrm_Customer_Switcher
* This component provides builder-like interface in order to make it easier to change customer & customer data
* in the order via retailCRM history.
* PHP version 5.6
*
* Class WC_Retailcrm_Customer_Switcher - This component provides builder-like interface in order to make it easier to
* change customer & customer data in the order via retailCRM history.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Customer_Switcher implements WC_Retailcrm_Builder_Interface
{

View File

@ -1,8 +1,15 @@
<?php
/**
* Class WC_Retailcrm_History_Assembler
* Assembles history records into list which closely resembles orders & customers list output from API.
* PHP version 5.6
*
* Class WC_Retailcrm_History_Assembler - Assembles history records into list which closely resembles
* orders & customers list output from API.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_History_Assembler
{

View File

@ -1,16 +1,18 @@
<?php
/**
* RetailCRM Integration.
* PHP version 5.6
*
* Class WC_Retailcrm_Logger - Allows display important debug information.
*
* @package WC_Retailcrm_Customers
* @category Integration
* @author RetailCRM
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if (!class_exists('WC_Retailcrm_Logger') && class_exists('WC_Log_Levels')):
if (!class_exists('WC_Retailcrm_Logger') && class_exists('WC_Log_Levels')) :
/**
* Class WC_Retailcrm_Logger
*
* @codeCoverageIgnore
*/
class WC_Retailcrm_Logger

View File

@ -1,9 +1,15 @@
<?php
/**
* Class WC_Retailcrm_Paginated_Request
* It will merge request with pagination data into one big monstrous array.
* PHP version 5.6
*
* Class WC_Retailcrm_Paginated_Request - It will merge request with pagination data into one big monstrous array.
* Use with caution, it can cause problems with very large data sets (due to memory exhaustion, obviously).
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Paginated_Request
{

View File

@ -1,7 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Customer_Address - Builds a billing address for a customer.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -9,10 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
/**
* Class WC_Retailcrm_Customer_Address
*/
class WC_Retailcrm_Customer_Address extends WC_Retailcrm_Abstracts_Address
{
/**

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Customer_Corporate_Address - Builds a billing address for a corporate customer.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,10 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
/**
* Class WC_Retailcrm_Customer_Address
*/
class WC_Retailcrm_Customer_Corporate_Address extends WC_Retailcrm_Abstracts_Address
{
/** @var bool $isMain */

View File

@ -1,8 +1,14 @@
<?php
/**
* Class WC_Retailcrm_WC_Customer_Builder
* It converts retailCRM customer data (array) into WC_Customer
* PHP version 5.6
*
* Class WC_Retailcrm_WC_Customer_Builder - It converts retailCRM customer data (array) into WC_Customer.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_WC_Customer_Builder extends WC_Retailcrm_Abstract_Builder
{

View File

@ -1,8 +1,14 @@
<?php
/**
* Interface WC_Retailcrm_Builder_Interface.
* Main interface for builders. All builders
* PHP version 5.6
*
* Interface WC_Retailcrm_Builder_Interface - Main interface for builders. All builders.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
interface WC_Retailcrm_Builder_Interface {
/**

View File

@ -1,10 +1,16 @@
<?php
/**
* Class WC_Retailcrm_Customer_Switcher_Result
* Holds modified order and customer which was set in the order.
* PHP version 5.6
*
* Class WC_Retailcrm_Customer_Switcher_Result - Holds modified order and customer which was set in the order.
* If customer is null, then only order props was updated. Previous customer (if it was registered)
* will be detached from this order.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Customer_Switcher_Result
{

View File

@ -1,21 +1,28 @@
<?php
/**
* Class WC_Retailcrm_Customer_Switcher_State
* Holds WC_Retailcrm_Customer_Switcher state. It exists only because we need to comply with builder interface.
* PHP version 5.6
*
* Class WC_Retailcrm_Customer_Switcher_State - Holds WC_Retailcrm_Customer_Switcher state.
* It exists only because we need to comply with builder interface.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Customer_Switcher_State
{
/** @var \WC_Order $wcOrder */
private $wcOrder;
/** @var array */
/** @var array */
private $newCustomer;
/** @var array */
/** @var array */
private $newContact;
/** @var string $newCompanyName */
/** @var string $newCompanyName */
private $newCompanyName;
/** @var array $companyAddress */

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Order_Address - Build address for CRM order.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Order_Address extends WC_Retailcrm_Abstracts_Address
{
/**

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Order_Item - Build items for CRM order.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,14 +10,8 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
/**
* Class WC_Retailcrm_Order_Item
*/
class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
{
protected $filter_name = 'order_item';
/**
* @var array order item
*/

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Order_Payment - Build payments for CRM order.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,10 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
/**
* Class WC_Retailcrm_Order_Payment
*/
class WC_Retailcrm_Order_Payment extends WC_Retailcrm_Abstracts_Data
{
/** @var string */

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Order - Build main data for CRM order.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Order extends WC_Retailcrm_Abstracts_Data
{
/** @var bool */

View File

@ -1,5 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Abstracts_Settings_Test - Testing WC_Retailcrm_Abstracts_Settings.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Abstracts_Settings_Test extends WC_Retailcrm_Test_Case_Helper
{
/**

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Customer_Address_Test - Testing WC_Retailcrm_Customer_Address.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Customer_Address_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $customer;

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Customer_Corporate_Address_Test - Testing WC_Retailcrm_Customer_Corporate_Address.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Customer_Corporate_Address_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $customer;

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_WC_Customer_Builder_Test - Testing WC_Retailcrm_WC_Customer_Builder.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_WC_Customer_Builder_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $customer;

View File

@ -2,6 +2,17 @@
namespace datasets;
/**
* PHP version 5.6
*
* Class DataBaseRetailCrm - Data set for WC_Retailcrm_Base.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class DataBaseRetailCrm
{
public static function getResponseStatuses()

View File

@ -2,6 +2,17 @@
namespace datasets;
/**
* PHP version 5.6
*
* Class DataCustomersRetailCrm - Data set for WC_Retailcrm_Customers.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class DataCustomersRetailCrm
{
public static function getCustomerAddress()

View File

@ -2,6 +2,17 @@
namespace datasets;
/**
* PHP version 5.6
*
* Class DataHistoryRetailCrm - Data set for WC_Retailcrm_History.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class DataHistoryRetailCrm
{
public static function empty_history()

View File

@ -2,6 +2,17 @@
namespace datasets;
/**
* PHP version 5.6
*
* Class DataInventoriesRetailCrm - Data set for WC_Retailcrm_Inventories.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class DataInventoriesRetailCrm {
public static function getResponseData()
{

View File

@ -1,14 +1,20 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Log_Handler_Stdout - Handles log entries by writing to a stdout.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if (!defined( 'ABSPATH' ) ) {
if (!defined( 'ABSPATH')) {
exit;
}
/**
* Handles log entries by writing to a stdout
*
* @class WC_Retailcrm_Log_Handler_Stdout
*/
class WC_Retailcrm_Log_Handler_Stdout extends WC_Log_Handler
{
/**

View File

@ -1,4 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Response_Helper - Set response for mock object.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
if (!class_exists('WC_Retailcrm_Response')) {
require_once dirname(__FILE__) . '/../../src/include/api/class-wc-retailcrm-response.php';

View File

@ -1,7 +1,14 @@
<?php
/**
* Class WC_Retailcrm_Test_Case_Helper
* PHP version 5.6
*
* Class WC_Retailcrm_Test_Case_Helper - Helper for testing.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Test_Case_Helper extends WC_Unit_Test_Case
{

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Customer_Switcher_Result_Test - Testing WC_Retailcrm_Customer_Switcher_Result.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Customer_Switcher_Result_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $customer;

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Customer_Switcher_State_Test - Testing WC_Retailcrm_Customer_Switcher_State.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Customer_Switcher_State_Test extends WC_Retailcrm_Test_Case_Helper
{
public function test_feasible()

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Order_Address_Test - Testing WC_Retailcrm_Order_Address.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,10 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
/**
* Class WC_Retailcrm_Order_Address_Test
*/
class WC_Retailcrm_Order_Address_Test extends WC_Retailcrm_Test_Case_Helper
{
/** @var WC_Order */

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Order_Item_Test - Testing WC_Retailcrm_Order_Item.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Order_Item_Test extends WC_Retailcrm_Test_Case_Helper
{
/** @var WC_Order */

View File

@ -1,6 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Order_Payment_Test - Testing WC_Retailcrm_Order_Payment.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -8,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Order_Payment_Test extends WC_Retailcrm_Test_Case_Helper
{
/** @var WC_Order */

View File

@ -1,7 +1,8 @@
<?php
/**
* PHP version 5.3
* PHP version 5.6
*
* Class WC_Retailcrm_Order_Test - Testing WC_Retailcrm_Order.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
@ -9,7 +10,6 @@
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Order_Test extends WC_Retailcrm_Test_Case_Helper {
/** @var WC_Order */
protected $order;

View File

@ -2,6 +2,17 @@
use datasets\DataBaseRetailCrm;
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Base_Test - Testing WC_Retailcrm_Base.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Base_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $apiMock;

View File

@ -2,6 +2,17 @@
use datasets\DataCustomersRetailCrm;
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Customers_Test - Testing WC_Retailcrm_Customers.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Customers_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $apiMock;

View File

@ -1,5 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Daemon_Collector_Test - Testing WC_Retailcrm_Daemon_Collector.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Daemon_Collector_Test extends WC_Retailcrm_Test_Case_Helper
{
private $daemonCollector;

View File

@ -1,5 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Google_Analytics_Test - Testing WC_Retailcrm_Google_Analytics.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Google_Analytics_Test extends WC_Retailcrm_Test_Case_Helper
{
private $ga;

View File

@ -2,6 +2,17 @@
use datasets\DataHistoryRetailCrm;
/**
* PHP version 5.6
*
* Class WC_Retailcrm_History_Test - Testing WC_Retailcrm_History.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_History_Test extends WC_Retailcrm_Test_Case_Helper
{
/** @var WC_Retailcrm_Proxy */

View File

@ -1,5 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Icml_Test - Testing WC_Retailcrm_Icml.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Icml_Test extends WC_Retailcrm_Test_Case_Helper
{
public function setUp()

View File

@ -2,6 +2,17 @@
use datasets\DataInventoriesRetailCrm;
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Inventories_Test - Testing WC_Retailcrm_Inventories.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Inventories_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $apiMock;

View File

@ -1,5 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Orders_Test - Testing WC_Retailcrm_Orders.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Orders_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $apiMock;

View File

@ -1,5 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Plugin_Test - Testing WC_Retailcrm_Plugin.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Plugin_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $apiMock;

View File

@ -1,5 +1,15 @@
<?php
/**
* PHP version 5.6
*
* Class WC_Retailcrm_Uploader_Test - Testing WC_Retailcrm_Uploader.
*
* @category Integration
* @author RetailCRM <integration@retailcrm.ru>
* @license http://retailcrm.ru Proprietary
* @link http://retailcrm.ru
* @see http://help.retailcrm.ru
*/
class WC_Retailcrm_Uploader_Test extends WC_Retailcrm_Test_Case_Helper
{
protected $apiMock;