public function __construct($Name, DataType $DataType, $IsPrimaryKey = false, array $Traits = []) { $this->Name = $Name; $this->Identifier = $Name; $this->DataType = $DataType; $this->IsPrimaryKey = $IsPrimaryKey; foreach ($Traits as $Trait) { $this->AddTrait($Trait); } }
public function __construct($Name, $Length, $Precision, $Unsigned = false) { parent::__construct($Name, new Columns\DataType('DECIMAL', [$Length, $Precision], $Unsigned ? 'UNSIGNED' : '', ParameterType::String)); }