for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Janisbiz\LightOrm\Dms\MySQL\Generator\Dms;
use Janisbiz\LightOrm\Generator\Dms\DmsDatabaseInterface;
use Janisbiz\LightOrm\Generator\Dms\DmsTableInterface;
class DmsDatabase implements DmsDatabaseInterface
{
/**
* @var string
*/
protected $name;
* @var DmsTableInterface[]
protected $dmsTables = [];
* @param string $name
* @param DmsTableInterface[] $dmsTables
public function __construct(string $name, array $dmsTables)
$this->name = $name;
$this->dmsTables = $dmsTables;
}
* @return string
public function getName(): string
return $this->name;
public function getPhpName(): string
return \ucfirst(\preg_replace_callback(
'/[^a-z0-9]+(?<name>\w{1})/i',
function ($matches) {
return \strtoupper($matches['name']);
},
$this->getName()
));
* @return DmsTableInterface[]
public function getDmsTables(): array
return $this->dmsTables;