HEX
Server: Apache
System: Linux 4801f1b1.ptr.provps.com 6.17.8-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 13 18:02:25 EST 2025 x86_64
User: nassaugo (1004)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nassaugo/www/wp-content/plugins/wp-all-import-pro/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() . "\"";
  }
}