Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
TreatmentStatutDictionary
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getStatuts
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace App\Domain\Registry\Dictionary;
6
7use App\Application\Dictionary\SimpleDictionary;
8
9class TreatmentStatutDictionary extends SimpleDictionary
10{
11    public const DRAFT    = 'draft';
12    public const FINISHED = 'finished';
13    public const CHECKED  = 'checked';
14
15    public function __construct()
16    {
17        parent::__construct('treatment_statut', $this->getStatuts());
18    }
19
20    public static function getStatuts()
21    {
22        return [
23            self::DRAFT    => 'Brouillon',
24            self::FINISHED => 'Terminé',
25            self::CHECKED  => 'Contrôlé',
26        ];
27    }
28}