commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ChannelDraft.php
1 <?php
2 
3 declare(strict_types=1);
10 
17 
18 interface ChannelDraft extends JsonObject
19 {
20  public const FIELD_KEY = 'key';
21  public const FIELD_ROLES = 'roles';
22  public const FIELD_NAME = 'name';
23  public const FIELD_DESCRIPTION = 'description';
24  public const FIELD_ADDRESS = 'address';
25  public const FIELD_CUSTOM = 'custom';
26  public const FIELD_GEO_LOCATION = 'geoLocation';
27 
34  public function getKey();
35 
44  public function getRoles();
45 
52  public function getName();
53 
60  public function getDescription();
61 
68  public function getAddress();
69 
76  public function getCustom();
77 
85  public function getGeoLocation();
86 
90  public function setKey(?string $key): void;
91 
95  public function setRoles(?array $roles): void;
96 
100  public function setName(?LocalizedString $name): void;
101 
105  public function setDescription(?LocalizedString $description): void;
106 
110  public function setAddress(?BaseAddress $address): void;
111 
115  public function setCustom(?CustomFieldsDraft $custom): void;
116 
120  public function setGeoLocation(?GeoJson $geoLocation): void;
121 }
setCustom(?CustomFieldsDraft $custom)
setDescription(?LocalizedString $description)