public function getSelector(bool $refresh = false): string
    {
        if (!isset($this->selector) || $refresh) {
            $this->generateSelector();
        }

        return $this->selector;
    }
public function getSelector(bool $refresh = false): string
    {
        if (!isset($this->selector) || $refresh) {
            $this->generateSelector();
        }

        return $this->selector;
    }
public function getSelector ( bool $ refresh = false ) : string { if ( ! isset ( $ this -> selector ) || $ refresh ) { $ this -> generateSelector ( ) ; } return $ this -> selector ; }
Returns the selector.

Will generate a random and unique selector when no selector is set.

@return string
Returns the selector .