mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
556b2ab1c9
* Return blank object for group settings * Implement Quote Store * Clean up Logging
47 lines
959 B
PHP
47 lines
959 B
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\Transformers;
|
|
|
|
use App\Models\GroupSetting;
|
|
use App\Utils\Traits\MakesHash;
|
|
|
|
/**
|
|
* class ClientTransformer
|
|
*/
|
|
class GroupSettingTransformer extends EntityTransformer
|
|
{
|
|
use MakesHash;
|
|
|
|
protected $defaultIncludes = [
|
|
];
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $availableIncludes = [
|
|
];
|
|
|
|
|
|
/**
|
|
* @param Client $client
|
|
*
|
|
* @return array
|
|
*/
|
|
public function transform(GroupSetting $group_setting)
|
|
{
|
|
return [
|
|
'id' => $this->encodePrimaryKey($group_setting->id),
|
|
'name' => (string)$group_setting->name ?: '',
|
|
'settings' => $group_setting->settings ?: new \stdClass,
|
|
];
|
|
}
|
|
} |