donatj/mysql-schema

Object Hierarchy Representing MySQL Schema

dev-master 2017-09-29 02:28 UTC

This package is auto-updated.

Last update: 2024-05-07 05:08:23 UTC


README

Latest Stable Version License Scrutinizer Code Quality

Simple PHP MySQL Schema Model

Requirements

  • php: >=5.4.0

Installing

Install the latest version with:

composer require 'donatj/mysql-schema'

Documentation

Class: \donatj\MySqlSchema\Columns\AbstractColumn

Method: AbstractColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: AbstractColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: AbstractColumn->getComment

function getComment()
Returns:
  • string

Method: AbstractColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: AbstractColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: AbstractColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: AbstractColumn->getName

function getName()
Returns:
  • string

Method: AbstractColumn->setName

function setName($name)
Parameters:
  • string $name

Method: AbstractColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: AbstractColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: AbstractColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: AbstractColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Class: \donatj\MySqlSchema\Columns\Interfaces\CharsetColumnInterface

Method: CharsetColumnInterface->getCharset

function getCharset()
Returns:
  • null

Method: CharsetColumnInterface->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: CharsetColumnInterface->getCollation

function getCollation()
Returns:
  • null

Method: CharsetColumnInterface->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Class: \donatj\MySqlSchema\Columns\Interfaces\OptionalLengthInterface

Method: OptionalLengthInterface->getLength

function getLength()
Returns:
  • int | null

Method: OptionalLengthInterface->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Class: \donatj\MySqlSchema\Columns\Interfaces\RequiredLengthInterface

Method: RequiredLengthInterface->getLength

function getLength()
Returns:
  • int

Method: RequiredLengthInterface->setLength

function setLength($length)
Parameters:
  • int $length

Class: \donatj\MySqlSchema\Columns\Interfaces\SignedInterface

Method: SignedInterface->isSigned

function isSigned()
Returns:
  • boolean

Method: SignedInterface->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\AbstractFractionColumn

Method: AbstractFractionColumn->__construct

function __construct($name, $decimals)
Parameters:
  • string $name
  • int $decimals

Method: AbstractFractionColumn->getDecimals

function getDecimals()
Returns:
  • int

Method: AbstractFractionColumn->setDecimals

function setDecimals($decimals)
Parameters:
  • int $decimals

Method: AbstractFractionColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: AbstractFractionColumn->getComment

function getComment()
Returns:
  • string

Method: AbstractFractionColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: AbstractFractionColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: AbstractFractionColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: AbstractFractionColumn->getName

function getName()
Returns:
  • string

Method: AbstractFractionColumn->setName

function setName($name)
Parameters:
  • string $name

Method: AbstractFractionColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: AbstractFractionColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: AbstractFractionColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: AbstractFractionColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: AbstractFractionColumn->getLength

function getLength()
Returns:
  • int | null

Method: AbstractFractionColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: AbstractFractionColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: AbstractFractionColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn

Method: AbstractIntegerColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: AbstractIntegerColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: AbstractIntegerColumn->getComment

function getComment()
Returns:
  • string

Method: AbstractIntegerColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: AbstractIntegerColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: AbstractIntegerColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: AbstractIntegerColumn->getName

function getName()
Returns:
  • string

Method: AbstractIntegerColumn->setName

function setName($name)
Parameters:
  • string $name

Method: AbstractIntegerColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: AbstractIntegerColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: AbstractIntegerColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: AbstractIntegerColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: AbstractIntegerColumn->getLength

function getLength()
Returns:
  • int | null

Method: AbstractIntegerColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: AbstractIntegerColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: AbstractIntegerColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\AbstractNumberColumn

Method: AbstractNumberColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: AbstractNumberColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: AbstractNumberColumn->getComment

function getComment()
Returns:
  • string

Method: AbstractNumberColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: AbstractNumberColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: AbstractNumberColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: AbstractNumberColumn->getName

