Initial commit

This commit is contained in:
isUnknown 2024-07-10 16:10:33 +02:00
commit 08a8a71c55
631 changed files with 139902 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?php
namespace Kirby\Form\Mixin;
trait EmptyState
{
protected string|null $empty;
protected function setEmpty(string|array|null $empty = null): void
{
$this->empty = $this->i18n($empty);
}
public function empty(): string|null
{
return $this->stringTemplate($this->empty);
}
}

View file

@ -0,0 +1,18 @@
<?php
namespace Kirby\Form\Mixin;
trait Max
{
protected int|null $max;
public function max(): int|null
{
return $this->max;
}
protected function setMax(int $max = null)
{
$this->max = $max;
}
}

View file

@ -0,0 +1,18 @@
<?php
namespace Kirby\Form\Mixin;
trait Min
{
protected int|null $min;
public function min(): int|null
{
return $this->min;
}
protected function setMin(int $min = null)
{
$this->min = $min;
}
}