Total Complexity | 10 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Schema extends DatabaseItem implements Changeable, Initializable |
||
6 | { |
||
7 | private string $name; |
||
8 | private bool $isReference; |
||
9 | |||
10 | public function __construct(string $name) |
||
13 | } |
||
14 | |||
15 | #[\Override] |
||
16 | public function initialize(): void |
||
17 | { |
||
18 | if(!$this->getChangeLogger()->doesSchemaExist($this->name)) { |
||
|
|||
19 | $this->getChangeLogger()->addSchema($this->name); |
||
20 | } |
||
21 | } |
||
22 | |||
23 | public function isReference(): bool |
||
26 | } |
||
27 | |||
28 | public function setIsReference(bool $isReference): void |
||
29 | { |
||
30 | $this->isReference = $isReference; |
||
31 | } |
||
32 | |||
33 | public function table($name): Table |
||
42 | } |
||
43 | |||
44 | public function view($name) |
||
47 | } |
||
48 | |||
49 | public function getName() |
||
50 | { |
||
51 | return $this->name; |
||
52 | } |
||
53 | |||
54 | #[\Override] |
||
58 | ); |
||
59 | } |
||
60 | } |
||
62 |