2016-04-26 20:49:22 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* EntryBill.php
|
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
|
|
*
|
2016-10-05 06:52:15 +02:00
|
|
|
* 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.
|
2016-04-26 20:49:22 +02:00
|
|
|
*/
|
|
|
|
|
2016-05-20 12:27:31 +02:00
|
|
|
declare(strict_types = 1);
|
|
|
|
|
2016-04-26 20:49:22 +02:00
|
|
|
namespace FireflyIII\Export\Entry;
|
|
|
|
|
|
|
|
use FireflyIII\Models\Bill;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class EntryBill
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Export\Entry
|
|
|
|
*/
|
|
|
|
class EntryBill
|
|
|
|
{
|
2016-05-15 17:46:53 +02:00
|
|
|
/** @var int */
|
2016-04-26 21:40:15 +02:00
|
|
|
public $billId = '';
|
2016-04-26 20:49:22 +02:00
|
|
|
/** @var string */
|
|
|
|
public $name = '';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* EntryBill constructor.
|
|
|
|
*
|
|
|
|
* @param Bill $bill
|
|
|
|
*/
|
|
|
|
public function __construct(Bill $bill = null)
|
|
|
|
{
|
|
|
|
if (!is_null($bill)) {
|
2016-04-26 21:40:15 +02:00
|
|
|
$this->billId = $bill->id;
|
|
|
|
$this->name = $bill->name;
|
2016-04-26 20:49:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-12 15:10:03 +02:00
|
|
|
}
|