function getName()
Returns:
  • string

Method: AbstractNumberColumn->setName

function setName($name)
Parameters:
  • string $name

Method: AbstractNumberColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: AbstractNumberColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: AbstractNumberColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: AbstractNumberColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: AbstractNumberColumn->getLength

function getLength()
Returns:
  • int | null

Method: AbstractNumberColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: AbstractNumberColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: AbstractNumberColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\FixedPoint\DecimalColumn

Method: DecimalColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: DecimalColumn->__construct

function __construct($name, $decimals)
Parameters:
  • string $name
  • int $decimals

Method: DecimalColumn->getDecimals

function getDecimals()
Returns:
  • int

Method: DecimalColumn->setDecimals

function setDecimals($decimals)
Parameters:
  • int $decimals

Method: DecimalColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: DecimalColumn->getComment

function getComment()
Returns:
  • string

Method: DecimalColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: DecimalColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: DecimalColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: DecimalColumn->getName

function getName()
Returns:
  • string

Method: DecimalColumn->setName

function setName($name)
Parameters:
  • string $name

Method: DecimalColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: DecimalColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: DecimalColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: DecimalColumn->getLength

function getLength()
Returns:
  • int | null

Method: DecimalColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: DecimalColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: DecimalColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\FloatingPoint\DoubleColumn

Method: DoubleColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: DoubleColumn->__construct

function __construct($name, $decimals)
Parameters:
  • string $name
  • int $decimals

Method: DoubleColumn->getDecimals

function getDecimals()
Returns:
  • int

Method: DoubleColumn->setDecimals

function setDecimals($decimals)
Parameters:
  • int $decimals

Method: DoubleColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: DoubleColumn->getComment

function getComment()
Returns:
  • string

Method: DoubleColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: DoubleColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: DoubleColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: DoubleColumn->getName

function getName()
Returns:
  • string

Method: DoubleColumn->setName

function setName($name)
Parameters:
  • string $name

Method: DoubleColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: DoubleColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: DoubleColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: DoubleColumn->getLength

function getLength()
Returns:
  • int | null

Method: DoubleColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: DoubleColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: DoubleColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\FloatingPoint\FloatColumn

Method: FloatColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: FloatColumn->__construct

function __construct($name, $decimals)
Parameters:
  • string $name
  • int $decimals

Method: FloatColumn->getDecimals

function getDecimals()
Returns:
  • int

Method: FloatColumn->setDecimals

function setDecimals($decimals)
Parameters:
  • int $decimals

Method: FloatColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: FloatColumn->getComment

function getComment()
Returns:
  • string

Method: FloatColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: FloatColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: FloatColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: FloatColumn->getName

function getName()
Returns:
  • string

Method: FloatColumn->setName

function setName($name)
Parameters:
  • string $name

Method: FloatColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: FloatColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: FloatColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: FloatColumn->getLength

function getLength()
Returns:
  • int | null

Method: FloatColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: FloatColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: FloatColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\Integers\BigIntColumn

Method: BigIntColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: BigIntColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: BigIntColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: BigIntColumn->getComment

function getComment()
Returns:
  • string

Method: BigIntColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: BigIntColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: BigIntColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: BigIntColumn->getName

function getName()
Returns:
  • string

Method: BigIntColumn->setName

function setName($name)
Parameters:
  • string $name

Method: BigIntColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: BigIntColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: BigIntColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: BigIntColumn->getLength

function getLength()
Returns:
  • int | null

Method: BigIntColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: BigIntColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: BigIntColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\Integers\IntColumn

Method: IntColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: IntColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: IntColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: IntColumn->getComment

function getComment()
Returns:
  • string

Method: IntColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: IntColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: IntColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: IntColumn->getName

function getName()
Returns:
  • string

Method: IntColumn->setName

function setName($name)
Parameters:
  • string $name

