File: D:/HostingSpaces/pietvanmierlo/stempelbv.nl/app/Komma/Kms/Core/Sections/SectionTab.php
<?php namespace App\Komma\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;
}
}