b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / vendor / wikimedia / less.php / lib / Less /
Filename/home/a/home/dev2.destoffenstraat.com/vendor/wikimedia/less.php/lib/Less/Configurable.php
Size1.26 kb
Permissionrw-r--r--
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified06-Nov-2019 19:30
Last accessed23-Aug-2025 04:41
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
<?php

/**
* Configurable
*
* @package Less
* @subpackage Core
*/
abstract class Less_Configurable {

/**
* Array of options
*
* @var array
*/
protected $options = array();

/**
* Array of default options
*
* @var array
*/
protected $defaultOptions = array();


/**
* Set options
*
* If $options is an object it will be converted into an array by called
* it's toArray method.
*
* @throws Exception
* @param array|object $options
*
*/
public function setOptions($options){
$options = array_intersect_key($options,$this->defaultOptions);
$this->options = array_merge($this->defaultOptions, $this->options, $options);
}


/**
* Get an option value by name
*
* If the option is empty or not set a NULL value will be returned.
*
* @param string $name
* @param mixed $default Default value if confiuration of $name is not present
* @return mixed
*/
public function getOption($name, $default = null){
if(isset($this->options[$name])){
return $this->options[$name];
}
return $default;
}


/**
* Set an option
*
* @param string $name
* @param mixed $value
*/
public function setOption($name, $value){
$this->options[$name] = $value;
}

}