for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace yentu\database;
class Index extends BasicKey
{
protected $unique = false;
public function unique($unique = true)
$this->unique = $unique;
return $this;
}
#[\Override]
protected function doesKeyExist($constraint)
return $this->getChangeLogger()->doesIndexExist($constraint);
doesIndexExist()
yentu\ChangeLogger
__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->getChangeLogger()->/** @scrutinizer ignore-call */ doesIndexExist($constraint);
protected function addKey($constraint)
$this->getChangeLogger()->addIndex($constraint);
addIndex()
$this->getChangeLogger()->/** @scrutinizer ignore-call */ addIndex($constraint);
protected function dropKey($constraint)
$this->getChangeLogger()->dropIndex($constraint);
dropIndex()
$this->getChangeLogger()->/** @scrutinizer ignore-call */ dropIndex($constraint);
protected function getNamePostfix()
return 'idx';
public function buildDescription()
return parent::buildDescription() + ['unique' => $this->unique];