Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
Column
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Dynart\Micro\Entities\Attribute;
4
5use Attribute;
6
7#[Attribute(Attribute::TARGET_PROPERTY)]
8class Column {
9
10    public function __construct(
11        public string $type,
12        public int|array $size = 0,
13        public bool $fixSize = false,
14        public bool $notNull = false,
15        public bool $autoIncrement = false,
16        public bool $primaryKey = false,
17        public mixed $default = null,
18        public ?array $foreignKey = null,
19        public ?string $onDelete = null,
20        public ?string $onUpdate = null,
21    ) {}
22}