HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/www/_trash/wp-content/plugins/members/addons/members-admin-access/app/class-app.php
<?php
/**
 * Primary class for setting up the plugin.
 *
 * @package   MembersAdminAccess
 * @author    Justin Tadlock <justintadlock@gmail.com>
 * @copyright Copyright (c) 2018, Justin Tadlock
 * @link      https://themehybrid.com/plugins/members-admin-access
 * @license   http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */

namespace Members\AddOns\AdminAccess;

/**
 * Application class.
 *
 * @since  1.0.0
 * @access public
 */
class App {

	/**
	 * Houses the plugin directory path.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $dir = '';

	/**
	 * Namespace used for filter hooks and such.
	 *
	 * @since  1.0.0
	 * @access public
	 * @var    string
	 */
	public $namespace = '';

	/**
	 * Takes in a configuration array and assigns the keys to the class properties.
	 *
	 * @since  1.0.0
	 * @access public
	 * @return void
	 */
	public function __construct( array $args = [] ) {

		foreach ( array_keys( get_object_vars( $this ) ) as $key ) {

			if ( isset( $args[ $key ] ) )
				$this->$key = $args[ $key ];
		}
	}
}