<?php
namespace SabaiApps\Directories\Component\Fieldset\EntityBundleType;

use SabaiApps\Directories\Application;
use SabaiApps\Directories\Component\Entity;

class FieldsetEntityBundleType extends Entity\BundleType\AbstractBundleType {

	protected $_slug, $_customInfo;

	public function __construct( Application $application, $name, $slug, array $info ) {
		parent::__construct( $application, $name );
		$this->_slug       = $slug;
		$this->_customInfo = $info;
	}

	protected function _entityBundleTypeInfo() {
		return array(
			'type'               => $this->_name,
			'entity_type'        => 'fieldset',
			'slug'               => 'fieldsets',
			'suffix'             => 'fs_' . $this->_slug,
			'component'          => 'Fieldset',
			'icon'               => 'fas fa-list-alt',
			'public'             => false,
			'no_title'           => true,
			'no_content'         => true,
			'addable'            => false,
			'configurable'       => false,
			'entity_permissions' => false,
		) + $this->_customInfo;
	}
}
