commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ApprovalRule
ApprovalRule.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ApprovalRule
;
10
11
use
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReference
;
12
use
Commercetools\Api\Models\Common\BaseResource
;
13
use
Commercetools\Api\Models\Common\CreatedBy
;
14
use
Commercetools\Api\Models\Common\LastModifiedBy
;
15
use
Commercetools\Api\Models\Type\CustomFields
;
16
use
Commercetools\Base\DateTimeImmutableCollection
;
17
use
Commercetools\Base\JsonObject
;
18
use DateTimeImmutable;
19
20
interface
ApprovalRule
extends
BaseResource
21
{
22
public
const
FIELD_CREATED_BY
=
'createdBy'
;
23
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
24
public
const
FIELD_KEY
=
'key'
;
25
public
const
FIELD_NAME
=
'name'
;
26
public
const
FIELD_DESCRIPTION
=
'description'
;
27
public
const
FIELD_STATUS
=
'status'
;
28
public
const
FIELD_PREDICATE
=
'predicate'
;
29
public
const
FIELD_APPROVERS
=
'approvers'
;
30
public
const
FIELD_REQUESTERS
=
'requesters'
;
31
public
const
FIELD_BUSINESS_UNIT
=
'businessUnit'
;
32
public
const
FIELD_CUSTOM
=
'custom'
;
33
40
public
function
getId
();
41
48
public
function
getVersion
();
49
56
public
function
getCreatedAt
();
57
64
public
function
getCreatedBy
();
65
72
public
function
getLastModifiedAt
();
73
80
public
function
getLastModifiedBy
();
81
88
public
function
getKey
();
89
96
public
function
getName
();
97
104
public
function
getDescription
();
105
112
public
function
getStatus
();
113
120
public
function
getPredicate
();
121
128
public
function
getApprovers
();
129
136
public
function
getRequesters
();
137
144
public
function
getBusinessUnit
();
145
152
public
function
getCustom
();
153
157
public
function
setId
(?
string
$id): void;
158
162
public
function
setVersion
(?
int
$version): void;
163
167
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
168
172
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
173
177
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
178
182
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
183
187
public
function
setKey
(?
string
$key): void;
188
192
public
function
setName
(?
string
$name): void;
193
197
public
function
setDescription
(?
string
$description): void;
198
202
public
function
setStatus
(?
string
$status): void;
203
207
public
function
setPredicate
(?
string
$predicate): void;
208
212
public
function
setApprovers
(?
ApproverHierarchy
$approvers): void;
213
217
public
function
setRequesters
(?
RuleRequesterCollection
$requesters): void;
218
222
public
function
setBusinessUnit
(?
BusinessUnitKeyReference
$businessUnit): void;
223
227
public
function
setCustom
(?
CustomFields
$custom): void;
228
}
Commercetools\Api\Models\ApprovalRule\RuleRequesterCollection
Definition:
RuleRequesterCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\ApprovalRule\ApprovalRule
Definition:
ApprovalRule.php:21
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_BUSINESS_UNIT
const FIELD_BUSINESS_UNIT
Definition:
ApprovalRule.php:31
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
ApprovalRule.php:22
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setKey
setKey(?string $key)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setPredicate
setPredicate(?string $predicate)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_APPROVERS
const FIELD_APPROVERS
Definition:
ApprovalRule.php:29
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_STATUS
const FIELD_STATUS
Definition:
ApprovalRule.php:27
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getDescription
getDescription()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getId
getId()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_PREDICATE
const FIELD_PREDICATE
Definition:
ApprovalRule.php:28
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setDescription
setDescription(?string $description)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
ApprovalRule.php:32
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_NAME
const FIELD_NAME
Definition:
ApprovalRule.php:25
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setBusinessUnit
setBusinessUnit(?BusinessUnitKeyReference $businessUnit)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setName
setName(?string $name)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getStatus
getStatus()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setVersion
setVersion(?int $version)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getApprovers
getApprovers()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getKey
getKey()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getCustom
getCustom()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getName
getName()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
ApprovalRule.php:23
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getRequesters
getRequesters()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getVersion
getVersion()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setId
setId(?string $id)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_REQUESTERS
const FIELD_REQUESTERS
Definition:
ApprovalRule.php:30
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getPredicate
getPredicate()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setRequesters
setRequesters(?RuleRequesterCollection $requesters)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setStatus
setStatus(?string $status)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_KEY
const FIELD_KEY
Definition:
ApprovalRule.php:24
Commercetools\Api\Models\ApprovalRule\ApprovalRule\getBusinessUnit
getBusinessUnit()
Commercetools\Api\Models\ApprovalRule\ApprovalRule\setApprovers
setApprovers(?ApproverHierarchy $approvers)
Commercetools\Api\Models\ApprovalRule\ApprovalRule\FIELD_DESCRIPTION
const FIELD_DESCRIPTION
Definition:
ApprovalRule.php:26
Commercetools\Api\Models\ApprovalRule\ApproverHierarchy
Definition:
ApproverHierarchy.php:15
Commercetools\Api\Models\BusinessUnit\BusinessUnitKeyReference
Definition:
BusinessUnitKeyReference.php:16
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ApprovalRule
Definition:
ApprovalRule.php:9
Generated by
1.9.1