Source of file OrmSchemamanagerRow.php

Size: 3,001 Bytes - Last Modified: 2016-05-18T03:08:27+02:00

buildproject/core/module_system/system/OrmSchemamanagerRow.php

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
<?php
/*"******************************************************************************************************
*   (c) 2007-2016 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
*-------------------------------------------------------------------------------------------------------*
*   $Id$                                        *
********************************************************************************************************/

namespace Kajona\System\System;


/**
 * Data-object used by the schema-manager internally.
 *
 * @package module_system
 * @author sidler@mulchprod.de
 * @since 4.6
 */
class OrmSchemamanagerRow  {

    /**
     * @var string
     */
    private $strName = "";

    /**
     * @var string
     */
    private $strDatatype = "";

    /**
     * @var bool
     */
    private $bitPrimaryKey = false;

    /**
     * @var bool
     */
    private $bitNull = true;

    /**
     * @var bool
     */
    private $bitIndex = false;

    /**
     * @param string $strName
     * @param string $strDatatype
     * @param bool $bitNull
     * @param bool $bitPrimaryKey
     * @param bool $bitIndex
     */
    function __construct($strName, $strDatatype, $bitNull = true, $bitPrimaryKey = false, $bitIndex = false) {
        $this->strDatatype = $strDatatype;
        $this->strName = $strName;
        $this->bitNull = $bitNull;
        $this->bitPrimaryKey = $bitPrimaryKey;
        $this->bitIndex = $bitIndex;
    }


    /**
     * @param string $strDatatype
     * @return void
     */
    public function setStrDatatype($strDatatype) {
        $this->strDatatype = $strDatatype;
    }

    /**
     * @return string
     */
    public function getStrDatatype() {
        return $this->strDatatype;
    }

    /**
     * @param string $strName
     * @return void
     */
    public function setStrName($strName) {
        $this->strName = $strName;
    }

    /**
     * @return string
     */
    public function getStrName() {
        return $this->strName;
    }

    /**
     * @param boolean $bitIndex
     * @return void
     */
    public function setBitIndex($bitIndex) {
        $this->bitIndex = $bitIndex;
    }

    /**
     * @return boolean
     */
    public function getBitIndex() {
        return $this->bitIndex;
    }

    /**
     * @param boolean $bitNull
     * @return void
     */
    public function setBitNull($bitNull) {
        $this->bitNull = $bitNull;
    }

    /**
     * @return boolean
     */
    public function getBitNull() {
        return $this->bitNull;
    }

    /**
     * @param boolean $bitPrimaryKey
     * @return void
     */
    public function setBitPrimaryKey($bitPrimaryKey) {
        $this->bitPrimaryKey = $bitPrimaryKey;
    }

    /**
     * @return boolean
     */
    public function getBitPrimaryKey() {
        return $this->bitPrimaryKey;
    }





}