Get the suit symbol.

@return string
188343
public function symbol()
    {
        switch ($this->suit) {
            case static::CLUB:
                $symbol = self::CLUB_SYMBOL;
                break;
            case static::DIAMOND:
                $symbol = self::DIAMOND_SYMBOL;
                break;
            case static::HEART:
                $symbol = self::HEART_SYMBOL;
                break;
            default:
            case static::SPADE:
                $symbol = self::SPADE_SYMBOL;
                break;
        }

        return $symbol;
    }
945070
public function getSignatureLite(): string
	{
		$data = [
			'merchantId'   => $this->getMerchantConfig()->merchantId,
			'accountId'    => $this->getMerchantConfig()->accountId,
			'merchantData' => $this->getMerchantData(),
			'password'     => $this->getMerchantConfig()->password,
		];

		return md5(
			http_build_query(
				array_filter($data)
			)
		);
	}
30120
public function tok()
    {
        switch ($this->token['type']) {
            case 'space': {
                return '';
            }
            case 'hr': {
                return $this->renderer->hr();
            }
            case 'heading': {
                return $this->renderer->heading(
                    $this->inline->output($this->token['text']),
                    $this->token['depth'],
                    $this->token['text']);
            }
            case 'code': {
                return $this->renderer->code(
                    $this->token['text'],
                    isset($this->token['lang']) ? $this->token['lang'] : null,
                    isset($this->token['escaped']) ? $this->token['escaped'] : false);
            }
            case 'table': {
                $header = '';
                $body = '';
                $i = null;
                $row = null;
                $cell = null;
                $flags = null;
                $j = null;
        
                // header
                $cell = '';
                foreach ($this->token['header'] as $i => $h) {
                    $flags = array(
                        'header' => true,
                        'align' => $this->token['align'][$i]
                    );
                    $cell .= $this->renderer->tablecell(
                        $this->inline->output($h),
                        array(
                            'header' => true,
                            'align' => $this->token['align'][$i]
                        )
                    );
                }
                
                $header .= $this->renderer->tablerow($cell);

                foreach ($this->token['cells'] as $i => $row) {
                    $cell = '';

                    foreach ($row as $j => $c) {
                        $cell .= $this->renderer->tablecell(
                            $this->inline->output($c),
                            array(
                                'header' => false,
                                'align' => $this->token['align'][$j]
                            )
                        );
                    }
        
                    $body .= $this->renderer->tablerow($cell);
                }
                return $this->renderer->table($header, $body);
            }
            case 'blockquote_start': {
                $body = '';
                
                $n = $this->next();
                while ($n['type'] !== 'blockquote_end') {
                    $body .= $this->tok();
                    $n = $this->next();
                }
                
                return $this->renderer->blockquote($body);
            }
            case 'list_start': {
                $body = '';
                $ordered = $this->token['ordered'];
                
                $n = $this->next();
                while ($n['type'] !== 'list_end') {
                    $body .= $this->tok();
                    $n = $this->next();
                }
        
                return $this->renderer->lst($body, $ordered);
            }
            case 'list_item_start': {
                $body = '';
            
                $n = $this->next();
                while ($n['type'] !== 'list_item_end') {
                    $body .= $this->token['type'] === 'text'
                        ? $this->parseText()
                        : $this->tok();
                    $n = $this->next();
                }

                return $this->renderer->listitem($body);
            }
            case 'loose_item_start': {
                $body = '';
                
                $n = $this->next();
                while ($n['type'] !== 'list_item_end') {
                    $body .= $this->tok();
                    $n = $this->next();
                }
        
                return $this->renderer->listitem($body);
            }
            case 'html': {
                $html = !$this->token['pre'] && !$this->options['pedantic']
                    ? $this->inline->output($this->token['text'])
                    : $this->token['text'];
                return $this->renderer->html($html);
            }
            case 'paragraph': {
                return $this->renderer->paragraph($this->inline->output($this->token['text']));
            }
            case 'text': {
                return $this->renderer->paragraph($this->parseText());
            }
        }
    }
1050426
public function getSizeDefinition()
    {
        if (null === $this->size) {
            return '';
        }

        if (null !== $this->scale) {
            return sprintf('(%u,%u)', $this->size, $this->scale);
        }

        return sprintf('(%u)', $this->size);
    }
124659
public function getId()
    {
        $id = $this->props['attribs']['id'];
        $sepChar = '_'; // character to join prefix and id
        $repChar = '_'; // replace \W with this char
        if (!$id && $this->props['attribs']['name']) {
            $id = \preg_replace('/\W/', $repChar, $this->props['attribs']['name']);
            $id = \preg_replace('/'.$repChar.'+/', $repChar, $id);
            $id = \trim($id, $repChar);
            if ($id && $this->props['idPrefix']) {
                $prefix = $this->props['idPrefix'];
                if (\preg_match('/[a-z]$/i', $prefix)) {
                    $prefix = $prefix.$sepChar;
                }
                $id = $prefix.$id;
            }
            if ($id) {
                $this->props['attribs']['id'] = $id;
            }
        }
        return $id;
    }
412866
protected function getTemplateRegexPattern()
    {
        $template = str_replace('.', '\.', $this->template);
        $template = str_replace('*', '[a-zA-Z0-9]*', $template);

        return sprintf('/^%s$/', $template);
    }
969860
private function symbol()
    {
        // If symbol requirement not set match colon if present
        if (null === $this->nextSymbol && $this->lexer->isNextToken(Lexer::T_COLON)) {
            $this->match(Lexer::T_COLON);

            // Set symbol requirement for any remaining value
            return $this->nextSymbol = Lexer::T_COLON;
        }

        // If symbol requirement not set match degree if present
        if (null === $this->nextSymbol && $this->lexer->isNextToken(Lexer::T_DEGREE)) {
            $this->match(Lexer::T_DEGREE);

            // Set requirement for any remaining value
            return $this->nextSymbol = Lexer::T_APOSTROPHE;
        }

        // Match symbol if requirement set and update requirement for next symbol
        switch ($this->nextSymbol) {
            case Lexer::T_COLON:
                $this->match(Lexer::T_COLON);

                return $this->nextSymbol;
            case Lexer::T_DEGREE:
                $this->match(Lexer::T_DEGREE);

                // Next symbol will be minutes
                return $this->nextSymbol = Lexer::T_APOSTROPHE;
            case Lexer::T_APOSTROPHE:
                $this->match(Lexer::T_APOSTROPHE);

                // Next symbol will be seconds
                return $this->nextSymbol = Lexer::T_QUOTE;
            case Lexer::T_QUOTE:
                $this->match(Lexer::T_QUOTE);

                return $this->nextSymbol;
        }

        // Set requirement for any remaining value
        return $this->nextSymbol = false;
    }
831001
public function Nice()
    {
        // return "<span title=\"$this->value\">$" . number_format($this->value, 2) . '</span>';
        $val = $this->config()->currency_symbol . number_format(abs($this->value), 2);
        if ($this->value < 0) {
            return "($val)";
        }

        return $val;
    }
417750
public function character()
    {
        $rows = [];
        $rows[] = ' ' . str_repeat('-', $this->width);
        for ($y = 0; $y < $this->height; $y++) {
            $row = '|';
            for ($x = 0; $x < $this->width; $x++) {
                $row .= $this->space($x, $y)->character();
            }
            $row .= '|';
            $rows[] = $row;
        }
        $rows[] = ' ' . str_repeat('-', $this->width);
        return implode("\n", $rows) . "\n";
    }
1172100
public function ToString()
	{
		$result = $this->LocalName;

		if ( ! empty( $this->Prefix ) )
		{
		    $result = $this->Prefix . ':' . $result;
		}
		return $result;
	}
324894
protected function getPrefix()
  {
    $prefix = "";

    if(count($this->currSib))
    {
      $last = array_pop($this->currSib);

      foreach($this->currSib as $sibling)
      {
        $prefix .=  ($sibling) ? "| " : "  ";
      }

      $prefix .= ($last) ? "\\-" : "|-";
    }

    return $prefix;
  }
1268676
public function getcfg(){
		$str='//'.$this->name.PHP_EOL;
		$str.='define(\''.$this->alias.'\',\''.addslashes($this->getVal()).'\');'.PHP_EOL;
		return $str;
		}
635585
public function getSignatureBaseString() {
		$parts = [
			$this->getNormalizedMethod(),
			$this->getNormalizedUrl(),
			$this->getSignableParameters()
		];

		$parts = Util::urlencode( $parts );

		return implode( '&', $parts );
	}
698272
public function toCamelCase(): self
    {

        return $this->split('/[_\s\W]+/')
            ->reduce(function (Text $carry, Text $piece) {
                return $carry->append($piece->toUpperFirst()->stringify());
            }, self::make())
            ->toLowerFirst();
    }
1278789
protected function getPrefix()
  {
    $prefix = "";

    if(count($this->currSib))
    {
      $last = array_pop($this->currSib);

      foreach($this->currSib as $sibling)
      {
        $prefix .=  ($sibling) ? $this->getImage("tree_line.gif") : $this->getImage("tree_blank.png");
      }

      $prefix .= ($last) ? $this->getImage("tree_end.gif") : $this->getImage("tree_mid.gif");
    }

    return $prefix;
  }
312395
public function getFormatted(): string
    {
        return $this->format(
            [
                $this->getTitle(),
                $this->getFirstName(),
                $this->format($this->middleNames),
                $this->getLastName(),
                $this->getSuffix(),
            ]
        );
    }
58467
public function getLinhaDigitavel()
    {
        if (!empty($this->campoLinhaDigitavel)) {
            return $this->campoLinhaDigitavel;
        }

        $codigo = $this->getCodigoBarras();

        $s1 = substr($codigo, 0, 4) . substr($codigo, 19, 5);
        $s1 = $s1 . Util::modulo10($s1);
        $s1 = substr_replace($s1, '.', 5, 0);

        $s2 = substr($codigo, 24, 10);
        $s2 = $s2 . Util::modulo10($s2);
        $s2 = substr_replace($s2, '.', 5, 0);

        $s3 = substr($codigo, 34, 10);
        $s3 = $s3 . Util::modulo10($s3);
        $s3 = substr_replace($s3, '.', 5, 0);

        $s4 = substr($codigo, 4, 1);

        $s5 = substr($codigo, 5, 14);

        return $this->campoLinhaDigitavel = sprintf('%s %s %s %s %s', $s1, $s2, $s3, $s4, $s5);
    }