class Decl extends Message

Represents a declaration of a named value or function.

A declaration is part of the contract between the expression, the agent evaluating that expression, and the caller requesting evaluation.

Generated from protobuf message google.api.expr.v1alpha1.Decl

Properties

protected $decl_kind

Methods

__construct(array $data = NULL)

Constructor.

string
getName()

The fully qualified name of the declaration.

$this
setName(string $var)

The fully qualified name of the declaration.

getIdent()

Identifier declaration.

$this
setIdent(IdentDecl $var)

Identifier declaration.

getFunction()

Function declaration.

$this
setFunction(FunctionDecl $var)

Function declaration.

string
getDeclKind()

No description

Details

at line 52
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $name
      The fully qualified name of the declaration.
      Declarations are organized in containers and this represents the full path
      to the declaration in its container, as in `google.api.expr.Decl`.
      Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not
      have a name depending on whether the overload is function declaration or a
      function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].
@type \Google\Api\Expr\V1alpha1\Decl\IdentDecl $ident
      Identifier declaration.
@type \Google\Api\Expr\V1alpha1\Decl\FunctionDecl $function
      Function declaration.

}

at line 68
string getName()

The fully qualified name of the declaration.

Declarations are organized in containers and this represents the full path to the declaration in its container, as in google.api.expr.Decl. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].

Generated from protobuf field string name = 1;

Return Value

string

at line 85
$this setName(string $var)

The fully qualified name of the declaration.

Declarations are organized in containers and this represents the full path to the declaration in its container, as in google.api.expr.Decl. Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not have a name depending on whether the overload is function declaration or a function definition containing a result [Expr][google.api.expr.v1alpha1.Expr].

Generated from protobuf field string name = 1;

Parameters

string $var

Return Value

$this

at line 99
IdentDecl getIdent()

Identifier declaration.

Generated from protobuf field .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2;

Return Value

IdentDecl

at line 111
$this setIdent(IdentDecl $var)

Identifier declaration.

Generated from protobuf field .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2;

Parameters

IdentDecl $var

Return Value

$this

at line 125
FunctionDecl getFunction()

Function declaration.

Generated from protobuf field .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;

Return Value

FunctionDecl

at line 137
$this setFunction(FunctionDecl $var)

Function declaration.

Generated from protobuf field .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3;

Parameters

FunctionDecl $var

Return Value

$this

at line 148
string getDeclKind()

Return Value

string