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

use SabaiApps\Directories\Component\Entity;

class PlanEntityBundleType extends Entity\BundleType\AbstractBundleType {

	protected function _entityBundleTypeInfo() {
		return array(
			'type'                   => $this->_name,
			'entity_type'            => 'post',
			'slug'                   => 'plans',
			'suffix'                 => 'pay_pln',
			'component'              => 'PaymentGateway',
			'icon'                   => 'fas fa-money-bill-1-wave',
			'public'                 => false,
			'no_content'             => true,
			'content_field'          => 'paymentgateway_plan',
			'label'                  => __( 'Payment Plans', 'directories-pro' ),
			'label_singular'         => __( 'Payment Plan', 'directories-pro' ),
			'label_all'              => __( 'Payment Plans', 'directories-pro' ),
			'label_add'              => __( 'Add Payment Plan', 'directories-pro' ),
			'fields'                 => __DIR__ . '/plan_fields.php',
			'displays'               => __DIR__ . '/plan_displays.php',
			'properties'             => array(),
			'entity_permissions'     => false,
			'dashboard_disable'      => true,
			'frontendsubmit_disable' => true,
			'restorable'             => true,
			'addable'                => false,
			'configurable'           => false,
			'faker_disable'          => true, // to be implemented in the future
			'csv_disable'            => false,
		);
	}

	public function entityBundleTypeSettingsForm( array $settings, array $parents = array() ) {
		return array();
	}
}
