public function getGateways()
    {
        $gateways = array();

        foreach ($this->getGatewayNamespaces() as $namespace) {

            if (strpos($namespace, 'Omnipay') !== 0) {
                continue;
            }

            $matches = array();
            preg_match('/Omnipay\\\(.+?)\\\/', $namespace, $matches);

            if (isset($matches[1])) {
                $gateways[] = $matches[1];
            }
        }

        return $gateways;
    }
public function getGateways()
    {
        $gateways = array();

        foreach ($this->getGatewayNamespaces() as $namespace) {

            if (strpos($namespace, 'Omnipay') !== 0) {
                continue;
            }

            $matches = array();
            preg_match('/Omnipay\\\(.+?)\\\/', $namespace, $matches);

            if (isset($matches[1])) {
                $gateways[] = $matches[1];
            }
        }

        return $gateways;
    }
public function getGateways ( ) { $ gateways = array ( ) ; foreach ( $ this -> getGatewayNamespaces ( ) as $ namespace ) { if ( strpos ( $ namespace , 'Omnipay' ) !== 0 ) { continue ; } $ matches = array ( ) ; preg_match ( '/Omnipay\\\(.+?)\\\/' , $ namespace , $ matches ) ; if ( isset ( $ matches [ 1 ] ) ) { $ gateways [ ] = $ matches [ 1 ] ; } } return $ gateways ; }
Returns an array of gateways extracted from registered namespaces
@return array
Returns an array of gateways extracted from registered namespaces