for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace yentu;
use yentu\factories\DatabaseItemFactory;
use yentu\database\ItemType;
use yentu\database\Schema;
class Yentu
{
private static DatabaseItemFactory $factory;
private static Schema $defaultSchema;
public static function setup(DatabaseItemFactory $factory, string $defaultSchema)
self::$defaultSchema = $factory->create(ItemType::Schema, $defaultSchema);
self::$factory = $factory;
}
public static function begin() {
return self::$factory->create(ItemType::Begin, self::$defaultSchema);
public static function refschema($name) {
$schema = self::$factory->create(ItemType::Schema, $name);
$schema->setIsReference(true);
setIsReference()
yentu\database\DatabaseItem
__call
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$schema->/** @scrutinizer ignore-call */
setIsReference(true);
return $schema;
public static function reftable($name) {
$table = self::$factory->create(ItemType::Table, $name, self::$defaultSchema);
$table->setIsReference(true);
return $table;