vistart/yii2-models

View on GitHub
models/BaseRedisMetaModel.php

Summary

Maintainability
A
30 mins
Test Coverage
<?php

/**
 *  _   __ __ _____ _____ ___  ____  _____
 * | | / // // ___//_  _//   ||  __||_   _|
 * | |/ // /(__  )  / / / /| || |     | |
 * |___//_//____/  /_/ /_/ |_||_|     |_|
 * @link https://vistart.name/
 * @copyright Copyright (c) 2016 vistart
 * @license https://vistart.name/license/
 */

namespace vistart\Models\models;

use vistart\Models\traits\MetaTrait;

/**
 * Description of BaseRedisMetaModel
 *
 * @version 2.0
 * @author vistart <i@vistart.name>
 */
abstract class BaseRedisMetaModel extends BaseRedisBlameableModel
{
    use MetaTrait;

    public $idAttribute = 'key';
    public $idPreassigned = true;
    public $idAttributeLength = 255;
    public $createdAtAttribute = false;
    public $updatedAtAttribute = false;
    public $enableIP = false;
    public $contentAttribute = 'value';
    public $updatedByAttribute = false;
    public $confirmationAttribute = false;

}