Decl
extends Message
in package
A declaration.
Generated from protobuf message google.api.expr.v1beta1.Decl
Table of Contents
Properties
- $doc : mixed
- The documentation string for the declaration.
- $id : mixed
- The id of the declaration.
- $kind : mixed
- $name : mixed
- The name of the declaration.
Methods
- __construct() : mixed
- Constructor.
- getDoc() : string
- The documentation string for the declaration.
- getFunction() : FunctionDecl|null
- A function declaration.
- getId() : int
- The id of the declaration.
- getIdent() : IdentDecl|null
- An identifier declaration.
- getKind() : string
- getName() : string
- The name of the declaration.
- hasFunction() : mixed
- hasIdent() : mixed
- setDoc() : $this
- The documentation string for the declaration.
- setFunction() : $this
- A function declaration.
- setId() : $this
- The id of the declaration.
- setIdent() : $this
- An identifier declaration.
- setName() : $this
- The name of the declaration.
Properties
$doc
The documentation string for the declaration.
protected
mixed
$doc
= ''
Generated from protobuf field string doc = 3 [json_name = "doc"];
$id
The id of the declaration.
protected
mixed
$id
= 0
Generated from protobuf field int32 id = 1 [json_name = "id"];
$kind
protected
mixed
$kind
$name
The name of the declaration.
protected
mixed
$name
= ''
Generated from protobuf field string name = 2 [json_name = "name"];
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 int $id The id of the declaration. @type string $name The name of the declaration. @type string $doc The documentation string for the declaration. @type \Google\Api\Expr\V1beta1\IdentDecl $ident An identifier declaration. @type \Google\Api\Expr\V1beta1\FunctionDecl $function A function declaration.}
getDoc()
The documentation string for the declaration.
public
getDoc() : string
Generated from protobuf field string doc = 3 [json_name = "doc"];
Return values
stringgetFunction()
A function declaration.
public
getFunction() : FunctionDecl|null
Generated from protobuf field .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
Return values
FunctionDecl|nullgetId()
The id of the declaration.
public
getId() : int
Generated from protobuf field int32 id = 1 [json_name = "id"];
Return values
intgetIdent()
An identifier declaration.
public
getIdent() : IdentDecl|null
Generated from protobuf field .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
Return values
IdentDecl|nullgetKind()
public
getKind() : string
Return values
stringgetName()
The name of the declaration.
public
getName() : string
Generated from protobuf field string name = 2 [json_name = "name"];
Return values
stringhasFunction()
public
hasFunction() : mixed
hasIdent()
public
hasIdent() : mixed
setDoc()
The documentation string for the declaration.
public
setDoc(string $var) : $this
Generated from protobuf field string doc = 3 [json_name = "doc"];
Parameters
- $var : string
Return values
$thissetFunction()
A function declaration.
public
setFunction(FunctionDecl $var) : $this
Generated from protobuf field .google.api.expr.v1beta1.FunctionDecl function = 5 [json_name = "function"];
Parameters
- $var : FunctionDecl
Return values
$thissetId()
The id of the declaration.
public
setId(int $var) : $this
Generated from protobuf field int32 id = 1 [json_name = "id"];
Parameters
- $var : int
Return values
$thissetIdent()
An identifier declaration.
public
setIdent(IdentDecl $var) : $this
Generated from protobuf field .google.api.expr.v1beta1.IdentDecl ident = 4 [json_name = "ident"];
Parameters
- $var : IdentDecl
Return values
$thissetName()
The name of the declaration.
public
setName(string $var) : $this
Generated from protobuf field string name = 2 [json_name = "name"];
Parameters
- $var : string