diff options
Diffstat (limited to 'src/Concerns')
| -rw-r--r-- | src/Concerns/WithAttributes.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/Concerns/WithAttributes.php b/src/Concerns/WithAttributes.php deleted file mode 100644 index dceec69..0000000 --- a/src/Concerns/WithAttributes.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace Lightscale\LaralightTables\Concerns; - -use Illuminate\View\ComponentAttributeBag; - -trait WithAttributes -{ - /** - * @var array<string, string> - */ - protected ?array $attributes = null; - - /** - * @param array<string, string> $attributes - */ - public function attributes(array $attributes): static - { - $this->attributes = $attributes; - - return $this; - } - - protected function getAttributes(): ComponentAttributeBag - { - return new ComponentAttributeBag($this->attributes ?? []); - } -} |
