Inheritance: extends App\Entities\Setting\AbstractSettingEntity
 public function test_Should_SetAndGetPassword()
 {
     $dbSettingEntity = new DbSettingEntity();
     $dbSettingEntity->setPassword('password');
     $password = $dbSettingEntity->getPassword();
     $this->assertEquals('password', $password);
 }
Exemple #2
0
 public function all()
 {
     $driver = $this->reader->getConfig('DB_DRIVER');
     $host = $this->reader->getConfig('DB_HOST');
     $database = $this->reader->getConfig('DB_DATABASE');
     $username = $this->reader->getConfig('DB_USERNAME');
     $password = $this->reader->getConfig('DB_PASSWORD');
     $dbSetting = new DbSettingEntity();
     $dbSetting->setDriver($driver)->setHost($host)->setDatabase($database)->setUsername($username)->setPassword($password);
     return $dbSetting;
 }