Method: IntColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: IntColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: IntColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: IntColumn->getLength

function getLength()
Returns:
  • int | null

Method: IntColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: IntColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: IntColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\Integers\MediumIntColumn

Method: MediumIntColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: MediumIntColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: MediumIntColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: MediumIntColumn->getComment

function getComment()
Returns:
  • string

Method: MediumIntColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: MediumIntColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: MediumIntColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: MediumIntColumn->getName

function getName()
Returns:
  • string

Method: MediumIntColumn->setName

function setName($name)
Parameters:
  • string $name

Method: MediumIntColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: MediumIntColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: MediumIntColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: MediumIntColumn->getLength

function getLength()
Returns:
  • int | null

Method: MediumIntColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: MediumIntColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: MediumIntColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\Integers\SmallIntColumn

Method: SmallIntColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: SmallIntColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: SmallIntColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: SmallIntColumn->getComment

function getComment()
Returns:
  • string

Method: SmallIntColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: SmallIntColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: SmallIntColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: SmallIntColumn->getName

function getName()
Returns:
  • string

Method: SmallIntColumn->setName

function setName($name)
Parameters:
  • string $name

Method: SmallIntColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: SmallIntColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: SmallIntColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: SmallIntColumn->getLength

function getLength()
Returns:
  • int | null

Method: SmallIntColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: SmallIntColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: SmallIntColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\Numeric\Integers\TinyIntColumn

Method: TinyIntColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: TinyIntColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: TinyIntColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: TinyIntColumn->getComment

function getComment()
Returns:
  • string

Method: TinyIntColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: TinyIntColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: TinyIntColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: TinyIntColumn->getName

function getName()
Returns:
  • string

Method: TinyIntColumn->setName

function setName($name)
Parameters:
  • string $name

Method: TinyIntColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: TinyIntColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: TinyIntColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: TinyIntColumn->getLength

function getLength()
Returns:
  • int | null

Method: TinyIntColumn->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Method: TinyIntColumn->isSigned

function isSigned()
Returns:
  • boolean

Method: TinyIntColumn->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Columns\String\AbstractCharacterColumn

Method: AbstractCharacterColumn->__construct

function __construct($name, $length)
Parameters:
  • string $name
  • int $length

Method: AbstractCharacterColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: AbstractCharacterColumn->getComment

function getComment()
Returns:
  • string

Method: AbstractCharacterColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: AbstractCharacterColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: AbstractCharacterColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: AbstractCharacterColumn->getName

function getName()
Returns:
  • string

Method: AbstractCharacterColumn->setName

function setName($name)
Parameters:
  • string $name

Method: AbstractCharacterColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: AbstractCharacterColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: AbstractCharacterColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: AbstractCharacterColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: AbstractCharacterColumn->getCharset

function getCharset()
Returns:
  • null

Method: AbstractCharacterColumn->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: AbstractCharacterColumn->getCollation

function getCollation()
Returns:
  • null

Method: AbstractCharacterColumn->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Method: AbstractCharacterColumn->getLength

function getLength()
Returns:
  • int

Method: AbstractCharacterColumn->setLength

function setLength($length)
Parameters:
  • int $length

Class: \donatj\MySqlSchema\Columns\String\AbstractStringColumn

Method: AbstractStringColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: AbstractStringColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: AbstractStringColumn->getComment

function getComment()
Returns:
  • string

Method: AbstractStringColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: AbstractStringColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: AbstractStringColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: AbstractStringColumn->getName

function getName()
Returns:
  • string

Method: AbstractStringColumn->setName

function setName($name)
Parameters:
  • string $name

Method: AbstractStringColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: AbstractStringColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: AbstractStringColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: AbstractStringColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: AbstractStringColumn->getCharset

function getCharset()
Returns:
  • null

Method: AbstractStringColumn->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: AbstractStringColumn->getCollation

function getCollation()
Returns:
  • null

