Your IP : 216.73.216.229


Current Path : /home/jeromecohp/www/administrator/components/com_conditions/src/Condition/Date/
Upload File :
Current File : /home/jeromecohp/www/administrator/components/com_conditions/src/Condition/Date/Date.php

<?php
/**
 * @package         Conditions
 * @version         25.1.10755
 * 
 * @author          Peter van Westen <info@regularlabs.com>
 * @link            https://regularlabs.com
 * @copyright       Copyright © 2025 Regular Labs All Rights Reserved
 * @license         GNU General Public License version 2 or later
 */

namespace RegularLabs\Component\Conditions\Administrator\Condition\Date;

defined('_JEXEC') or die;

use RegularLabs\Component\Conditions\Administrator\Condition\Condition;
use RegularLabs\Component\Conditions\Administrator\Helper\Date as DateHelper;

class Date extends Condition
{
    public function pass(): bool
    {
        $now = DateHelper::getNow();

        return DateHelper::pass($this->params, $now);
    }
}