HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/ehboledensysteem.komma.pro/app/KommaApp/Kms/Core/Sections/SectionTab.php
<?php namespace App\KommaApp\Kms\Core\Sections;

class SectionTab implements SectionTabInterface
{
    private $name;
    private $slug;
    private $group;

    private $items = [];

    public function __construct(string $name, string $slug, string $group = '')
    {
        $this->name = $name;
        $this->slug = $slug;
        $this->group = $group;
    }

    public function addItem($item)
    {
        $this->items[] = $item;
    }

    public function addItems(array $items)
    {
        foreach ($items as $item) {
            $this->addItem($item);
        }
    }

    public function getItems(): array
    {
        return $this->items;
    }

    public function getName(): string
    {
        return $this->name;
    }

    public function getSlug(): string
    {
        return $this->slug;
    }

    public function getGroup(): string
    {
        return $this->group;
    }

    public function hasErrors()
    {
        // TODO: Implement hasErrors() method. Normaly it should look at the attributes that are inside this tabs items and determine if it has errors
        return false;
    }
}