class FunctionDecl extends Message

A function declaration.

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

Methods

__construct(array $data = NULL)

Constructor.

RepeatedField
getArgs()

The function arguments.

$this
setArgs(IdentDecl[]|RepeatedField $var)

The function arguments.

getReturnType()

Optional declared return type.

$this
setReturnType(DeclType $var)

Optional declared return type.

bool
getReceiverFunction()

If the first argument of the function is the receiver.

$this
setReceiverFunction(bool $var)

If the first argument of the function is the receiver.

Details

at line 51
__construct(array $data = NULL)

Constructor.

Parameters

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

@type \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.

}

at line 62
RepeatedField getArgs()

The function arguments.

Generated from protobuf field repeated .google.api.expr.v1beta1.IdentDecl args = 1;

Return Value

RepeatedField

at line 74
$this setArgs(IdentDecl[]|RepeatedField $var)

The function arguments.

Generated from protobuf field repeated .google.api.expr.v1beta1.IdentDecl args = 1;

Parameters

IdentDecl[]|RepeatedField $var

Return Value

$this

at line 88
DeclType getReturnType()

Optional declared return type.

Generated from protobuf field .google.api.expr.v1beta1.DeclType return_type = 2;

Return Value

DeclType

at line 100
$this setReturnType(DeclType $var)

Optional declared return type.

Generated from protobuf field .google.api.expr.v1beta1.DeclType return_type = 2;

Parameters

DeclType $var

Return Value

$this

at line 114
bool getReceiverFunction()

If the first argument of the function is the receiver.

Generated from protobuf field bool receiver_function = 3;

Return Value

bool

at line 126
$this setReceiverFunction(bool $var)

If the first argument of the function is the receiver.

Generated from protobuf field bool receiver_function = 3;

Parameters

bool $var

Return Value

$this