Test Failed
Pull Request — main (#59)
by Dimitri
06:14
created

Config   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 1
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A accessor() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of Blitz PHP framework.
5
 *
6
 * (c) 2022 Dimitri Sitchet Tomkeu <[email protected]>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace BlitzPHP\Facades;
13
14
use Nette\Schema\Schema;
15
16
/**
17
 * @method static bool  exists(string $key)                                  Détermine si une clé de configuration existe.
18
 * @method static mixed get(string $key, mixed $default = null)              Renvoie une configuration de l'application.
19
 * @method static bool  has(string $key)                                     Détermine s'il y'a une clé de configuration.
20
 * @method static bool  missing(string $key)                                 Détermine s'il manque une clé de configuration.
21
 * @method static $this ghost((array | string) $key, ?Schema $schema = null) Rend disponible un groupe de configuration qui n'existe pas (pas de fichier de configuration). Ceci est notament utilse pour definir des configurations à la volée
22
 * @method static void  reset(null|array|string $keys = null)                Reinitialise une configuration en fonction des donnees initiales issues des fichiers de configurations.
23
 * @method static void  set(string $key, mixed $value)                       Définit une configuration de l'application.
24
 *
25
 * @see \BlitzPHP\Config\Config
26
 */
0 ignored issues
show
Documentation Bug introduced by
The doc comment () at position 1 could not be parsed: Unknown type name ')' at position 1 in ().
Loading history...
27
final class Config extends Facade
28
{
29
    protected static function accessor(): object
30
    {
31
        return service('config');
32
    }
33
}
34