Method: AbstractStringColumn->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Class: \donatj\MySqlSchema\Columns\String\AbstractTextColumn

Method: AbstractTextColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: AbstractTextColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: AbstractTextColumn->getComment

function getComment()
Returns:
  • string

Method: AbstractTextColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: AbstractTextColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: AbstractTextColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: AbstractTextColumn->getName

function getName()
Returns:
  • string

Method: AbstractTextColumn->setName

function setName($name)
Parameters:
  • string $name

Method: AbstractTextColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: AbstractTextColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: AbstractTextColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: AbstractTextColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: AbstractTextColumn->getCharset

function getCharset()
Returns:
  • null

Method: AbstractTextColumn->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: AbstractTextColumn->getCollation

function getCollation()
Returns:
  • null

Method: AbstractTextColumn->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Class: \donatj\MySqlSchema\Columns\String\Character\CharColumn

Method: CharColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: CharColumn->__construct

function __construct($name, $length)
Parameters:
  • string $name
  • int $length

Method: CharColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: CharColumn->getComment

function getComment()
Returns:
  • string

Method: CharColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: CharColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: CharColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: CharColumn->getName

function getName()
Returns:
  • string

Method: CharColumn->setName

function setName($name)
Parameters:
  • string $name

Method: CharColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: CharColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: CharColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: CharColumn->getCharset

function getCharset()
Returns:
  • null

Method: CharColumn->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: CharColumn->getCollation

function getCollation()
Returns:
  • null

Method: CharColumn->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Method: CharColumn->getLength

function getLength()
Returns:
  • int

Method: CharColumn->setLength

function setLength($length)
Parameters:
  • int $length

Class: \donatj\MySqlSchema\Columns\String\Character\VarcharColumn

Method: VarcharColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: VarcharColumn->__construct

function __construct($name, $length)
Parameters:
  • string $name
  • int $length

Method: VarcharColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: VarcharColumn->getComment

function getComment()
Returns:
  • string

Method: VarcharColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: VarcharColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: VarcharColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: VarcharColumn->getName

function getName()
Returns:
  • string

Method: VarcharColumn->setName

function setName($name)
Parameters:
  • string $name

Method: VarcharColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: VarcharColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: VarcharColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: VarcharColumn->getCharset

function getCharset()
Returns:
  • null

Method: VarcharColumn->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: VarcharColumn->getCollation

function getCollation()
Returns:
  • null

Method: VarcharColumn->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Method: VarcharColumn->getLength

function getLength()
Returns:
  • int

Method: VarcharColumn->setLength

function setLength($length)
Parameters:
  • int $length

Class: \donatj\MySqlSchema\Columns\String\Text\LongTextColumn

Method: LongTextColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: LongTextColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: LongTextColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: LongTextColumn->getComment

function getComment()
Returns:
  • string

Method: LongTextColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: LongTextColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: LongTextColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: LongTextColumn->getName

function getName()
Returns:
  • string

Method: LongTextColumn->setName

function setName($name)
Parameters:
  • string $name

Method: LongTextColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: LongTextColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: LongTextColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: LongTextColumn->getCharset

function getCharset()
Returns:
  • null

Method: LongTextColumn->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: LongTextColumn->getCollation

function getCollation()
Returns:
  • null

Method: LongTextColumn->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Class: \donatj\MySqlSchema\Columns\String\Text\MediumTextColumn

Method: MediumTextColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: MediumTextColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: MediumTextColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: MediumTextColumn->getComment

function getComment()
Returns:
  • string

Method: MediumTextColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: MediumTextColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: MediumTextColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: MediumTextColumn->getName

function getName()
Returns:
  • string

Method: MediumTextColumn->setName

function setName($name)
Parameters:
  • string $name

Method: MediumTextColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: MediumTextColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: MediumTextColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: MediumTextColumn->getCharset

function getCharset()
Returns:
  • null

