mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 10:39:28 +00:00
44 lines
803 B
PHP
44 lines
803 B
PHP
<?php
|
|
/**
|
|
* EntryBill.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms of the
|
|
* Creative Commons Attribution-ShareAlike 4.0 International License.
|
|
*
|
|
* See the LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace FireflyIII\Export\Entry;
|
|
|
|
use FireflyIII\Models\Bill;
|
|
|
|
/**
|
|
* Class EntryBill
|
|
*
|
|
* @package FireflyIII\Export\Entry
|
|
*/
|
|
class EntryBill
|
|
{
|
|
/** @var int */
|
|
public $billId = '';
|
|
/** @var string */
|
|
public $name = '';
|
|
|
|
/**
|
|
* EntryBill constructor.
|
|
*
|
|
* @param Bill $bill
|
|
*/
|
|
public function __construct(Bill $bill = null)
|
|
{
|
|
if (!is_null($bill)) {
|
|
$this->billId = $bill->id;
|
|
$this->name = $bill->name;
|
|
}
|
|
}
|
|
|
|
}
|