mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 06:34:33 -04:00
Doc Blocks for settings
This commit is contained in:
parent
a614dc5cda
commit
6368ab10f7
@ -145,6 +145,14 @@ class Client extends BaseModel
|
|||||||
return $this->belongsTo(Currency::class);
|
return $this->belongsTo(Currency::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Returns the entire filtered set
|
||||||
|
* of settings which have been merged from
|
||||||
|
* Client > Group > Company levels
|
||||||
|
*
|
||||||
|
* @return object stdClass object of settings
|
||||||
|
*/
|
||||||
public function getMergedSettings()
|
public function getMergedSettings()
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -160,6 +168,15 @@ class Client extends BaseModel
|
|||||||
return ClientSettings::buildClientSettings(new CompanySettings($this->company->settings), new ClientSettings($this->settings));
|
return ClientSettings::buildClientSettings(new CompanySettings($this->company->settings), new ClientSettings($this->settings));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Returns a single setting
|
||||||
|
* which cascades from
|
||||||
|
* Client > Group > Company
|
||||||
|
*
|
||||||
|
* @param string $setting The Setting parameter
|
||||||
|
* @return mixed The setting requested
|
||||||
|
*/
|
||||||
public function getSetting($setting)
|
public function getSetting($setting)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -124,7 +124,6 @@ class RecurringInvoiceTest extends TestCase
|
|||||||
])->post('/api/v1/signup', $data);
|
])->post('/api/v1/signup', $data);
|
||||||
|
|
||||||
$acc = $response->json();
|
$acc = $response->json();
|
||||||
Log::error($acc);
|
|
||||||
$account = Account::find($this->decodePrimaryKey($acc['data']['id']));
|
$account = Account::find($this->decodePrimaryKey($acc['data']['id']));
|
||||||
|
|
||||||
$company_token = $account->default_company->tokens()->first();
|
$company_token = $account->default_company->tokens()->first();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user