private function validate()
    {
        if (false === $this->options['admin'] && !array_key_exists('uid', $this->data)) {
            throw new TokenException('No uid provided in data and admin option not set.');
        }

        if (array_key_exists('uid', $this->data)) {
            $this->validateUid($this->data['uid']);
        }
    }
private function validate()
    {
        if (false === $this->options['admin'] && !array_key_exists('uid', $this->data)) {
            throw new TokenException('No uid provided in data and admin option not set.');
        }

        if (array_key_exists('uid', $this->data)) {
            $this->validateUid($this->data['uid']);
        }
    }
private function validate ( ) { if ( false === $ this -> options [ 'admin' ] && ! array_key_exists ( 'uid' , $ this -> data ) ) { throw new TokenException ( 'No uid provided in data and admin option not set.' ) ; } if ( array_key_exists ( 'uid' , $ this -> data ) ) { $ this -> validateUid ( $ this -> data [ 'uid' ] ) ; } }
Validates the combination of data and options.

@throws TokenException If the combination of data and options is invalid.
Validates the combination of data and options .