commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
ApprovalFlow
ApprovalFlowRejectionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\ApprovalFlow
;
10
11
use
Commercetools\Api\Models\BusinessUnit\Associate
;
12
use
Commercetools\Api\Models\BusinessUnit\AssociateBuilder
;
13
use
Commercetools\Base\Builder
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use
Commercetools\Base\JsonObjectModel
;
17
use
Commercetools\Base\MapperFactory
;
18
use DateTimeImmutable;
19
use stdClass;
20
24
final
class
ApprovalFlowRejectionBuilder
implements
Builder
25
{
30
private
$rejecter;
31
36
private
$rejectedAt;
37
42
private
$reason;
43
50
public
function
getRejecter
()
51
{
52
return
$this->rejecter instanceof
AssociateBuilder
? $this->rejecter->
build
() : $this->rejecter;
53
}
54
61
public
function
getRejectedAt
()
62
{
63
return
$this->rejectedAt;
64
}
65
72
public
function
getReason
()
73
{
74
return
$this->reason;
75
}
76
81
public
function
withRejecter
(?
Associate
$rejecter)
82
{
83
$this->rejecter = $rejecter;
84
85
return
$this;
86
}
87
92
public
function
withRejectedAt
(?DateTimeImmutable $rejectedAt)
93
{
94
$this->rejectedAt = $rejectedAt;
95
96
return
$this;
97
}
98
103
public
function
withReason
(?
string
$reason)
104
{
105
$this->reason = $reason;
106
107
return
$this;
108
}
109
114
public
function
withRejecterBuilder
(?
AssociateBuilder
$rejecter)
115
{
116
$this->rejecter = $rejecter;
117
118
return
$this;
119
}
120
121
public
function
build
():
ApprovalFlowRejection
122
{
123
return
new
ApprovalFlowRejectionModel
(
124
$this->rejecter instanceof
AssociateBuilder
? $this->rejecter->
build
() : $this->rejecter,
125
$this->rejectedAt,
126
$this->reason
127
);
128
}
129
130
public
static
function
of
():
ApprovalFlowRejectionBuilder
131
{
132
return
new
self
();
133
}
134
}
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder
Definition:
ApprovalFlowRejectionBuilder.php:25
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder\withRejectedAt
withRejectedAt(?DateTimeImmutable $rejectedAt)
Definition:
ApprovalFlowRejectionBuilder.php:92
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder\build
build()
Definition:
ApprovalFlowRejectionBuilder.php:121
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder\of
static of()
Definition:
ApprovalFlowRejectionBuilder.php:130
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder\getRejectedAt
getRejectedAt()
Definition:
ApprovalFlowRejectionBuilder.php:61
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder\withRejecter
withRejecter(?Associate $rejecter)
Definition:
ApprovalFlowRejectionBuilder.php:81
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder\withRejecterBuilder
withRejecterBuilder(?AssociateBuilder $rejecter)
Definition:
ApprovalFlowRejectionBuilder.php:114
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder\withReason
withReason(?string $reason)
Definition:
ApprovalFlowRejectionBuilder.php:103
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder\getReason
getReason()
Definition:
ApprovalFlowRejectionBuilder.php:72
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionBuilder\getRejecter
getRejecter()
Definition:
ApprovalFlowRejectionBuilder.php:50
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejectionModel
Definition:
ApprovalFlowRejectionModel.php:24
Commercetools\Api\Models\BusinessUnit\AssociateBuilder
Definition:
AssociateBuilder.php:24
Commercetools\Api\Models\BusinessUnit\AssociateBuilder\build
build()
Definition:
AssociateBuilder.php:92
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\ApprovalFlow\ApprovalFlowRejection
Definition:
ApprovalFlowRejection.php:17
Commercetools\Api\Models\BusinessUnit\Associate
Definition:
Associate.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\ApprovalFlow
Definition:
ApprovalFlow.php:9
Generated by
1.9.1