donatj / mysql-schema
Object Hierarchy Representing MySQL Schema
Fund package maintenance!
www.paypal.me/donatj/15
Ko Fi
donatj
Requires
- php: >=5.4.0
Requires (Dev)
- donatj/drop: *
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-11-15 18:31:54 UTC
README
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
Returns:
- void
Method: AbstractColumn->isNullable
function isNullable()
Returns:
- bool
Method: AbstractColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: AbstractColumn->getName
function getName()
Returns:
- string
Method: AbstractColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: AbstractColumn->toString
function toString(\donatj\MySqlSchema\Table $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
Returns:
- void
Class: donatj\MySqlSchema\Columns\Interfaces\CharsetColumnInterface
Method: CharsetColumnInterface->getCharset
function getCharset()
Returns:
- null | string
Method: CharsetColumnInterface->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: CharsetColumnInterface->getCollation
function getCollation()
Returns:
- null | string
Method: CharsetColumnInterface->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
Class: donatj\MySqlSchema\Columns\Interfaces\DecimalPlacesInterface
Method: DecimalPlacesInterface->getDecimalPlaces
function getDecimalPlaces()
Returns:
- int
Method: DecimalPlacesInterface->setDecimalPlaces
function setDecimalPlaces($decimalPlaces)
Parameters:
- int
$decimalPlaces
Returns:
- void
Class: donatj\MySqlSchema\Columns\Interfaces\MaxDigitsInterface
Method: MaxDigitsInterface->getMaxDigits
function getMaxDigits()
Returns:
- int
Method: MaxDigitsInterface->setMaxDigits
function setMaxDigits($maxDigits)
Parameters:
- int
$maxDigits
Returns:
- void
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
Returns:
- void
Class: donatj\MySqlSchema\Columns\Interfaces\PrecisionInterface
Method: PrecisionInterface->getPrecision
function getPrecision()
Returns:
- int
Method: PrecisionInterface->setPrecision
function setPrecision($precision)
Parameters:
- int
$precision
Returns:
- void
Class: donatj\MySqlSchema\Columns\Interfaces\RequiredLengthInterface
Method: RequiredLengthInterface->getLength
function getLength()
Returns:
- int
Method: RequiredLengthInterface->setLength
function setLength($length)
Parameters:
- int
$length
Returns:
- void
Class: donatj\MySqlSchema\Columns\Interfaces\SignedInterface
Method: SignedInterface->isSigned
function isSigned()
Returns:
- bool
Method: SignedInterface->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Returns:
- void
Class: donatj\MySqlSchema\Columns\Json\JsonColumn
Method: JsonColumn->getTypeName
function getTypeName() : string
Returns:
- string
Method: JsonColumn->__construct
function __construct($name)
Parameters:
- string
$name
Method: JsonColumn->getTables
function getTables()
Returns:
- \donatj\MySqlSchema\Table[]
Method: JsonColumn->getComment
function getComment()
Returns:
- string
Method: JsonColumn->setComment
function setComment($comment)
Parameters:
- string
$comment
Returns:
- void
Method: JsonColumn->isNullable
function isNullable()
Returns:
- bool
Method: JsonColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: JsonColumn->getName
function getName()
Returns:
- string
Method: JsonColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: JsonColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: JsonColumn->getDefault
function getDefault()
Returns:
- mixed
Method: JsonColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Class: donatj\MySqlSchema\Columns\Numeric\AbstractFloatingColumn
Method: AbstractFloatingColumn->__construct
function __construct($name, $precision)
Parameters:
- string
$name
- int
$precision
Method: AbstractFloatingColumn->getPrecision
function getPrecision()
Returns:
- int
Method: AbstractFloatingColumn->setPrecision
function setPrecision($precision)
Parameters:
- int
$precision
Returns:
- void
Method: AbstractFloatingColumn->getTables
function getTables()
Returns:
- \donatj\MySqlSchema\Table[]
Method: AbstractFloatingColumn->getComment
function getComment()
Returns:
- string
Method: AbstractFloatingColumn->setComment
function setComment($comment)
Parameters:
- string
$comment
Returns:
- void
Method: AbstractFloatingColumn->isNullable
function isNullable()
Returns:
- bool
Method: AbstractFloatingColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: AbstractFloatingColumn->getName
function getName()
Returns:
- string
Method: AbstractFloatingColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: AbstractFloatingColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: AbstractFloatingColumn->getTypeName
function getTypeName()
Returns:
- string
Method: AbstractFloatingColumn->getDefault
function getDefault()
Returns:
- mixed
Method: AbstractFloatingColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: AbstractFloatingColumn->isSigned
function isSigned()
Returns:
- bool
Method: AbstractFloatingColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$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
Returns:
- void
Method: AbstractIntegerColumn->isNullable
function isNullable()
Returns:
- bool
Method: AbstractIntegerColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: AbstractIntegerColumn->getName
function getName()
Returns:
- string
Method: AbstractIntegerColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: AbstractIntegerColumn->toString
function toString(\donatj\MySqlSchema\Table $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
Returns:
- void
Method: AbstractIntegerColumn->isSigned
function isSigned()
Returns:
- bool
Method: AbstractIntegerColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Method: AbstractIntegerColumn->getLength
function getLength()
Returns:
- int | null
Method: AbstractIntegerColumn->setLength
function setLength([ $length = null])
Parameters:
- int | null
$length
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
Returns:
- void
Method: AbstractNumberColumn->isNullable
function isNullable()
Returns:
- bool
Method: AbstractNumberColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: AbstractNumberColumn->getName
function getName()
Returns:
- string
Method: AbstractNumberColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: AbstractNumberColumn->toString
function toString(\donatj\MySqlSchema\Table $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
Returns:
- void
Method: AbstractNumberColumn->isSigned
function isSigned()
Returns:
- bool
Method: AbstractNumberColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Class: donatj\MySqlSchema\Columns\Numeric\FixedPoint\DecimalColumn
Method: DecimalColumn->__construct
function __construct($name, $maxDigits, $decimalPlaces)
Parameters:
- string
$name
- int
$maxDigits
- int
$decimalPlaces
Method: DecimalColumn->getTypeName
function getTypeName()
Returns:
- string
Method: DecimalColumn->getMaxDigits
function getMaxDigits()
Returns:
- int
Method: DecimalColumn->setMaxDigits
function setMaxDigits($maxDigits)
Parameters:
- int
$maxDigits
Returns:
- void
Method: DecimalColumn->getDecimalPlaces
function getDecimalPlaces()
Returns:
- int
Method: DecimalColumn->setDecimalPlaces
function setDecimalPlaces($decimalPlaces)
Parameters:
- int
$decimalPlaces
Returns:
- void
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
Returns:
- void
Method: DecimalColumn->isNullable
function isNullable()
Returns:
- bool
Method: DecimalColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: DecimalColumn->getName
function getName()
Returns:
- string
Method: DecimalColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: DecimalColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: DecimalColumn->getDefault
function getDefault()
Returns:
- mixed
Method: DecimalColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: DecimalColumn->isSigned
function isSigned()
Returns:
- bool
Method: DecimalColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Class: donatj\MySqlSchema\Columns\Numeric\FloatingPoint\DoubleColumn
Method: DoubleColumn->getTypeName
function getTypeName()
Returns:
- string
Method: DoubleColumn->__construct
function __construct($name, $precision)
Parameters:
- string
$name
- int
$precision
Method: DoubleColumn->getPrecision
function getPrecision()
Returns:
- int
Method: DoubleColumn->setPrecision
function setPrecision($precision)
Parameters:
- int
$precision
Returns:
- void
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
Returns:
- void
Method: DoubleColumn->isNullable
function isNullable()
Returns:
- bool
Method: DoubleColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: DoubleColumn->getName
function getName()
Returns:
- string
Method: DoubleColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: DoubleColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: DoubleColumn->getDefault
function getDefault()
Returns:
- mixed
Method: DoubleColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: DoubleColumn->isSigned
function isSigned()
Returns:
- bool
Method: DoubleColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Class: donatj\MySqlSchema\Columns\Numeric\FloatingPoint\FloatColumn
Method: FloatColumn->getTypeName
function getTypeName()
Returns:
- string
Method: FloatColumn->__construct
function __construct($name, $precision)
Parameters:
- string
$name
- int
$precision
Method: FloatColumn->getPrecision
function getPrecision()
Returns:
- int
Method: FloatColumn->setPrecision
function setPrecision($precision)
Parameters:
- int
$precision
Returns:
- void
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
Returns:
- void
Method: FloatColumn->isNullable
function isNullable()
Returns:
- bool
Method: FloatColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: FloatColumn->getName
function getName()
Returns:
- string
Method: FloatColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: FloatColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: FloatColumn->getDefault
function getDefault()
Returns:
- mixed
Method: FloatColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: FloatColumn->isSigned
function isSigned()
Returns:
- bool
Method: FloatColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$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
Returns:
- void
Method: BigIntColumn->isNullable
function isNullable()
Returns:
- bool
Method: BigIntColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: BigIntColumn->getName
function getName()
Returns:
- string
Method: BigIntColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: BigIntColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: BigIntColumn->getDefault
function getDefault()
Returns:
- mixed
Method: BigIntColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: BigIntColumn->isSigned
function isSigned()
Returns:
- bool
Method: BigIntColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Method: BigIntColumn->getLength
function getLength()
Returns:
- int | null
Method: BigIntColumn->setLength
function setLength([ $length = null])
Parameters:
- int | null
$length
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
Returns:
- void
Method: IntColumn->isNullable
function isNullable()
Returns:
- bool
Method: IntColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: IntColumn->getName
function getName()
Returns:
- string
Method: IntColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: IntColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: IntColumn->getDefault
function getDefault()
Returns:
- mixed
Method: IntColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: IntColumn->isSigned
function isSigned()
Returns:
- bool
Method: IntColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Method: IntColumn->getLength
function getLength()
Returns:
- int | null
Method: IntColumn->setLength
function setLength([ $length = null])
Parameters:
- int | null
$length
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
Returns:
- void
Method: MediumIntColumn->isNullable
function isNullable()
Returns:
- bool
Method: MediumIntColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: MediumIntColumn->getName
function getName()
Returns:
- string
Method: MediumIntColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: MediumIntColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: MediumIntColumn->getDefault
function getDefault()
Returns:
- mixed
Method: MediumIntColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: MediumIntColumn->isSigned
function isSigned()
Returns:
- bool
Method: MediumIntColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Method: MediumIntColumn->getLength
function getLength()
Returns:
- int | null
Method: MediumIntColumn->setLength
function setLength([ $length = null])
Parameters:
- int | null
$length
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
Returns:
- void
Method: SmallIntColumn->isNullable
function isNullable()
Returns:
- bool
Method: SmallIntColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: SmallIntColumn->getName
function getName()
Returns:
- string
Method: SmallIntColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: SmallIntColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: SmallIntColumn->getDefault
function getDefault()
Returns:
- mixed
Method: SmallIntColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: SmallIntColumn->isSigned
function isSigned()
Returns:
- bool
Method: SmallIntColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Method: SmallIntColumn->getLength
function getLength()
Returns:
- int | null
Method: SmallIntColumn->setLength
function setLength([ $length = null])
Parameters:
- int | null
$length
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
Returns:
- void
Method: TinyIntColumn->isNullable
function isNullable()
Returns:
- bool
Method: TinyIntColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: TinyIntColumn->getName
function getName()
Returns:
- string
Method: TinyIntColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: TinyIntColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: TinyIntColumn->getDefault
function getDefault()
Returns:
- mixed
Method: TinyIntColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: TinyIntColumn->isSigned
function isSigned()
Returns:
- bool
Method: TinyIntColumn->setSigned
function setSigned($signed)
Parameters:
- bool
$signed
Method: TinyIntColumn->getLength
function getLength()
Returns:
- int | null
Method: TinyIntColumn->setLength
function setLength([ $length = null])
Parameters:
- int | null
$length
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
Returns:
- void
Method: AbstractCharacterColumn->isNullable
function isNullable()
Returns:
- bool
Method: AbstractCharacterColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: AbstractCharacterColumn->getName
function getName()
Returns:
- string
Method: AbstractCharacterColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: AbstractCharacterColumn->toString
function toString(\donatj\MySqlSchema\Table $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
Returns:
- void
Method: AbstractCharacterColumn->getCharset
function getCharset()
Returns:
- null | string
Method: AbstractCharacterColumn->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: AbstractCharacterColumn->getCollation
function getCollation()
Returns:
- null | string
Method: AbstractCharacterColumn->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
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
Returns:
- void
Method: AbstractStringColumn->isNullable
function isNullable()
Returns:
- bool
Method: AbstractStringColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: AbstractStringColumn->getName
function getName()
Returns:
- string
Method: AbstractStringColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: AbstractStringColumn->toString
function toString(\donatj\MySqlSchema\Table $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
Returns:
- void
Method: AbstractStringColumn->getCharset
function getCharset()
Returns:
- null | string
Method: AbstractStringColumn->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: AbstractStringColumn->getCollation
function getCollation()
Returns:
- null | string
Method: AbstractStringColumn->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
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
Returns:
- void
Method: AbstractTextColumn->isNullable
function isNullable()
Returns:
- bool
Method: AbstractTextColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: AbstractTextColumn->getName
function getName()
Returns:
- string
Method: AbstractTextColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: AbstractTextColumn->toString
function toString(\donatj\MySqlSchema\Table $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
Returns:
- void
Method: AbstractTextColumn->getCharset
function getCharset()
Returns:
- null | string
Method: AbstractTextColumn->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: AbstractTextColumn->getCollation
function getCollation()
Returns:
- null | string
Method: AbstractTextColumn->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
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
Returns:
- void
Method: CharColumn->isNullable
function isNullable()
Returns:
- bool
Method: CharColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: CharColumn->getName
function getName()
Returns:
- string
Method: CharColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: CharColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: CharColumn->getDefault
function getDefault()
Returns:
- mixed
Method: CharColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: CharColumn->getCharset
function getCharset()
Returns:
- null | string
Method: CharColumn->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: CharColumn->getCollation
function getCollation()
Returns:
- null | string
Method: CharColumn->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
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
Returns:
- void
Method: VarcharColumn->isNullable
function isNullable()
Returns:
- bool
Method: VarcharColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: VarcharColumn->getName
function getName()
Returns:
- string
Method: VarcharColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: VarcharColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: VarcharColumn->getDefault
function getDefault()
Returns:
- mixed
Method: VarcharColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: VarcharColumn->getCharset
function getCharset()
Returns:
- null | string
Method: VarcharColumn->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: VarcharColumn->getCollation
function getCollation()
Returns:
- null | string
Method: VarcharColumn->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
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
Returns:
- void
Method: LongTextColumn->isNullable
function isNullable()
Returns:
- bool
Method: LongTextColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: LongTextColumn->getName
function getName()
Returns:
- string
Method: LongTextColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: LongTextColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: LongTextColumn->getDefault
function getDefault()
Returns:
- mixed
Method: LongTextColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: LongTextColumn->getCharset
function getCharset()
Returns:
- null | string
Method: LongTextColumn->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: LongTextColumn->getCollation
function getCollation()
Returns:
- null | string
Method: LongTextColumn->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
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
Returns:
- void
Method: MediumTextColumn->isNullable
function isNullable()
Returns:
- bool
Method: MediumTextColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: MediumTextColumn->getName
function getName()
Returns:
- string
Method: MediumTextColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: MediumTextColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: MediumTextColumn->getDefault
function getDefault()
Returns:
- mixed
Method: MediumTextColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: MediumTextColumn->getCharset
function getCharset()
Returns:
- null | string
Method: MediumTextColumn->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: MediumTextColumn->getCollation
function getCollation()
Returns:
- null | string
Method: MediumTextColumn->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
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
Returns:
- void
Method: TextColumn->isNullable
function isNullable()
Returns:
- bool
Method: TextColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: TextColumn->getName
function getName()
Returns:
- string
Method: TextColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: TextColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: TextColumn->getDefault
function getDefault()
Returns:
- mixed
Method: TextColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: TextColumn->getCharset
function getCharset()
Returns:
- null | string
Method: TextColumn->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: TextColumn->getCollation
function getCollation()
Returns:
- null | string
Method: TextColumn->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
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
Returns:
- void
Method: TinyTextColumn->isNullable
function isNullable()
Returns:
- bool
Method: TinyTextColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: TinyTextColumn->getName
function getName()
Returns:
- string
Method: TinyTextColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: TinyTextColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: TinyTextColumn->getDefault
function getDefault()
Returns:
- mixed
Method: TinyTextColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
Method: TinyTextColumn->getCharset
function getCharset()
Returns:
- null | string
Method: TinyTextColumn->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: TinyTextColumn->getCollation
function getCollation()
Returns:
- null | string
Method: TinyTextColumn->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
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
Returns:
- void
Method: AbstractTemporalColumn->isNullable
function isNullable()
Returns:
- bool
Method: AbstractTemporalColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: AbstractTemporalColumn->getName
function getName()
Returns:
- string
Method: AbstractTemporalColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: AbstractTemporalColumn->toString
function toString(\donatj\MySqlSchema\Table $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
Returns:
- void
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
Returns:
- void
Method: DateTimeColumn->isNullable
function isNullable()
Returns:
- bool
Method: DateTimeColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: DateTimeColumn->getName
function getName()
Returns:
- string
Method: DateTimeColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: DateTimeColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: DateTimeColumn->getDefault
function getDefault()
Returns:
- mixed
Method: DateTimeColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
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
Returns:
- void
Method: TimeColumn->isNullable
function isNullable()
Returns:
- bool
Method: TimeColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: TimeColumn->getName
function getName()
Returns:
- string
Method: TimeColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: TimeColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: TimeColumn->getDefault
function getDefault()
Returns:
- mixed
Method: TimeColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
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
Returns:
- void
Method: TimestampColumn->isNullable
function isNullable()
Returns:
- bool
Method: TimestampColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: TimestampColumn->getName
function getName()
Returns:
- string
Method: TimestampColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: TimestampColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: TimestampColumn->getDefault
function getDefault()
Returns:
- mixed
Method: TimestampColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
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
Throws: \InvalidArgumentException
Returns:
- void
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
Returns:
- void
Method: YearColumn->isNullable
function isNullable()
Returns:
- bool
Method: YearColumn->setNullable
function setNullable($nullable)
Parameters:
- bool
$nullable
Returns:
- void
Method: YearColumn->getName
function getName()
Returns:
- string
Method: YearColumn->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: YearColumn->toString
function toString(\donatj\MySqlSchema\Table $table)
Parameters:
- \donatj\MySqlSchema\Table
$table
Returns:
- string
Method: YearColumn->getDefault
function getDefault()
Returns:
- mixed
Method: YearColumn->setDefault
function setDefault($default)
Parameters:
- mixed
$default
Returns:
- void
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:
- bool
Method: SignedTrait->setSigned
function setSigned($signed)
Parameters:
- bool
$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
Returns:
- void
Method: Table->getEngine
function getEngine()
Returns:
- null | string
Method: Table->setEngine
function setEngine($engine)
Parameters:
- null | string
$engine
Returns:
- void
Method: Table->getName
function getName()
Returns:
- string
Method: Table->setName
function setName($name)
Parameters:
- string
$name
Returns:
- void
Method: Table->addAutoIncrement
function addAutoIncrement(\donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn $column)
Returns:
- void
Method: Table->isAutoIncrement
function isAutoIncrement(\donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn $column)
Parameters:
- \donatj\MySqlSchema\Columns\Numeric\AbstractIntegerColumn
$column
Returns:
- bool
Method: Table->addPrimaryKey
function addPrimaryKey(\donatj\MySqlSchema\Columns\AbstractColumn $column)
Returns:
- void
Method: Table->isPrimaryKey
function isPrimaryKey(\donatj\MySqlSchema\Columns\AbstractColumn $column)
Parameters:
- \donatj\MySqlSchema\Columns\AbstractColumn
$column
Returns:
- bool
Method: Table->addKeyColumn
function addKeyColumn($keyName, \donatj\MySqlSchema\Columns\AbstractColumn $column [, $index = null [, $type = 'NORMAL' [, $method = '']]])
Parameters:
- string
$keyName
- \donatj\MySqlSchema\Columns\AbstractColumn
$column
- int | null
$index
- string
$type
- string
$method
Returns:
- void
Method: Table->addForeignKey
function addForeignKey(\donatj\MySqlSchema\Columns\AbstractColumn $local, \donatj\MySqlSchema\Columns\AbstractColumn $remote)
Returns:
- void
Method: Table->addColumn
function addColumn(\donatj\MySqlSchema\Columns\AbstractColumn $column)
Returns:
- void
Method: Table->toString
function toString()
Returns:
- string
Method: Table->getCharset
function getCharset()
Returns:
- null | string
Method: Table->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: Table->getCollation
function getCollation()
Returns:
- null | string
Method: Table->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void
Class: donatj\MySqlSchema\Traits\CharsetAndCollationTrait
Method: CharsetAndCollationTrait->getCharset
function getCharset()
Returns:
- null | string
Method: CharsetAndCollationTrait->setCharset
function setCharset($charset)
Parameters:
- null | string
$charset
Returns:
- void
Method: CharsetAndCollationTrait->getCollation
function getCollation()
Returns:
- null | string
Method: CharsetAndCollationTrait->setCollation
function setCollation($collation)
Parameters:
- null | string
$collation
Returns:
- void