Vendor/langcode-conv/zendframework/zend-filter/src/Encrypt/Openssl.php
public function setPublicKey($key)
    {
        if (is_array($key)) {
            foreach ($key as $type => $option) {
                if ($type !== 'public') {
                    $key['public'] = $option;
                    unset($key[$type]);
                }
            }
        } else {
            $key = ['public' => $key];
        }

        return $this->_setKeys($key);
    }
public function setPublicKey($key)
    {
        if (is_array($key)) {
            foreach ($key as $type => $option) {
                if ($type !== 'public') {
                    $key['public'] = $option;
                    unset($key[$type]);
                }
            }
        } else {
            $key = ['public' => $key];
        }

        return $this->_setKeys($key);
    }
public function setPublicKey ( $ key ) { if ( is_array ( $ key ) ) { foreach ( $ key as $ type => $ option ) { if ( $ type !== 'public' ) { $ key [ 'public' ] = $ option ; unset ( $ key [ $ type ] ) ; } } } else { $ key = [ 'public' => $ key ] ; } return $ this -> _setKeys ( $ key ) ; }
Sets public keys

@param  string|array $key Public keys
@return self
Sets public keys