commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Extension
HttpDestinationBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Extension
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
HttpDestinationBuilder
implements
Builder
22
{
27
private
$url;
28
33
private
$authentication;
34
41
public
function
getUrl
()
42
{
43
return
$this->url;
44
}
45
52
public
function
getAuthentication
()
53
{
54
return
$this->authentication instanceof
HttpDestinationAuthenticationBuilder
? $this->authentication->
build
() : $this->authentication;
55
}
56
61
public
function
withUrl
(?
string
$url)
62
{
63
$this->url = $url;
64
65
return
$this;
66
}
67
72
public
function
withAuthentication
(?
HttpDestinationAuthentication
$authentication)
73
{
74
$this->authentication = $authentication;
75
76
return
$this;
77
}
78
83
public
function
withAuthenticationBuilder
(?
HttpDestinationAuthenticationBuilder
$authentication)
84
{
85
$this->authentication = $authentication;
86
87
return
$this;
88
}
89
90
public
function
build
():
HttpDestination
91
{
92
return
new
HttpDestinationModel
(
93
$this->url,
94
$this->authentication instanceof
HttpDestinationAuthenticationBuilder
? $this->authentication->
build
() : $this->authentication
95
);
96
}
97
98
public
static
function
of
():
HttpDestinationBuilder
99
{
100
return
new
self
();
101
}
102
}
Commercetools\Api\Models\Extension\HttpDestinationAuthenticationBuilder
Definition:
HttpDestinationAuthenticationBuilder.php:22
Commercetools\Api\Models\Extension\HttpDestinationAuthenticationBuilder\build
build()
Definition:
HttpDestinationAuthenticationBuilder.php:23
Commercetools\Api\Models\Extension\HttpDestinationBuilder
Definition:
HttpDestinationBuilder.php:22
Commercetools\Api\Models\Extension\HttpDestinationBuilder\getUrl
getUrl()
Definition:
HttpDestinationBuilder.php:41
Commercetools\Api\Models\Extension\HttpDestinationBuilder\withAuthenticationBuilder
withAuthenticationBuilder(?HttpDestinationAuthenticationBuilder $authentication)
Definition:
HttpDestinationBuilder.php:83
Commercetools\Api\Models\Extension\HttpDestinationBuilder\build
build()
Definition:
HttpDestinationBuilder.php:90
Commercetools\Api\Models\Extension\HttpDestinationBuilder\withUrl
withUrl(?string $url)
Definition:
HttpDestinationBuilder.php:61
Commercetools\Api\Models\Extension\HttpDestinationBuilder\getAuthentication
getAuthentication()
Definition:
HttpDestinationBuilder.php:52
Commercetools\Api\Models\Extension\HttpDestinationBuilder\of
static of()
Definition:
HttpDestinationBuilder.php:98
Commercetools\Api\Models\Extension\HttpDestinationBuilder\withAuthentication
withAuthentication(?HttpDestinationAuthentication $authentication)
Definition:
HttpDestinationBuilder.php:72
Commercetools\Api\Models\Extension\HttpDestinationModel
Definition:
HttpDestinationModel.php:21
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Extension\HttpDestinationAuthentication
Definition:
HttpDestinationAuthentication.php:15
Commercetools\Api\Models\Extension\HttpDestination
Definition:
HttpDestination.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Extension
Definition:
AuthorizationHeaderAuthentication.php:9
Generated by
1.9.1