summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/web/src/Widget/EmptyStateBar.php
blob: 2d048379265fd04d07e1a89ba82d77786442211c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

namespace ipl\Web\Widget;

use ipl\Html\BaseHtmlElement;

class EmptyStateBar extends BaseHtmlElement
{
    /** @var mixed Content */
    protected $content;

    protected $tag = 'div';

    protected $defaultAttributes = ['class' => 'empty-state-bar'];

    /**
     * Create an empty list
     *
     * @param mixed $content
     */
    public function __construct($content)
    {
        $this->content = $content;
    }

    protected function assemble(): void
    {
        $this->add($this->content);
    }
}