mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 06:46:25 +02:00
rename all instances of 'datas' to 'data'
This commit is contained in:
parent
730ac8963b
commit
61d644c247
48 changed files with 316 additions and 316 deletions
|
@ -21,28 +21,28 @@ namespace adapters;
|
|||
class TestAdapter implements AdapterInterface
|
||||
{
|
||||
/**
|
||||
* Datas used to configure interaction with the implemented service. (e.g : Api credentials, ports numbers, etc.).
|
||||
* Data used to configure interaction with the implemented service. (e.g : Api credentials, ports numbers, etc.).
|
||||
*/
|
||||
private $datas;
|
||||
private $data;
|
||||
|
||||
/**
|
||||
* Path for the file to read sms as a json from.
|
||||
*/
|
||||
private $test_file_read = PWD_DATAS . '/test_read_sms.json';
|
||||
private $test_file_read = PWD_DATA . '/test_read_sms.json';
|
||||
|
||||
/**
|
||||
* Path for the file to write sms as a json in.
|
||||
*/
|
||||
private $test_file_write = PWD_DATAS . '/test_write_sms.json';
|
||||
private $test_file_write = PWD_DATA . '/test_write_sms.json';
|
||||
|
||||
/**
|
||||
* Adapter constructor, called when instanciated by RaspiSMS.
|
||||
*
|
||||
* @param json string $datas : JSON string of the datas to configure interaction with the implemented service
|
||||
* @param json string $data : JSON string of the data to configure interaction with the implemented service
|
||||
*/
|
||||
public function __construct(string $datas)
|
||||
public function __construct(string $data)
|
||||
{
|
||||
$this->datas = $datas;
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -81,11 +81,11 @@ namespace adapters;
|
|||
}
|
||||
|
||||
/**
|
||||
* List of entries we want in datas for the adapter.
|
||||
* List of entries we want in data for the adapter.
|
||||
*
|
||||
* @return array : Eachline line is a field as an array with keys : name, title, description, required
|
||||
*/
|
||||
public static function meta_datas_fields(): array
|
||||
public static function meta_data_fields(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue