Token/SplitToken.php
public function toValueHolder(array $metadata = []): SplitTokenValueHolder
    {
        if (null === $this->verifierHash) {
            throw new \RuntimeException('toValueHolder() does not work SplitToken object created with fromString().');
        }

        return new SplitTokenValueHolder($this->selector, $this->verifierHash, $this->expiresAt, $metadata, $this);
    }
public function toValueHolder(array $metadata = []): SplitTokenValueHolder
    {
        if (null === $this->verifierHash) {
            throw new \RuntimeException('toValueHolder() does not work SplitToken object created with fromString().');
        }

        return new SplitTokenValueHolder($this->selector, $this->verifierHash, $this->expiresAt, $metadata, $this);
    }
public function toValueHolder ( array $ metadata = [ ] ) : SplitTokenValueHolder { if ( null === $ this -> verifierHash ) { throw new \ RuntimeException ( 'toValueHolder() does not work SplitToken object created with fromString().' ) ; } return new SplitTokenValueHolder ( $ this -> selector , $ this -> verifierHash , $ this -> expiresAt , $ metadata , $ this ) ; }
Produce a new SplitTokenValue instance.

Note: This method doesn't work when reconstructed from a string.

@param array $metadata

@return SplitTokenValueHolder
Produce a new SplitTokenValue instance .