HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/karjerosdiena.lt/wp-content/plugins/wp-all-import/libraries/ast/XmlImportAstLiteral.php
<?php
/**
 * @author Olexandr Zanichkovsky <olexandr.zanichkovsky@zophiatech.com>
 * @package AST
 */

require_once dirname(__FILE__) . '/XmlImportAstExpression.php';

/**
 * Represents a literal node
 *
 * @abstract
 */
abstract class XmlImportAstLiteral extends XmlImportAstExpression
{
  /**
   * Vsalue of a node
   *
   * @var mixed
   */
  private $value;

  /**
   * Creates new instance of a token
   *
   * @param mixed $value
   */
  public function __construct($value)
  {
    $this->value = $value;
  }

  /**
   * Gets a value of a node
   *
   * @return mixed
   */
  public function getValue()
  {
    return $this->value;
  }

  /**
   * String representation of an literal
   *
   * @return string
   */
  public function __toString()
  {
    return get_class($this) . ': "' . $this->getValue() . "\"";
  }
}