/** * Fixed assignements include the sql string and the name of the * validator used for this datatype * * @param string $attrs space delimited string of attributes * @return SmallInt */ public function __construct($attrs = null) { $sql = 'smallint'; $validator = 'mysql-datatype-smallint'; parent::__construct($sql, $validator, $attrs); }
/** * Fixed assignements include the sql string and the name of the * validator used for this datatype. Mysql implements a bit as * tinyint(1) * * @param string $attrs space delimited string of attributes * @return TinyInt */ public function __construct($attrs = null) { parent::__construct('bit', 'datatype-tinyint', $attrs); }
/** * Fixed assignements include the sql string and the name of the * validator used for this datatype * * @param string $attrs space delimited string of attributes * @return BigInt */ public function __construct($attrs = null) { $sql = 'bigint'; $validator = 'datatype-bigint'; parent::__construct($sql, $validator, $attrs); }