public function getAccountByProvider($provider)
    {
        $accounts = $this->getAccounts();
        return isset($accounts[$provider])
            ? $accounts[$provider]
            : null;
    }
public function getAccountByProvider($provider)
    {
        $accounts = $this->getAccounts();
        return isset($accounts[$provider])
            ? $accounts[$provider]
            : null;
    }
public function getAccountByProvider ( $ provider ) { $ accounts = $ this -> getAccounts ( ) ; return isset ( $ accounts [ $ provider ] ) ? $ accounts [ $ provider ] : null ; }
Returns connected account by provider.
@param  string $provider
@return Account|null
Returns connected account by provider .