src/Client.php
public function getState()
    {
        if (empty($this->state)) {
            $this->setState(
                rtrim(
                    base64_encode(uniqid('', true)),
                    '='
                )
            );
        }
        return $this->state;
    }
public function getState()
    {
        if (empty($this->state)) {
            $this->setState(
                rtrim(
                    base64_encode(uniqid('', true)),
                    '='
                )
            );
        }
        return $this->state;
    }
public function getState ( ) { if ( empty ( $ this -> state ) ) { $ this -> setState ( rtrim ( base64_encode ( uniqid ( '' , true ) ) , '=' ) ) ; } return $ this -> state ; }
Get unique state or specified state

@return string
Get unique state or specified state