for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace yentu\database;
use yentu\database\ItemType;
class Begin extends DatabaseItem
{
private Schema $defaultSchema;
private EncapsulatedStack $encapsulatedStack;
public function __construct(Schema $defaultSchema, EncapsulatedStack $encapsulatedStack)
$this->defaultSchema = $defaultSchema;
$this->encapsulatedStack = $encapsulatedStack;
}
public function table(string $name): Table
return $this->factory->create(ItemType::Table, $name, $this);
return $this->factory->c...e::Table, $name, $this)
yentu\database\DatabaseItem
yentu\database\Table
public function schema(string $name): Schema
return $this->create('schema', $name, $this);
create()
yentu\database\Begin
__call
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ create('schema', $name, $this);
public function view(string $name): View
return $this->create('view', $name, $this);
public function getName(): string
return $this->defaultSchema->getName();
public function end(): void
$this->encapsulatedStack->purge();
public function query(string $query, $bindData = array()): Query
return $this->create('query', $query, $bindData);
#[\Override]
public function init()