- Added description to most attributes
This commit is contained in:
parent
e37eeb85f1
commit
2de3139c80
|
@ -10,6 +10,7 @@ class Table implements AdapterAttributeInterface {
|
||||||
public ? string $schema = null,
|
public ? string $schema = null,
|
||||||
public ? string $adapter = null,
|
public ? string $adapter = null,
|
||||||
public ? string $engine = null,
|
public ? string $engine = null,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
public function adapter() : false|string
|
public function adapter() : false|string
|
||||||
|
|
|
@ -14,5 +14,6 @@ class Field {
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
public null|int $decimal = null,
|
public null|int $decimal = null,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,5 +14,6 @@ class Bigint extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Bit extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Blob extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -13,5 +13,6 @@ class CreatedAt extends \Ulmus\Attribute\Property\Field {
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,5 +11,6 @@ class Date extends \Ulmus\Attribute\Property\Field {
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,5 +11,6 @@ class Datetime extends \Ulmus\Attribute\Property\Field {
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,5 +14,6 @@ class Decimal extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Float extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -26,6 +26,7 @@ class ForeignKey extends PrimaryKey {
|
||||||
public null|string $relation = null,
|
public null|string $relation = null,
|
||||||
public ConstrainActionEnum $onDelete = ConstrainActionEnum::NoAction,
|
public ConstrainActionEnum $onDelete = ConstrainActionEnum::NoAction,
|
||||||
public ConstrainActionEnum $onUpdate = ConstrainActionEnum::NoAction,
|
public ConstrainActionEnum $onUpdate = ConstrainActionEnum::NoAction,
|
||||||
|
public string $description = "",
|
||||||
) {
|
) {
|
||||||
#$this->references = Attribute::handleArrayField($this->references, false);
|
#$this->references = Attribute::handleArrayField($this->references, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,5 +17,6 @@ class Id extends \Ulmus\Attribute\Property\Field {
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,5 +14,6 @@ class Longblob extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Longtext extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Mediumblob extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Mediumint extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Mediumtext extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Numeric extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -16,5 +16,6 @@ class PrimaryKey extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,5 +14,6 @@ class Smallint extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Text extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -5,8 +5,13 @@ namespace Ulmus\Attribute\Property\Field;
|
||||||
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
||||||
class Time extends \Ulmus\Attribute\Property\Field
|
class Time extends \Ulmus\Attribute\Property\Field
|
||||||
{
|
{
|
||||||
public function __construct(? string $type = "time", ? int $length = null)
|
public function __construct(
|
||||||
{
|
public ? string $name = null,
|
||||||
parent::__construct($type, $length);
|
public ? string $type = "time",
|
||||||
}
|
public array $attributes = [],
|
||||||
|
public bool $nullable = false,
|
||||||
|
public mixed $default = null,
|
||||||
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,13 @@ namespace Ulmus\Attribute\Property\Field;
|
||||||
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
#[\Attribute(\Attribute::TARGET_PROPERTY)]
|
||||||
class Timestamp extends \Ulmus\Attribute\Property\Field
|
class Timestamp extends \Ulmus\Attribute\Property\Field
|
||||||
{
|
{
|
||||||
public function __construct(? string $type = "timestamp", ? int $length = null)
|
public function __construct(
|
||||||
{
|
public ? string $name = null,
|
||||||
parent::__construct($type, $length);
|
public ? string $type = "timestamp",
|
||||||
}
|
public array $attributes = [],
|
||||||
|
public bool $nullable = false,
|
||||||
|
public mixed $default = null,
|
||||||
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,5 +14,6 @@ class Blob extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Tinyint extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -14,5 +14,6 @@ class Tinytext extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = false,
|
public bool $nullable = false,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -15,5 +15,6 @@ class UpdatedAt extends \Ulmus\Attribute\Property\Field
|
||||||
public bool $nullable = true,
|
public bool $nullable = true,
|
||||||
public mixed $default = null,
|
public mixed $default = null,
|
||||||
public bool $readonly = false,
|
public bool $readonly = false,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,5 +9,6 @@ class SearchGroupBy extends SearchParameter
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public null|string|\Stringable|array $field = null,
|
public null|string|\Stringable|array $field = null,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -12,5 +12,6 @@ class SearchLike extends SearchParameter
|
||||||
public null|string|\Stringable|array $field = null,
|
public null|string|\Stringable|array $field = null,
|
||||||
public bool $toggle = false,
|
public bool $toggle = false,
|
||||||
public SearchMethodEnum $method = SearchMethodEnum::Like,
|
public SearchMethodEnum $method = SearchMethodEnum::Like,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -15,5 +15,6 @@ class SearchOrderBy extends SearchParameter
|
||||||
public ? string $parameter = null,
|
public ? string $parameter = null,
|
||||||
public null|string|\Stringable|array $field = null,
|
public null|string|\Stringable|array $field = null,
|
||||||
public null|SearchMethodEnum $order = null,
|
public null|SearchMethodEnum $order = null,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -10,5 +10,6 @@ class SearchRequestParameter
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public string $class,
|
public string $class,
|
||||||
public ? string $alias = null,
|
public ? string $alias = null,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
|
@ -12,5 +12,6 @@ class SearchWhere extends SearchParameter
|
||||||
public null|string|\Stringable|array $field = null,
|
public null|string|\Stringable|array $field = null,
|
||||||
public bool $toggle = false,
|
public bool $toggle = false,
|
||||||
public SearchMethodEnum $method = SearchMethodEnum::Where,
|
public SearchMethodEnum $method = SearchMethodEnum::Where,
|
||||||
|
public string $description = "",
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
Loading…
Reference in New Issue