Method: MediumTextColumn->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: MediumTextColumn->getCollation

function getCollation()
Returns:
  • null

Method: MediumTextColumn->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Class: \donatj\MySqlSchema\Columns\String\Text\TextColumn

Method: TextColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: TextColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: TextColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: TextColumn->getComment

function getComment()
Returns:
  • string

Method: TextColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: TextColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: TextColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: TextColumn->getName

function getName()
Returns:
  • string

Method: TextColumn->setName

function setName($name)
Parameters:
  • string $name

Method: TextColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: TextColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: TextColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: TextColumn->getCharset

function getCharset()
Returns:
  • null

Method: TextColumn->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: TextColumn->getCollation

function getCollation()
Returns:
  • null

Method: TextColumn->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Class: \donatj\MySqlSchema\Columns\String\Text\TinyTextColumn

Method: TinyTextColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: TinyTextColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: TinyTextColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: TinyTextColumn->getComment

function getComment()
Returns:
  • string

Method: TinyTextColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: TinyTextColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: TinyTextColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: TinyTextColumn->getName

function getName()
Returns:
  • string

Method: TinyTextColumn->setName

function setName($name)
Parameters:
  • string $name

Method: TinyTextColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: TinyTextColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: TinyTextColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: TinyTextColumn->getCharset

function getCharset()
Returns:
  • null

Method: TinyTextColumn->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: TinyTextColumn->getCollation

function getCollation()
Returns:
  • null

Method: TinyTextColumn->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Class: \donatj\MySqlSchema\Columns\Temporal\AbstractTemporalColumn

Method: AbstractTemporalColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: AbstractTemporalColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: AbstractTemporalColumn->getComment

function getComment()
Returns:
  • string

Method: AbstractTemporalColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: AbstractTemporalColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: AbstractTemporalColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: AbstractTemporalColumn->getName

function getName()
Returns:
  • string

Method: AbstractTemporalColumn->setName

function setName($name)
Parameters:
  • string $name

Method: AbstractTemporalColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: AbstractTemporalColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: AbstractTemporalColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: AbstractTemporalColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Class: \donatj\MySqlSchema\Columns\Temporal\DateTimeColumn

Method: DateTimeColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: DateTimeColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: DateTimeColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: DateTimeColumn->getComment

function getComment()
Returns:
  • string

Method: DateTimeColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: DateTimeColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: DateTimeColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: DateTimeColumn->getName

function getName()
Returns:
  • string

Method: DateTimeColumn->setName

function setName($name)
Parameters:
  • string $name

Method: DateTimeColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: DateTimeColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: DateTimeColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Class: \donatj\MySqlSchema\Columns\Temporal\TimeColumn

Method: TimeColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: TimeColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: TimeColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: TimeColumn->getComment

function getComment()
Returns:
  • string

Method: TimeColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: TimeColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: TimeColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: TimeColumn->getName

function getName()
Returns:
  • string

Method: TimeColumn->setName

function setName($name)
Parameters:
  • string $name

Method: TimeColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: TimeColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: TimeColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Class: \donatj\MySqlSchema\Columns\Temporal\TimestampColumn

Method: TimestampColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: TimestampColumn->__construct

function __construct($name)
Parameters:
  • string $name

Method: TimestampColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: TimestampColumn->getComment

function getComment()
Returns:
  • string

Method: TimestampColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: TimestampColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: TimestampColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: TimestampColumn->getName

function getName()
Returns:
  • string

Method: TimestampColumn->setName

function setName($name)
Parameters:
  • string $name

Method: TimestampColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: TimestampColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: TimestampColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Class: \donatj\MySqlSchema\Columns\Temporal\YearColumn

Method: YearColumn->__construct

function __construct($name [, $length = 4])
Parameters:
  • string $name
  • int $length - 2 or 4

Method: YearColumn->setLength

