ReplaceTokens::createToken PHP Method

createToken() public method

Adds a token element to the map of tokens to replace.
public createToken ( ) : object
return object The token added to the map of replacements. Must not be null.
    function createToken()
    {
        $num = array_push($this->_tokens, new Token());
        return $this->_tokens[$num - 1];
    }