コード例 #1
0
ファイル: IntegerType.php プロジェクト: LartTyler/Link
 public function __construct(int $precision = 10, bool $unsigned = true)
 {
     $opts = [];
     if ($unsigned) {
         $opts[] = Options::OPT_UNSIGNED;
     }
     parent::__construct('integer', new Options($opts), $precision);
 }
コード例 #2
0
ファイル: DateTimeType.php プロジェクト: LartTyler/Link
 public function __construct()
 {
     parent::__construct('datetime', new Options([]), null);
 }
コード例 #3
0
ファイル: BooleanType.php プロジェクト: LartTyler/Link
 public function __construct()
 {
     parent::__construct('boolean', new Options([]), null);
 }