-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApprovalRuleQueryObject.php
More file actions
119 lines (91 loc) · 2.69 KB
/
ApprovalRuleQueryObject.php
File metadata and controls
119 lines (91 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
namespace GraphQL\SchemaObject;
class ApprovalRuleQueryObject extends QueryObject
{
const OBJECT_NAME = "ApprovalRule";
public function selectApprovalsRequired()
{
$this->selectField("approvalsRequired");
return $this;
}
public function selectApproved()
{
$this->selectField("approved");
return $this;
}
public function selectApprovedBy(ApprovalRuleApprovedByArgumentsObject $argsObject = null)
{
$object = new UserCoreConnectionQueryObject("approvedBy");
if ($argsObject !== null) {
$object->appendArguments($argsObject->toArray());
}
$this->selectField($object);
return $object;
}
public function selectContainsHiddenGroups()
{
$this->selectField("containsHiddenGroups");
return $this;
}
public function selectEligibleApprovers(ApprovalRuleEligibleApproversArgumentsObject $argsObject = null)
{
$object = new UserCoreQueryObject("eligibleApprovers");
if ($argsObject !== null) {
$object->appendArguments($argsObject->toArray());
}
$this->selectField($object);
return $object;
}
public function selectGroups(ApprovalRuleGroupsArgumentsObject $argsObject = null)
{
$object = new GroupConnectionQueryObject("groups");
if ($argsObject !== null) {
$object->appendArguments($argsObject->toArray());
}
$this->selectField($object);
return $object;
}
public function selectId()
{
$this->selectField("id");
return $this;
}
public function selectName()
{
$this->selectField("name");
return $this;
}
public function selectOverridden()
{
$this->selectField("overridden");
return $this;
}
public function selectSection()
{
$this->selectField("section");
return $this;
}
public function selectSourceRule(ApprovalRuleSourceRuleArgumentsObject $argsObject = null)
{
$object = new ApprovalRuleQueryObject("sourceRule");
if ($argsObject !== null) {
$object->appendArguments($argsObject->toArray());
}
$this->selectField($object);
return $object;
}
public function selectType()
{
$this->selectField("type");
return $this;
}
public function selectUsers(ApprovalRuleUsersArgumentsObject $argsObject = null)
{
$object = new UserCoreConnectionQueryObject("users");
if ($argsObject !== null) {
$object->appendArguments($argsObject->toArray());
}
$this->selectField($object);
return $object;
}
}