Jarves\Configuration\Connection::getUsername PHP 메소드

getUsername() 공개 메소드

public getUsername ( ) : string
리턴 string
    public function getUsername()
    {
        return $this->username;
    }

Usage Example

예제 #1
0
 public function getManagerConfig(Connection $connection)
 {
     $config = [];
     $config['dsn'] = $connection->getDsn();
     $config['user'] = (string) $connection->getUsername();
     $config['password'] = (string) $connection->getPassword();
     $config['options']['ATTR_PERSISTENT'] = (bool) $connection->getPersistent();
     $config['settings']['charset'] = $connection->getCharset();
     return $config;
 }