Test Setup Failed
Push — master ( 1595cb...1df194 )
by Kirill
02:11
created

DevelopmentModeFacadeTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A rebuild() 0 5 1
1
<?php
2
3
/**
4
 * This file is part of sdl package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Railt\SDL\Compiler;
13
14
use Phplrt\Source\Exception\NotFoundException;
15
use Phplrt\Source\Exception\NotReadableException;
16
use Psr\Log\LoggerAwareTrait;
17
use Railt\SDL\Frontend\Generator;
18
19
/**
20
 * Trait DevelopmentModeFacadeTrait
21
 */
22
trait DevelopmentModeFacadeTrait
23
{
24
    use LoggerAwareTrait;
25
26
    /**
27
     * @return $this
28
     * @throws \Throwable
29
     */
30
    public function rebuild(): self
31
    {
32
        (new Generator())->generateAndSave();
33
34
        return $this;
35
    }
36
}
37