1
0
This commit is contained in:
Philip Wagner
2024-08-31 10:01:49 +02:00
commit 78b6c0d381
1169 changed files with 235103 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;
}
}