for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Daikon\Dbal\Connector;
trait ConnectorTrait
{
private $settings;
private $connection;
public function __construct(array $settings)
$this->settings = $settings;
}
public function __destruct()
$this->disconnect();
public function getConnection()
if (!$this->isConnected()) {
$this->connection = $this->connect();
connect()
Daikon\Dbal\Connector\ConnectorTrait
getConnection()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
return $this->connection;
public function isConnected(): bool
return $this->connection !== null;
public function disconnect(): void
if ($this->isConnected()) {
$this->connection = null;
public function getSettings(): array
return $this->settings;
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.