Menu

## Config extends AbstractConfig
in package

Config.php : 11

Config Class Doc Comment

### Table of Contents

$cache : array<string|int, mixed>
$data : array<string|int, mixed>|null
$_restclient : mixed
$_supportedFileParsers : array<string|int, mixed>
  Available parsers
__construct() : mixed
  Config constructor.
all() : array<string|int, mixed>|null
clean() : mixed
configure() : mixed
get() : mixed|null
getData() : mixed
getToken() : mixed
  Obtain token with key and secret
getUserId() : mixed
has() : bool
load() : static
refreshToken() : mixed
  Refresh token
set() : mixed
  Set config value
getDefaults() : array<string|int, mixed>
  Default values
_getParser() : null

### Properties

#### $cache

AbstractConfig.php : 19
`protected array<string|int, mixed> $cache = []`

#### $data

AbstractConfig.php : 14
`protected array<string|int, mixed>|null $data = null`

#### $_restclient

Config.php : 23
`private mixed $_restclient = null`

#### $_supportedFileParsers

Config.php : 18

Available parsers

`private array<string|int, mixed> $_supportedFileParsers = ['MercadoPago\Config\Json', 'MercadoPago\Config\Yaml']`

### Methods

#### __construct()

Config.php : 60

Config constructor.

`public __construct([null $path = null ][, null $restClient = null ]) : mixed`

##### Parameters

$path : null = null
$restClient : null = null

##### Return values

mixed —

#### all()

AbstractConfig.php : 85
`public all() : array<string|int, mixed>|null`

##### Return values

array<string|int, mixed>|null —

#### clean()

AbstractConfig.php : 39
`public clean() : mixed`

##### Return values

mixed —

#### configure()

AbstractConfig.php : 93
`public configure([array<string|int, mixed> $data = [] ]) : mixed`

##### Parameters

$data : array<string|int, mixed> = []

##### Return values

mixed —

#### get()

AbstractConfig.php : 53
`public get( $key[, null $default = null ]) : mixed|null`

##### Parameters

$key :
$default : null = null

##### Return values

mixed|null —

#### getData()

Config.php : 190
`public getData() : mixed`

##### Return values

mixed —

#### getToken()

Config.php : 155

Obtain token with key and secret

`public getToken() : mixed`

##### Return values

mixed —

#### getUserId()

Config.php : 140
`public getUserId() : mixed`

##### Return values

mixed —

#### has()

AbstractConfig.php : 77
`public has( $key) : bool`

##### Parameters

$key :

##### Return values

bool —

#### load()

Config.php : 49
`public static load([null $path = null ]) : static`

##### Parameters

$path : null = null

  Static load method

##### Return values

static —

#### refreshToken()

Config.php : 173

Refresh token

`public refreshToken() : mixed`

##### Return values

mixed —

//TODO check valid response with production credentials

#### set()

Config.php : 107

Set config value

`public set( $key, $value) : mixed`

##### Parameters

$key :
$value :

##### Return values

mixed —

#### getDefaults()

Config.php : 29

Default values

`protected getDefaults() : array<string|int, mixed>`

##### Return values

array<string|int, mixed> —

#### _getParser()

Config.php : 85
`private _getParser( $extension) : null`

##### Parameters

$extension :

  Get Parser depending on extension

##### Tags

throws
  Exception

##### Return values

null —

## Search results