Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • ColumnRef
  • DDLQuery
  • Expression
  • Insert
  • Join
  • Predicate
  • Query
  • Scalar
  • TableRef

Interfaces

  • IQuery
  • IQueryFragment
  • IQueryValue
  • Overview
  • Namespace
  • Class
  • Tree

Class Scalar

Represent a Scalar value in SQL

Alchemy\core\Element implements Alchemy\core\IElement
Extended by Alchemy\core\query\Scalar implements Alchemy\core\query\IQueryValue
Namespace: Alchemy\core\query
Located at alchemy/core/query/Scalar.php
Methods summary
public
# __construct( mixed $value, mixed $tag = null )

Object constructor

Object constructor

Parameters

$value
mixed
$value Value
$tag
mixed
$tag Optional. Tags will be inferred if not provided

Overrides

Alchemy\core\Element::__construct()
public
# parameters( )
public
# getDescription( mixed $maxdepth = 3, mixed $curdepth = 0 )

Overrides

Alchemy\core\Element::getDescription()
public
# getValue( )

Get the primitive value

Get the primitive value

protected static string
# infer_type( mixed $value )

Infer the type of a given value

Infer the type of a given value

Parameters

$value
mixed
$value

Returns

string
Methods inherited from Alchemy\core\Element
__callStatic(), __clone(), addTag(), addTags(), copy(), define(), define_alias(), getID(), getTag(), getType(), get_definition(), listTags(), normalize_arg()
Properties summary
protected mixed $value
#
Properties inherited from Alchemy\core\Element
$id, $tags, $type
API documentation generated by ApiGen 2.8.0