add client factory, Sms wrapper, further configuration options

This commit is contained in:
2022-07-01 11:48:44 +02:00
parent 924d6640e2
commit b4f7d1a1bd
7 changed files with 231 additions and 1 deletions

View File

@ -0,0 +1,58 @@
<?php
/**
* This Software is the property of Data Development and is protected
* by copyright law - it is NOT Freeware.
* Any unauthorized use of this software without a valid license
* is a violation of the license agreement and will be prosecuted by
* civil and criminal law.
* http://www.shopmodule.com
*
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <support@shopmodule.com>
* @link http://www.oxidmodule.com
*/
namespace D3\Linkmobility4OXID\Application\Model;
use OxidEsales\Eshop\Application\Model\User;
class UserRecipients
{
/**
* @var User
*/
private $user;
public function __construct(User $user)
{
$this->user = $user;
}
public function getSmsRecipients()
{
dumpvar(array_map(
function ($fieldName) {
dumpvar($fieldName);
},
$this->getSmsRecipientFields()
));
}
/**
* @return string[]
*/
public function getSmsRecipientFields(): array
{
return [
'oxmobfon',
'oxfon',
'oxprivfon'
];
}
public function getSmsCountry()
{
}
}