<commit_before><?php
/**
 * @namespace
 */
namespace FcFlightManagement\Model;

use Zend\Db\TableGateway\AbstractTableGateway;
use Zend\Db\Adapter\Adapter;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\Sql\Select;

/**
 * Class BaseModel
 * @package FcFlightManagement\Model
 */
class BaseModel extends AbstractTableGateway
{
    /**
     * @var string
     */
    public $flightTableName = 'flightBaseHeaderForm';

    /**
     * @var string
     */
    public $legTableName = 'flightLegForm';

    /**
     * Name of the variable оставлено для совместимости с AbstractTableGateway
     *
     * @var string
     */
    public $table = '';

    /**
     * @var string
     */
    public $apServicePreInvoiceMainTableName = 'flightApServiceForm';

    /**
     * @var string
     */
    public $apServiceIncomeInvoiceMainTableName = 'invoiceIncomeApServiceMain';

    /**
     * @var string
     */
    public $apServiceIncomeInvoiceDataTableName = 'invoiceIncomeApServiceData';

    /**
     * @var string
     */
    public $apServiceOutcomeInvoiceMainTableName = 'invoiceOutcomeApServiceMain';

    /**
     * @var string
     */
    public $apServiceOutcomeInvoiceDataTableName = 'invoiceOutcomeApServiceData';

    /**
     * @var string
     */
    public $permissionPreInvoiceMainTableName = 'flightPermissionForm';

    /**
     * @var string
     */
    public $permissionIncomeInvoiceMainTableName = 'invoiceIncomePermissionMain';

    /**
     * @var string
     */
    public $permissionIncomeInvoiceDataTableName = 'invoiceIncomePermissionData';

    /**
     * @var string
     */
    public $permissionOutcomeInvoiceMainTableName = 'invoiceOutcomePermissionMain';

    /**
     * @var string
     */
    public $permissionOutcomeInvoiceDataTableName = 'invoiceOutcomePermissionData';

    /**
     * @var array
     */
    public $flightTableFieldsMap = array(
        'flightId' => 'id',
        'flightParentId' => 'parentId',
        'flightRefNumberOrder' => 'refNumberOrder',
        'flightDateOrder' => 'dateOrder',
        'flightAgentId' => 'kontragent',
        'flightAirOperatorId' => 'airOperator',
        'flightAircraftId' => 'aircraftId',
        'flightAlternativeAircraftId1' => 'alternativeAircraftId1',
        'flightAlternativeAircraftId2' => 'alternativeAircraftId2',
        'flightStatus' => 'status',
    );

    /**
     * @var array
     */
    public $legTableFieldsMap = array(
        'legId' => 'id',
        'legHeaderId' => 'headerId',
        'legFlightNumberAirportId' => 'airOperatorId',
        'legFlightNumber' => 'flightNumber',
        'legAirportDepId' => 'apDepAirportId',
        'legDepTime' => 'apDepTime',
        'legAirportArrId' => 'apArrAirportId',
        'legArrTime' => 'apArrTime',
    );

    /**
     * @var array
     */
    public $apServicePreInvoiceTableFieldsMap = array(
        'preInvoiceId' => 'id',
        'preInvoiceHeaderId' => 'headerId',
        'preInvoiceLegId' => 'legId',
        'preInvoiceAirportId' => 'airportId',
        'preInvoiceTypeOfApServiceId' => 'typeOfApServiceId',
        'preInvoiceAgentId' => 'agentId',
        'preInvoicePrice' => 'price',
        'preInvoiceCurrency' => 'currency',
        'preInvoiceExchangeRate' => 'exchangeRate',
        'preInvoicePriceTotalExchangedToUsd' => 'priceUSD',
        'preInvoiceStatus' => 'status',
    );

