Total Complexity | 8 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Begin extends DatabaseItem |
||
9 | { |
||
10 | private Schema $defaultSchema; |
||
11 | private EncapsulatedStack $encapsulatedStack; |
||
12 | |||
13 | public function __construct(Schema $defaultSchema, EncapsulatedStack $encapsulatedStack) |
||
14 | { |
||
15 | $this->defaultSchema = $defaultSchema; |
||
16 | $this->encapsulatedStack = $encapsulatedStack; |
||
17 | } |
||
18 | |||
19 | public function table(string $name): Table |
||
20 | { |
||
21 | return $this->factory->create(ItemType::Table, $name, $this); |
||
1 ignored issue
–
show
|
|||
22 | } |
||
23 | |||
24 | public function schema(string $name): Schema |
||
27 | } |
||
28 | |||
29 | public function view(string $name): View |
||
30 | { |
||
31 | return $this->create('view', $name, $this); |
||
32 | } |
||
33 | |||
34 | public function getName(): string |
||
37 | } |
||
38 | |||
39 | public function end(): void |
||
40 | { |
||
41 | $this->encapsulatedStack->purge(); |
||
42 | } |
||
43 | |||
44 | public function query(string $query, $bindData = array()): Query |
||
47 | } |
||
48 | |||
49 | #[\Override] |
||
52 | |||
53 | } |
||
54 | } |
||
55 |