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

DevelopmentModeFacadeTrait::rebuild()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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