-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathCarrierServerInterface.php
102 lines (71 loc) · 2.62 KB
/
CarrierServerInterface.php
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
<?php
namespace Ivoz\Provider\Domain\Model\CarrierServer;
use Ivoz\Core\Domain\Model\LoggableEntityInterface;
use Ivoz\Core\Domain\Model\EntityInterface;
use Ivoz\Core\Domain\DataTransferObjectInterface;
use Ivoz\Core\Domain\ForeignKeyTransformerInterface;
use Ivoz\Provider\Domain\Model\Carrier\CarrierInterface;
use Ivoz\Provider\Domain\Model\Brand\BrandInterface;
use Ivoz\Kam\Domain\Model\TrunksLcrGateway\TrunksLcrGatewayInterface;
/**
* CarrierServerInterface
*/
interface CarrierServerInterface extends LoggableEntityInterface
{
/**
* @codeCoverageIgnore
* @return array<string, mixed>
*/
public function getChangeSet(): array;
/**
* Get id
* @codeCoverageIgnore
* @return integer
*/
public function getId(): ?int;
public function setOutboundProxy(?string $outboundProxy = null): static;
/**
* {@inheritDoc}
*/
public function setIp(?string $ip = null): static;
public function getName(): string;
public function setSipProxy(?string $sipProxy = null): static;
/**
* @param int | null $id
*/
public static function createDto($id = null): CarrierServerDto;
/**
* @internal use EntityTools instead
* @param null|CarrierServerInterface $entity
*/
public static function entityToDto(?EntityInterface $entity, int $depth = 0): ?CarrierServerDto;
/**
* Factory method
* @internal use EntityTools instead
* @param CarrierServerDto $dto
*/
public static function fromDto(DataTransferObjectInterface $dto, ForeignKeyTransformerInterface $fkTransformer): static;
/**
* @internal use EntityTools instead
*/
public function toDto(int $depth = 0): CarrierServerDto;
public function getIp(): ?string;
public function getHostname(): ?string;
public function getPort(): ?int;
public function getUriScheme(): ?int;
public function getTransport(): ?int;
public function getSendPAI(): ?bool;
public function getSendRPID(): ?bool;
public function getAuthNeeded(): string;
public function getAuthUser(): ?string;
public function getAuthPassword(): ?string;
public function getSipProxy(): ?string;
public function getOutboundProxy(): ?string;
public function getFromUser(): ?string;
public function getFromDomain(): ?string;
public function setCarrier(CarrierInterface $carrier): static;
public function getCarrier(): CarrierInterface;
public function getBrand(): BrandInterface;
public function setLcrGateway(TrunksLcrGatewayInterface $lcrGateway): static;
public function getLcrGateway(): ?TrunksLcrGatewayInterface;
}