Gets human readable value for a given card.

@return string
10530
public function shortName()
    {
        if ($this->isAce()) {
            return self::ACE_SYMBOL;
        }
        if ($this->isKing()) {
            return self::KING_SYMBOL;
        }
        if ($this->isQueen()) {
            return self::QUEEN_SYMBOL;
        }
        if ($this->isJack()) {
            return self::JACK_SYMBOL;
        }
        if ($this->value() === 10) {
            return self::TEN_SYMBOL;
        }

        return (string) $this->value();
    }
1037109
public function getDisplayValue()
    {

        $value = parent::getValue();

        if (!empty($value)) {
            try {
                $date = substr($value, 0, strlen(date($this->getFormatStore())));
                $value = \Carbon\Carbon::createFromFormat($this->getFormatStore(), $date);
            } catch (\InvalidArgumentException $e) {
                throw $e;
            } finally {
                $value = $value instanceof \Carbon\Carbon ? $value->format($this->getFormatDisplay()) : '';
            }
        }

        return $value;
    }
225458
public function toValue() {
    $text = $this->getText();
    $quote_char = $text[0];
    $text = substr($text, 1, -1);
    if ($quote_char === '"') {
      $rules = array(
        preg_quote('\\\\') => '\\',
        preg_quote('\n') => "\n",
        preg_quote('\t') => "\t",
        preg_quote('\"') => '"',
        preg_quote('\$') => '$',
        preg_quote('\r') => "\r",
        preg_quote('\v') => "\v",
        preg_quote('\f') => "\f",
        preg_quote('\e') => "\e",
        '\\\\[0-7]{1,3}' => '__octal__',
        '\\\\x[0-9A-Fa-f]{1,2}' => '__hex__',
      );
    }
    else {
      $rules = array(
        preg_quote('\\\\') => '\\',
        preg_quote("\\'") => "'"
      );
    }
    $replacements = array_values($rules);
    $regex = '@(' . implode(')|(', array_keys($rules)) . ')@';
    return preg_replace_callback($regex, function ($matches) use ($replacements) {
      // find the first non-empty element (but skipping $matches[0]) using a quick for loop
      for ($i = 1; '' === $matches[$i]; ++$i);

      $match = $matches[0];
      $replacement = $replacements[$i - 1];
      if ($replacement === '__octal__') {
        $replacement = chr(octdec(substr($match, 1)));
      }
      elseif ($replacement === '__hex__') {
        $replacement = chr(hexdec(substr($match, 2)));
      }
      return $replacement;
    }, $text);
  }
294880
public function groupByValue()
    {
        return $this
            ->sortByDesc(function (Card $card) {
                return $card->value();
            }, SORT_NUMERIC)
            ->groupBy(function (Card $card) {
                return $card->value();
            })
            ->sortByDesc(function ($group) {
                return count($group);
            }, SORT_NUMERIC)
            ->values();
    }
327719
public function getFormattedGiftCardCost()
    {
        return \OxidEsales\Eshop\Core\Registry::getLang()->formatCurrency($this->oxorder__oxgiftcardcost->value, $this->getOrderCurrency());
    }
150131
public function getValue()
    {
        if (null == $this->is_valid && null != $this->user_value) {
            $this->validate();
        }
        if (null !== $this->user_value && $this->is_valid) {
            if ('' === $this->user_value && true === $this->null_on_empty) {
                return null;
            }
            return $this->user_value;
        } else {
            if ('' === $this->default_value && true === $this->null_on_empty) {
                return null;
            }
            return $this->default_value;
        }
    }
974651
public function GetValue()
    {
        $dValue = $this->fieldValue;
        $oBasket = TShopBasket::GetInstance();
        $dBasketValueApplicableForDiscount = $oBasket->GetBasketSumForDiscount($this);
        $dValue = $this->GetValueForBasketValue($dBasketValueApplicableForDiscount);

        return $dValue;
    }