function setLength($length)
Parameters:
  • int $length - 2 or 4

Method: YearColumn->getTypeName

function getTypeName()
Returns:
  • string

Method: YearColumn->getTables

function getTables()
Returns:
  • \donatj\MySqlSchema\Table[]

Method: YearColumn->getComment

function getComment()
Returns:
  • string

Method: YearColumn->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: YearColumn->isNullable

function isNullable()
Returns:
  • boolean

Method: YearColumn->setNullable

function setNullable($nullable)
Parameters:
  • boolean $nullable

Method: YearColumn->getName

function getName()
Returns:
  • string

Method: YearColumn->setName

function setName($name)
Parameters:
  • string $name

Method: YearColumn->toString

function toString($table)
Parameters:
  • \donatj\MySqlSchema\Table $table
Returns:
  • string

Method: YearColumn->getDefault

function getDefault()
Returns:
  • mixed

Method: YearColumn->setDefault

function setDefault($default)
Parameters:
  • mixed $default

Method: YearColumn->getLength

function getLength()
Returns:
  • int

Class: \donatj\MySqlSchema\Columns\Traits\OptionalLengthTrait

Method: OptionalLengthTrait->getLength

function getLength()
Returns:
  • int | null

Method: OptionalLengthTrait->setLength

function setLength([ $length = null])
Parameters:
  • int | null $length

Class: \donatj\MySqlSchema\Columns\Traits\RequiredLengthTrait

Method: RequiredLengthTrait->getLength

function getLength()
Returns:
  • int

Method: RequiredLengthTrait->setLength

function setLength($length)
Parameters:
  • int $length

Class: \donatj\MySqlSchema\Columns\Traits\SignedTrait

Method: SignedTrait->isSigned

function isSigned()
Returns:
  • boolean

Method: SignedTrait->setSigned

function setSigned($signed)
Parameters:
  • boolean $signed

Class: \donatj\MySqlSchema\Table

Method: Table->__construct

function __construct($name)

Table constructor.

Parameters:
  • string $name

Method: Table->getColumns

function getColumns()
Returns:
  • \donatj\MySqlSchema\Columns\AbstractColumn[]

Method: Table->getComment

function getComment()
Returns:
  • string

Method: Table->setComment

function setComment($comment)
Parameters:
  • string $comment

Method: Table->getEngine

function getEngine()
Returns:
  • null

Method: Table->setEngine

function setEngine($engine)
Parameters:
  • null $engine

Method: Table->getName

function getName()
Returns:
  • string

Method: Table->setName

function setName($name)
Parameters:
  • string $name

Undocumented Method: Table->addAutoIncrement($column)

Method: Table->isAutoIncrement

function isAutoIncrement($column)
Parameters:
  • \donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn $column
Returns:
  • bool

Undocumented Method: Table->addPrimaryKey($column)

Method: Table->isPrimaryKey

function isPrimaryKey($column)
Parameters:
  • \donatj\MySqlSchema\Columns\AbstractColumn $column
Returns:
  • bool

Undocumented Method: Table->addKeyColumn($keyName, $column [, $index = null [, $type = 'NORMAL' [, $method = '']]])

Undocumented Method: Table->addForeignKey($local, $remote)

Undocumented Method: Table->addColumn($column)

Undocumented Method: Table->toString()

Method: Table->getCharset

function getCharset()
Returns:
  • null

Method: Table->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: Table->getCollation

function getCollation()
Returns:
  • null

Method: Table->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Class: \donatj\MySqlSchema\Traits\CharsetAndCollationTrait

Method: CharsetAndCollationTrait->getCharset

function getCharset()
Returns:
  • null

Method: CharsetAndCollationTrait->setCharset

function setCharset($charset)
Parameters:
  • null $charset

Method: CharsetAndCollationTrait->getCollation

function getCollation()
Returns:
  • null

Method: CharsetAndCollationTrait->setCollation

function setCollation($collation)
Parameters:
  • null $collation

Class: \donatj\MySqlSchema\Traits\EscapeTrait