Argument Class

Aurora\Database\Query Namespace


Properties

type

Argument type

protected $type: string

value

Argument value

protected $value: mixed

parameters

Argument parameters

protected $parameters = []: array

Constructor

__construct

Constructor

Parameters

  • string $type — Argument type
  • mixed $value — Argument value
  • mixed $parameters — Argument parameters

Signature

public function __construct(string $type, mixed $value, mixed ...$parameters)

Methods

__construct

Constructor

Parameters

  • string $type — Argument type
  • mixed $value — Argument value
  • mixed $parameters — Argument parameters

Signature

public function __construct(string $type, mixed $value, mixed ...$parameters)

raw

Create a raw, unescaped argument

Parameters

  • mixed $value — Argument value

Return Value

  • \Argument

Signature

public function raw(mixed $value): Aurora\Database\Query\Argument

method

Create an argument that refers to a method

Parameters

  • mixed $value — Argument name
  • mixed $parameters — Argument parameters

Return Value

  • \Argument

Signature

public function method(mixed $value, mixed ...$parameters): Aurora\Database\Query\Argument

column

Create an argument that refers to a column

Parameters

  • mixed $value — Column name
  • mixed $alias — Column alias

Return Value

  • \Argument

Signature

public function column(mixed $value, mixed ...$alias): Aurora\Database\Query\Argument

table

Create an argument that refers to a table

Parameters

  • mixed $value — Table name
  • mixed $alias — Table alias

Return Value

  • \Argument

Signature

public function table(mixed $value, mixed ...$alias): Aurora\Database\Query\Argument

compile

Compile argument

Return Value

  • string

Signature

public function compile(): string

Go to top