mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
57 lines
2.1 KiB
PHP
57 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2023. 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',
|
|
];
|
|
}
|