ulmus/src/Attribute/Obj/Table.php
2024-05-27 18:09:22 +00:00

21 lines
514 B
PHP

<?php
namespace Ulmus\Attribute\Obj;
#[\Attribute(\Attribute::TARGET_CLASS)]
class Table implements AdapterAttributeInterface {
public function __construct(
public ? string $name = null,
public ? string $database = null,
public ? string $schema = null,
public ? string $adapter = null,
public ? string $engine = null,
public string $description = "",
) {}
public function adapter() : false|string
{
return $this->adapter ?: false;
}
}