PayPal\Core\PayPalConfigManager::get PHP Méthode

get() public méthode

Simple getter for configuration params If an exact match for key is not found, does a "contains" search on the key
public get ( string $searchKey ) : array
$searchKey string
Résultat array
    public function get($searchKey)
    {
        if (array_key_exists($searchKey, $this->configs)) {
            return $this->configs[$searchKey];
        } else {
            $arr = array();
            foreach ($this->configs as $k => $v) {
                if (strstr($k, $searchKey)) {
                    $arr[$k] = $v;
                }
            }
            return $arr;
        }
    }