    /**
     * @var array
     */<commit_msg>#137: Сломался поиск по income invoices после удаления air operator в leg. Исправлено.<commit_after><?php
/**
 * @namespace
 */
namespace FcFlightManagement\Model;

use Zend\Db\TableGateway\AbstractTableGateway;
use Zend\Db\Adapter\Adapter;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\Sql\Select;

/**
 * Class BaseModel
 * @package FcFlightManagement\Model
 */
class BaseModel extends AbstractTableGateway
{
    /**
     * @var string
     */
    public $flightTableName = 'flightBaseHeaderForm';

    /**
     * @var string
     */
    public $legTableName = 'flightLegForm';

    /**
     * Name of the variable оставлено для совместимости с AbstractTableGateway
     *
     * @var string
     */
    public $table = '';

    /**
     * @var string
     */
    public $apServicePreInvoiceMainTableName = 'flightApServiceForm';

    /**
     * @var string
     */
    public $apServiceIncomeInvoiceMainTableName = 'invoiceIncomeApServiceMain';

    /**
     * @var string
     */
    public $apServiceIncomeInvoiceDataTableName = 'invoiceIncomeApServiceData';

    /**
     * @var string
     */
    public $apServiceOutcomeInvoiceMainTableName = 'invoiceOutcomeApServiceMain';

    /**
     * @var string
     */
    public $apServiceOutcomeInvoiceDataTableName = 'invoiceOutcomeApServiceData';

    /**
     * @var string
     */
    public $permissionPreInvoiceMainTableName = 'flightPermissionForm';

    /**
     * @var string
     */
    public $permissionIncomeInvoiceMainTableName = 'invoiceIncomePermissionMain';

    /**
     * @var string
     */
    public $permissionIncomeInvoiceDataTableName = 'invoiceIncomePermissionData';

    /**
     * @var string
     */
    public $permissionOutcomeInvoiceMainTableName = 'invoiceOutcomePermissionMain';

    /**
     * @var string
     */
    public $permissionOutcomeInvoiceDataTableName = 'invoiceOutcomePermissionData';

    /**
     * @var array
     */
    public $flightTableFieldsMap = array(
        'flightId' => 'id',
        'flightParentId' => 'parentId',
        'flightRefNumberOrder' => 'refNumberOrder',
        'flightDateOrder' => 'dateOrder',
        'flightAgentId' => 'kontragent',
        'flightAirOperatorId' => 'airOperator',
        'flightAircraftId' => 'aircraftId',
        'flightAlternativeAircraftId1' => 'alternativeAircraftId1',
        'flightAlternativeAircraftId2' => 'alternativeAircraftId2',
        'flightStatus' => 'status',
    );

    /**
     * @var array
     */
    public $legTableFieldsMap = array(
        'legId' => 'id',
        'legHeaderId' => 'headerId',
        'legFlightNumber' => 'flightNumber',
        'legAirportDepId' => 'apDepAirportId',
        'legDepTime' => 'apDepTime',
        'legAirportArrId' => 'apArrAirportId',
        'legArrTime' => 'apArrTime',
    );

    /**
     * @var array
     */
    public $apServicePreInvoiceTableFieldsMap = array(
        'preInvoiceId' => 'id',
        'preInvoiceHeaderId' => 'headerId',
        'preInvoiceLegId' => 'legId',
        'preInvoiceAirportId' => 'airportId',
        'preInvoiceTypeOfApServiceId' => 'typeOfApServiceId',
        'preInvoiceAgentId' => 'agentId',
        'preInvoicePrice' => 'price',
        'preInvoiceCurrency' => 'currency',
        'preInvoiceExchangeRate' => 'exchangeRate',
        'preInvoicePriceTotalExchangedToUsd' => 'priceUSD',
        'preInvoiceStatus' => 'status',
    );

    /**
     * @var array
     */
{'fraction_non_alphanumeric': 0.12976539589442815, 'fraction_numerical': 0.0016129032258064516, 'mean_word_length': 2.747802197802198, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 60, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6000744', 'n_tokens_mistral': 2164, 'n_tokens_neox': 2093, 'n_words': 346}