<commit_before><?php

namespace frenzelgmbh\cmcommunication\models;

use Yii;
use yii\behaviors\TimestampBehavior;

/**
 * This is the model class for table "communication".
 *
 * @property integer $id
 * @property string $mobile
 * @property string $phone
 * @property string $fax
 * @property string $email
 * @property integer $user_id
 * @property string $mod_table
 * @property integer $mod_id
 * @property string $system_key
 * @property string $system_name
 * @property integer $system_upate
 * @property integer $created_at
 * @property integer $updated_at
 * @property integer $deleted_at
 * @property integer $communication_type_id
 *
 * @property CommunicationType $communicationType
 */
class Communication extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%communication}}';
    }

    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            TimestampBehavior::className(),
        ];
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'mod_id', 'system_upate', 'created_at', 'updated_at', 'deleted_at', 'communication_type_id'], 'integer'],
            [['mobile', 'phone', 'fax', 'email'], 'string', 'max' => 200],<commit_msg>validate mail as email<commit_after><?php

namespace frenzelgmbh\cmcommunication\models;

use Yii;
use yii\behaviors\TimestampBehavior;

/**
 * This is the model class for table "communication".
 *
 * @property integer $id
 * @property string $mobile
 * @property string $phone
 * @property string $fax
 * @property string $email
 * @property integer $user_id
 * @property string $mod_table
 * @property integer $mod_id
 * @property string $system_key
 * @property string $system_name
 * @property integer $system_upate
 * @property integer $created_at
 * @property integer $updated_at
 * @property integer $deleted_at
 * @property integer $communication_type_id
 *
 * @property CommunicationType $communicationType
 */
class Communication extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%communication}}';
    }

    /**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            TimestampBehavior::className(),
        ];
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'mod_id', 'system_upate', 'created_at', 'updated_at', 'deleted_at', 'communication_type_id'], 'integer'],
            [['mobile', 'phone', 'fax'], 'string', 'max' => 200],
            [['email'],'email'],
{'fraction_non_alphanumeric': 0.13340765514678557, 'fraction_numerical': 0.002229654403567447, 'mean_word_length': 3.0787878787878786, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3592245', 'n_tokens_mistral': 802, 'n_tokens_neox': 773, 'n_words': 202}