for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EncreInformatique\DoctorSenderApi\Endpoints;
class Lists extends Endpoint
{
/*
* SoapClient $client
*/
private $client;
public function __construct($client)
$this->client = $client;
}
/**
* We get the List of Users.
*
* @param $options
public function getList($options)
if (isset($options['isTestList'])) {
$isTestList = true;
} else {
$isTestList = false;
return $this->client->webservice(
'dsUsersListGetAll',
array($isTestList)
);
* We get the list of Fields of a Users List.
public function getFields($options)
if (!isset($options['name'])) {
return ['error' => true, 'msg' => 'no name of list was provided'];
$listName = $options['name'];
if (isset($options['getType'])) {
$getType = true;
$getType = false;
'dsUsersListGetFields',
array($listName, $isTestList, $getType)