Files
Jacek Pyziak 3bd8164d3d Add PHPStan configuration for Symfony4 tests
- Created a new phpstan.neon file in the Symfony4 tests directory.
- Configured paths and excluded Symfony3 directory.
- Added bootstrap files for autoloading.
- Set dynamic constant names and adjusted reporting settings.
- Established PHPStan level to 6 for stricter analysis.
2026-02-09 23:14:09 +01:00

61 lines
1.7 KiB
PHP

<?php
class EmpikAction extends ObjectModel
{
const ACTION_OTHER = 'OTHER';
const ACTION_PRODUCT_EXPORT = 'PRODUCT_EXPORT';
const ACTION_OFFER_EXPORT = 'OFFER_EXPORT';
const ACTION_PRODUCT_EXPORT_INCLUDE = 'PRODUCT_EXPORT_INCLUDE';
const ACTION_PRODUCT_EXPORT_EXCLUDE = 'PRODUCT_EXPORT_EXCLUDE';
const STATUS_NEW = 'NEW';
const STATUS_COMPLETED = 'COMPLETE';
public $id_shop;
public $action = self::ACTION_OTHER;
public $status = self::STATUS_NEW;
public $id_import;
public $import_count;
public $date_start;
public $date_end;
public static $definition = [
'table' => 'empik_action',
'primary' => 'id_empik_action',
'fields' => [
'id_shop' => [
'type' => self::TYPE_INT,
'validate' => 'isUnsignedInt',
'required' => true,
],
'action' => [
'type' => self::TYPE_STRING,
'validate' => 'isCleanHtml',
],
'status' => [
'type' => self::TYPE_STRING,
'validate' => 'isCleanHtml',
],
'id_import' => [
'type' => self::TYPE_INT,
'validate' => 'isUnsignedInt',
],
'import_count' => [
'type' => self::TYPE_INT,
'validate' => 'isUnsignedInt',
],
'date_start' => [
'type' => self::TYPE_DATE,
'validate' => 'isDate',
'required' => true,
],
'date_end' => [
'type' => self::TYPE_DATE,
'validate' => 'isDate',
'required' => true,
],
],
];
}