749000
public function getETag()
    {
        if (isset($this->cardData['etag'])) {
            return $this->cardData['etag'];
        } else {
            $data = $this->get();
            if (is_string($data)) {
                return '"'.md5($data).'"';
            } else {
                // We refuse to calculate the md5 if it's a stream.
                return null;
            }
        }
    }
984799
public function switchAceValue()
    {
        return $this->map(function (Card $card) {
            if ($card->isAce() === false) {
                return $card;
            }

            return new Card(14, $card->suit());
        });
    }
853191
public function getValue()
    {
        return (((int) $this->getRed() & 0xFF) << 16) |
                (((int) $this->getGreen() & 0xFF) << 8) |
                (((int) $this->getBlue() & 0xFF)) |
                (((int) $this->getAlpha() & 0xFF) << 24);
    }
561479
public function getCardReference()
    {
        if (isset($this->data['object']) && 'customer' === $this->data['object']) {
            if (isset($this->data['default_source']) && !empty($this->data['default_source'])) {
                return $this->data['default_source'];
            }

            if (isset($this->data['default_card']) && !empty($this->data['default_card'])) {
                return $this->data['default_card'];
            }
            
            if (!empty($this->data['id'])) {
                return $this->data['id'];
            }
        }
        if (isset($this->data['object']) && 'card' === $this->data['object']) {
            if (!empty($this->data['id'])) {
                return $this->data['id'];
            }
        }
        if (isset($this->data['object']) && 'charge' === $this->data['object']) {
            if (! empty($this->data['source'])) {
                if (! empty($this->data['source']['id'])) {
                    return $this->data['source']['id'];
                }
            }
        }

        return null;
    }
580316
public function getValue()
    {
        $parts = $this->literalParts;
        
        reset($this->encodedParts);
        ksort($this->encodedParts);
        while (current($this->encodedParts) !== false) {
            $parts[key($this->encodedParts)] = $this->getNextEncodedValue();
        }
        
        ksort($parts);
        return array_reduce(
            $parts,
            function ($carry, $item) {
                return $carry . $item;
            },
            ''
        );
    }
500967
public function getValue()
	{
		$grammar = Manager::connection()->getQueryGrammar();
		return vsprintf( $this->value, array_map(function($val) use($grammar) {
			return $grammar->wrap($val);
		}, $this->replace) );
	}
434742
public function getCardNumber() : ?string 
    {
        if ( ! $this->hasCardNumber()) {
            $this->setCardNumber($this->getDefaultCardNumber());
        }
        return $this->cardNumber;
    }
1099303
public function getFPriceVat()
    {
        if ($this->getPrice()) {
            return \OxidEsales\Eshop\Core\Registry::getLang()->formatCurrency($this->getPrice()->getVatValue());
        }
    }
1327393
private function cardHeader() : string
    {
        $html = '';

        if ($this->header !== null) {
            $html .= '<div class="card-header' . $this->elementAttr('header') .
                '"' . $this->elementAttr('header') . '>' . $this->header . '</div>';
        }

        return $html;
    }
1194260
protected function userPayment()
    {
        $ReturningParams = Input::get('ReturningParams');
        $ReturningParams = $this->decrypt($ReturningParams);

        $paramsArray = explode(",", $ReturningParams);
        $Amount = $paramsArray[0];
        $SaleOrderId = $paramsArray[1];
        $RefId = $paramsArray[2];
        $ResCode = $paramsArray[3];
        $ResMessage = $paramsArray[4];
        $PayGateTranID = $paramsArray[5];
        $RRN = $paramsArray[6];
        $LastFourDigitOfPAN = $paramsArray[7];


        $this->trackingCode = $PayGateTranID;
        $this->cardNumber = $LastFourDigitOfPAN;
        $this->refId = $RefId;


        if ($ResCode == '0' || $ResCode == '00') {
            return true;
        }

        $this->transactionFailed();
        $this->newLog($ResCode, $ResMessage . " - " . AsanpardakhtException::getMessageByCode($ResCode));
        throw new AsanpardakhtException($ResCode);
    }