Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
vonage
/
client-core
/
src
/
Subaccount
/
Request
Location:
/home/zoteqbgb/public_html/vendor/vonage/client-core/src/Subaccount/Request
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: TransferCreditRequest.php
<?php namespace Vonage\Subaccount\Request; use Vonage\Entity\Hydrator\ArrayHydrateInterface; class TransferCreditRequest implements ArrayHydrateInterface { private string $from; private string $to; private string $amount; private string $reference; public function __construct(protected string $apiKey) { } public function getFrom(): string { return $this->from; } public function setFrom(string $from): self { $this->from = $from; return $this; } public function getTo(): string { return $this->to; } public function setTo(string $to): self { $this->to = $to; return $this; } public function getAmount(): string { return $this->amount; } public function setAmount(string $amount): self { $this->amount = $amount; return $this; } public function getReference(): string { return $this->reference; } public function setReference(string $reference): self { $this->reference = $reference; return $this; } public function getApiKey(): string { return $this->apiKey; } public function setApiKey(string $apiKey): self { $this->apiKey = $apiKey; return $this; } public function fromArray(array $data): static { $this->from = $data['from']; $this->to = $data['to']; $this->amount = $data['amount']; $this->reference = $data['reference']; return $this; } public function toArray(): array { return [ 'from' => $this->getFrom(), 'to' => $this->getTo(), 'amount' => (float)$this->getAmount(), 'reference' => $this->getReference() ]; } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
NumberTransferRequest.php
1,902 bytes
0644
2023-10-02 14:26
âï¸
ðï¸
Rename
TransferBalanceRequest.php
1,847 bytes
0644
2023-10-02 14:26
âï¸
ðï¸
Rename
TransferCreditRequest.php
1,846 bytes
0644
2023-10-02 14:26
âï¸
ðï¸
Rename
Chang
Apply