Documentation

FunctionDecl extends Message
in package

A function declaration.

Generated from protobuf message google.api.expr.v1beta1.FunctionDecl

Table of Contents

Properties

$receiver_function  : mixed
If the first argument of the function is the receiver.
$return_type  : mixed
Optional declared return type.
$args  : mixed
The function arguments.

Methods

__construct()  : mixed
Constructor.
clearReturnType()  : mixed
getArgs()  : RepeatedField
The function arguments.
getReceiverFunction()  : bool
If the first argument of the function is the receiver.
getReturnType()  : DeclType|null
Optional declared return type.
hasReturnType()  : mixed
setArgs()  : $this
The function arguments.
setReceiverFunction()  : $this
If the first argument of the function is the receiver.
setReturnType()  : $this
Optional declared return type.

Properties

$receiver_function

If the first argument of the function is the receiver.

protected mixed $receiver_function = false

Generated from protobuf field bool receiver_function = 3 [json_name = "receiverFunction"];

$return_type

Optional declared return type.

protected mixed $return_type = null

Generated from protobuf field .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"];

$args

The function arguments.

private mixed $args

Generated from protobuf field repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type array<\Google\Api\Expr\V1beta1\IdentDecl>|\Google\Protobuf\Internal\RepeatedField $args
      The function arguments.
@type \Google\Api\Expr\V1beta1\DeclType $return_type
      Optional declared return type.
@type bool $receiver_function
      If the first argument of the function is the receiver.

}

getArgs()

The function arguments.

public getArgs() : RepeatedField

Generated from protobuf field repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];

Return values
RepeatedField

getReceiverFunction()

If the first argument of the function is the receiver.

public getReceiverFunction() : bool

Generated from protobuf field bool receiver_function = 3 [json_name = "receiverFunction"];

Return values
bool

getReturnType()

Optional declared return type.

public getReturnType() : DeclType|null

Generated from protobuf field .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"];

Return values
DeclType|null

setArgs()

The function arguments.

public setArgs(array<string|int, IdentDecl>|RepeatedField $var) : $this

Generated from protobuf field repeated .google.api.expr.v1beta1.IdentDecl args = 1 [json_name = "args"];

Parameters
$var : array<string|int, IdentDecl>|RepeatedField
Return values
$this

setReceiverFunction()

If the first argument of the function is the receiver.

public setReceiverFunction(bool $var) : $this

Generated from protobuf field bool receiver_function = 3 [json_name = "receiverFunction"];

Parameters
$var : bool
Return values
$this

setReturnType()

Optional declared return type.

public setReturnType(DeclType $var) : $this

Generated from protobuf field .google.api.expr.v1beta1.DeclType return_type = 2 [json_name = "returnType"];

Parameters
$var : DeclType
Return values
$this

        
On this page

Search results