2019-08-21 20:13:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Ulmus\Annotation\Classes;
|
|
|
|
|
|
|
|
class Table implements \Ulmus\Annotation\Annotation {
|
|
|
|
|
|
|
|
public string $name;
|
|
|
|
|
2020-10-16 15:27:54 +00:00
|
|
|
public string $database;
|
|
|
|
|
2020-01-29 21:11:16 +00:00
|
|
|
public string $schema;
|
|
|
|
|
2020-02-13 03:56:53 +00:00
|
|
|
public string $adapter;
|
2020-10-16 15:27:54 +00:00
|
|
|
|
|
|
|
public string $engine;
|
2020-02-13 03:56:53 +00:00
|
|
|
|
2020-10-16 15:27:54 +00:00
|
|
|
public function __construct($name = null, $engine = null)
|
2019-08-21 20:13:00 +00:00
|
|
|
{
|
|
|
|
if ( $name !== null ) {
|
|
|
|
$this->name = $name;
|
|
|
|
}
|
2020-10-16 15:27:54 +00:00
|
|
|
|
|
|
|
if ( $engine !== null ) {
|
|
|
|
$this->engine = $engine;
|
|
|
|
}
|
2019-08-21 20:13:00 +00:00
|
|
|
}
|
|
|
|
}
|