HEX
Server: Apache
System: Linux d5123.usc1.stableserver.net 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 24 12:53:17 EDT 2025 x86_64
User: d5123 (1001)
PHP: 8.4.21
Disabled: NONE
Upload Files
File: /home/d5123/myboofola_com/wp-content/plugins/wp-event-solution/base/Input.php
<?php
/**
 * Input class
 * 
 * @package Eventin
 */
namespace Eventin;

/**
 * Input class
 */
class Input {
    /**
     * Store data
     *
     * @var array
     */
    private $data;
    /**
     * Constructor for input class
     *
     * @return  void
     */
    public function __construct( $data = [] ) {
        $this->data = $data;
    }

    /**
     * Check input is empty or not default blank
     *
     * @return  mixed
     */
    public function get( $key, $defaul = null ) {
        $data = ! empty( $this->data[$key] ) ? $this->data[$key] : $defaul;

        return $data;
    }
}