Passed
Push — main ( c1cea3...1d91de )
by Osvaldo
13:30
created

Truncate::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
namespace src\pdodatabase\elementos;
3
4
use src\pdodatabase\elementos\Tabla;
5
6
class Truncate
7
{
8
    private $_tabla;
9
10
    public function __construct(Tabla $tabla)
11
    {
12
        $this->_tabla = $tabla;
13
    }
14
15
    public function sql(): string
16
    {
17
        return 'TABLE '.$this->_tabla->sql();
18
    }
19
}