1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Models/Currency.php
2024-04-12 14:15:41 +10:00

57 lines
2.1 KiB
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Models;
/**
* App\Models\Currency
*
* @property int $id
* @property string $name
* @property string $symbol
* @property int $precision
* @property string $thousand_separator
* @property string $decimal_separator
* @property string $code
* @property bool $swap_currency_symbol
* @property float $exchange_rate
* @method static \Illuminate\Database\Eloquent\Builder|StaticModel company()
* @method static \Illuminate\Database\Eloquent\Builder|StaticModel exclude($columns)
* @method static \Illuminate\Database\Eloquent\Builder|Currency newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Currency newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Currency query()
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereDecimalSeparator($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereExchangeRate($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency wherePrecision($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereSwapCurrencySymbol($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereSymbol($value)
* @method static \Illuminate\Database\Eloquent\Builder|Currency whereThousandSeparator($value)
* @mixin \Eloquent
*/
class Currency extends StaticModel
{
public $timestamps = false;
protected $guarded = ['id'];
protected $casts = [
'exchange_rate' => 'float',
'swap_currency_symbol' => 'boolean',
'updated_at' => 'timestamp',
'created_at' => 'timestamp',
'deleted_at' => 'timestamp',
'precision' => 'integer',
];
}