mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 08:56:27 +02:00
style validation fix
This commit is contained in:
parent
f1d47a25ed
commit
017c7fee53
42 changed files with 526 additions and 497 deletions
|
@ -84,22 +84,22 @@ interface AdapterInterface
|
|||
public static function meta_support_status_change(): bool;
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms reception
|
||||
* Does the implemented service support mms reception.
|
||||
*/
|
||||
public static function meta_support_mms_reception(): bool;
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms sending
|
||||
* Does the implemented service support mms sending.
|
||||
*/
|
||||
public static function meta_support_mms_sending(): bool;
|
||||
|
||||
|
||||
/**
|
||||
* Does the implemented service support inbound call callback
|
||||
* Does the implemented service support inbound call callback.
|
||||
*/
|
||||
public static function meta_support_inbound_call_callback(): bool;
|
||||
|
||||
|
||||
/**
|
||||
* Does the implemented service support end call callback
|
||||
* Does the implemented service support end call callback.
|
||||
*/
|
||||
public static function meta_support_end_call_callback(): bool;
|
||||
|
||||
|
@ -118,23 +118,23 @@ interface AdapterInterface
|
|||
* array 'uid' => Uid of the sms created on success
|
||||
* ]
|
||||
*/
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []) : array;
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []): array;
|
||||
|
||||
/**
|
||||
* Method called to read SMSs of the number.
|
||||
*
|
||||
* @return array : [
|
||||
* bool 'error' => false if no error, true else
|
||||
* ?string 'error_message' => null if no error, else error message
|
||||
* array 'smss' => Array of the sms reads [[
|
||||
* (optional) bool 'mms' => default to false, true if mms
|
||||
* (optional) array 'medias' => default to [], list of array representing medias to link to sms, with [
|
||||
* 'filepath' => local file copy of the media,
|
||||
* 'extension' (optional) => extension of the media,
|
||||
* 'mimetype' (optional) => mimetype of the media
|
||||
* ]
|
||||
* ], ...]
|
||||
* ]
|
||||
* bool 'error' => false if no error, true else
|
||||
* ?string 'error_message' => null if no error, else error message
|
||||
* array 'smss' => Array of the sms reads [[
|
||||
* (optional) bool 'mms' => default to false, true if mms
|
||||
* (optional) array 'medias' => default to [], list of array representing medias to link to sms, with [
|
||||
* 'filepath' => local file copy of the media,
|
||||
* 'extension' (optional) => extension of the media,
|
||||
* 'mimetype' (optional) => mimetype of the media
|
||||
* ]
|
||||
* ], ...]
|
||||
* ]
|
||||
*/
|
||||
public function read(): array;
|
||||
|
||||
|
@ -157,50 +157,49 @@ interface AdapterInterface
|
|||
* Method called on reception of a sms notification.
|
||||
*
|
||||
* @return array : [
|
||||
* bool 'error' => false on success, true on error
|
||||
* ?string 'error_message' => null on success, error message else
|
||||
* array 'sms' => array [
|
||||
* string 'at' : Recepetion date format Y-m-d H:i:s,
|
||||
* string 'text' : SMS body,
|
||||
* string 'origin' : SMS sender,
|
||||
* (optional) array 'medias' => default to [], list of array representing medias to link to sms, with [
|
||||
* 'filepath' => local file copy of the media,
|
||||
* 'extension' (optional) => extension of the media,
|
||||
* 'mimetype' (optional) => mimetype of the media
|
||||
* ]
|
||||
* ]
|
||||
* ]
|
||||
* bool 'error' => false on success, true on error
|
||||
* ?string 'error_message' => null on success, error message else
|
||||
* array 'sms' => array [
|
||||
* string 'at' : Recepetion date format Y-m-d H:i:s,
|
||||
* string 'text' : SMS body,
|
||||
* string 'origin' : SMS sender,
|
||||
* (optional) array 'medias' => default to [], list of array representing medias to link to sms, with [
|
||||
* 'filepath' => local file copy of the media,
|
||||
* 'extension' (optional) => extension of the media,
|
||||
* 'mimetype' (optional) => mimetype of the media
|
||||
* ]
|
||||
* ]
|
||||
* ]
|
||||
*/
|
||||
public static function reception_callback(): array;
|
||||
|
||||
/**
|
||||
* Method called on reception of an inbound_call notification
|
||||
* Method called on reception of an inbound_call notification.
|
||||
*
|
||||
* @return array : [
|
||||
* bool 'error' => false on success, true on error
|
||||
* ?string 'error_message' => null on success, error message else
|
||||
* array 'call' => array [
|
||||
* string 'uid' : Uid of the call on the adapter plateform
|
||||
* string 'start' : Start of the call date format Y-m-d H:i:s,
|
||||
* ?string 'end' : End of the call date format Y-m-d H:i:s. If no known end, NULL
|
||||
* string 'origin' : Emitter phone call number. International format.
|
||||
* ]
|
||||
* ]
|
||||
* bool 'error' => false on success, true on error
|
||||
* ?string 'error_message' => null on success, error message else
|
||||
* array 'call' => array [
|
||||
* string 'uid' : Uid of the call on the adapter plateform
|
||||
* string 'start' : Start of the call date format Y-m-d H:i:s,
|
||||
* ?string 'end' : End of the call date format Y-m-d H:i:s. If no known end, NULL
|
||||
* string 'origin' : Emitter phone call number. International format.
|
||||
* ]
|
||||
* ]
|
||||
*/
|
||||
public function inbound_call_callback(): array;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Method called on reception of a end call notification
|
||||
* Method called on reception of a end call notification.
|
||||
*
|
||||
* @return array : [
|
||||
* bool 'error' => false on success, true on error
|
||||
* ?string 'error_message' => null on success, error message else
|
||||
* array 'call' => array [
|
||||
* string 'uid' : Uid of the call on the adapter plateform. Used to find the raspisms local call to update.
|
||||
* string 'end' : End of the call date format Y-m-d H:i:s.
|
||||
* ]
|
||||
* ]
|
||||
* bool 'error' => false on success, true on error
|
||||
* ?string 'error_message' => null on success, error message else
|
||||
* array 'call' => array [
|
||||
* string 'uid' : Uid of the call on the adapter plateform. Used to find the raspisms local call to update.
|
||||
* string 'end' : End of the call date format Y-m-d H:i:s.
|
||||
* ]
|
||||
* ]
|
||||
*/
|
||||
public function end_call_callback(): array;
|
||||
}
|
||||
|
|
|
@ -125,9 +125,9 @@ namespace adapters;
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms reception
|
||||
* Does the implemented service support mms reception.
|
||||
*/
|
||||
public static function meta_support_mms_reception(): bool
|
||||
{
|
||||
|
@ -135,24 +135,24 @@ namespace adapters;
|
|||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms sending
|
||||
* Does the implemented service support mms sending.
|
||||
*/
|
||||
public static function meta_support_mms_sending(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_inbound_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_end_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []) : array
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []): array
|
||||
{
|
||||
$response = [
|
||||
'error' => false,
|
||||
|
@ -230,12 +230,12 @@ namespace adapters;
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public function inbound_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function end_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
|
|
|
@ -135,9 +135,9 @@ namespace adapters;
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms reception
|
||||
* Does the implemented service support mms reception.
|
||||
*/
|
||||
public static function meta_support_mms_reception(): bool
|
||||
{
|
||||
|
@ -145,24 +145,24 @@ namespace adapters;
|
|||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms sending
|
||||
* Does the implemented service support mms sending.
|
||||
*/
|
||||
public static function meta_support_mms_sending(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_inbound_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_end_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []) : array
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []): array
|
||||
{
|
||||
$response = [
|
||||
'error' => false,
|
||||
|
@ -306,12 +306,12 @@ namespace adapters;
|
|||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function inbound_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function end_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
|
|
|
@ -172,9 +172,9 @@ class OctopushShortcodeAdapter implements AdapterInterface
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms reception
|
||||
* Does the implemented service support mms reception.
|
||||
*/
|
||||
public static function meta_support_mms_reception(): bool
|
||||
{
|
||||
|
@ -182,24 +182,24 @@ class OctopushShortcodeAdapter implements AdapterInterface
|
|||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms sending
|
||||
* Does the implemented service support mms sending.
|
||||
*/
|
||||
public static function meta_support_mms_sending(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_inbound_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_end_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []) : array
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []): array
|
||||
{
|
||||
$response = [
|
||||
'error' => false,
|
||||
|
@ -417,12 +417,12 @@ class OctopushShortcodeAdapter implements AdapterInterface
|
|||
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
public function inbound_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function end_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
|
|
|
@ -177,9 +177,9 @@ class OctopushVirtualNumberAdapter implements AdapterInterface
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms reception
|
||||
* Does the implemented service support mms reception.
|
||||
*/
|
||||
public static function meta_support_mms_reception(): bool
|
||||
{
|
||||
|
@ -187,24 +187,24 @@ class OctopushVirtualNumberAdapter implements AdapterInterface
|
|||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms sending
|
||||
* Does the implemented service support mms sending.
|
||||
*/
|
||||
public static function meta_support_mms_sending(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_inbound_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_end_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []) : array
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []): array
|
||||
{
|
||||
$response = [
|
||||
'error' => false,
|
||||
|
@ -417,12 +417,12 @@ class OctopushVirtualNumberAdapter implements AdapterInterface
|
|||
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
public function inbound_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function end_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
|
|
|
@ -169,9 +169,9 @@ namespace adapters;
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms reception
|
||||
* Does the implemented service support mms reception.
|
||||
*/
|
||||
public static function meta_support_mms_reception(): bool
|
||||
{
|
||||
|
@ -179,24 +179,24 @@ namespace adapters;
|
|||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms sending
|
||||
* Does the implemented service support mms sending.
|
||||
*/
|
||||
public static function meta_support_mms_sending(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_inbound_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_end_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []) : array
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []): array
|
||||
{
|
||||
$response = [
|
||||
'error' => false,
|
||||
|
@ -369,12 +369,12 @@ namespace adapters;
|
|||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function inbound_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function end_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
|
|
|
@ -180,9 +180,9 @@ namespace adapters;
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms reception
|
||||
* Does the implemented service support mms reception.
|
||||
*/
|
||||
public static function meta_support_mms_reception(): bool
|
||||
{
|
||||
|
@ -190,24 +190,24 @@ namespace adapters;
|
|||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms sending
|
||||
* Does the implemented service support mms sending.
|
||||
*/
|
||||
public static function meta_support_mms_sending(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_inbound_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_end_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []) : array
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []): array
|
||||
{
|
||||
$response = [
|
||||
'error' => false,
|
||||
|
@ -368,12 +368,12 @@ namespace adapters;
|
|||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function inbound_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function end_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
|
|
|
@ -130,9 +130,9 @@ namespace adapters;
|
|||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms reception
|
||||
* Does the implemented service support mms reception.
|
||||
*/
|
||||
public static function meta_support_mms_reception(): bool
|
||||
{
|
||||
|
@ -140,24 +140,24 @@ namespace adapters;
|
|||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms sending
|
||||
* Does the implemented service support mms sending.
|
||||
*/
|
||||
public static function meta_support_mms_sending(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_inbound_call_callback(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_end_call_callback(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []) : array
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []): array
|
||||
{
|
||||
$response = [
|
||||
'error' => false,
|
||||
|
@ -194,8 +194,8 @@ namespace adapters;
|
|||
* "mms" : true,
|
||||
* "origin" : "+33612345678",
|
||||
* "text" : "SMS Text"
|
||||
* }
|
||||
*/
|
||||
* }.
|
||||
*/
|
||||
public function read(): array
|
||||
{
|
||||
$response = [
|
||||
|
@ -323,7 +323,7 @@ namespace adapters;
|
|||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function inbound_call_callback(): array
|
||||
{
|
||||
$response = [
|
||||
|
@ -352,7 +352,7 @@ namespace adapters;
|
|||
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
public function end_call_callback(): array
|
||||
{
|
||||
$response = [
|
||||
|
|
|
@ -176,7 +176,7 @@ class TwilioVirtualNumberAdapter implements AdapterInterface
|
|||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms reception
|
||||
* Does the implemented service support mms reception.
|
||||
*/
|
||||
public static function meta_support_mms_reception(): bool
|
||||
{
|
||||
|
@ -184,24 +184,24 @@ class TwilioVirtualNumberAdapter implements AdapterInterface
|
|||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support mms sending
|
||||
* Does the implemented service support mms sending.
|
||||
*/
|
||||
public static function meta_support_mms_sending(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_inbound_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function meta_support_end_call_callback(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []) : array
|
||||
public function send(string $destination, string $text, bool $flash = false, bool $mms = false, array $medias = []): array
|
||||
{
|
||||
$response = [
|
||||
'error' => false,
|
||||
|
@ -346,12 +346,12 @@ class TwilioVirtualNumberAdapter implements AdapterInterface
|
|||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function inbound_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
public function end_call_callback(): array
|
||||
{
|
||||
return [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue