__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

declare(strict_types=1);

namespace MPBC\Data;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Unit extends Abstract_Entity {
	private string $title = '';

	private int $order = 0;

	private int $variation_id = 0;

	private ?Variation $variation = null;

	public function get_title(): string {
		return $this->title;
	}

	public function set_title( string $title ): void {
		$this->title = $title;
	}

	public function get_order(): int {
		return $this->order;
	}

	public function set_order( int $order ): void {
		$this->order = $order;
	}

	public function get_variation_id(): int {
		return $this->variation_id;
	}

	public function set_variation_id( int $variation_id ): void {
		if ( $variation_id !== $this->variation_id ) {
			$this->variation_id = $variation_id;
			$this->variation = null;
		}
	}

	public function get_variation(): ?Variation {
		if ( is_null( $this->variation ) ) {
			$this->variation = mpbc_get_variation( $this->get_variation_id() );
		}

		return $this->variation;
	}

	public function to_array(): array {
		return parent::to_array()
			+ array(
				'title'        => $this->get_title(),
				'order'        => $this->get_order(),
				'variation_id' => $this->get_variation_id(),
			);
	}
}

Filemanager

Name Type Size Permission Actions
mapper Folder 0750
repository Folder 0750
abstract-entity.php File 1.26 KB 0640
booking.php File 4.66 KB 0640
custom-fields-interface.php File 281 B 0640
customer.php File 1.01 KB 0640
form.php File 2.38 KB 0640
notification.php File 3.25 KB 0640
price-adjustable-interface.php File 309 B 0640
property.php File 2.68 KB 0640
reservation-group.php File 2.3 KB 0640
reservation-interface.php File 452 B 0640
reservation.php File 4.47 KB 0640
reserved-slot.php File 2.78 KB 0640
time-slot.php File 1.7 KB 0640
unit.php File 1.2 KB 0640
variation.php File 3.15 KB 0640
Filemanager