Debian Codegraph @

vendor/ipl/web/src/Widget/EmptyStateBar.php

raw
1 <?php
2
3 namespace ipl\Web\Widget;
4
5 use ipl\Html\BaseHtmlElement;
6
7 class EmptyStateBar extends BaseHtmlElement
8 {
9 /** @var mixed Content */
10 protected $content;
11
12 protected $tag = 'div';
13
14 protected $defaultAttributes = ['class' => 'empty-state-bar'];
15
16 /**
17 * Create an empty list
18 *
19 * @param mixed $content
20 */
21 public function __construct($content)
22 {
23 $this->content = $content;
24 }
25
26 protected function assemble(): void
27 {
28 $this->add($this->content);
29 }
30 }