2016-01-12 14:37:48 -06:00
|
|
|
<?php
|
2016-02-05 05:08:25 -06:00
|
|
|
declare(strict_types = 1);
|
2016-01-12 14:37:48 -06:00
|
|
|
/**
|
2016-01-12 14:38:05 -06:00
|
|
|
* TransactionJournalStored.php
|
2016-01-12 14:37:48 -06:00
|
|
|
* Copyright (C) 2016 Sander Dorigo
|
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms
|
|
|
|
* of the MIT license. See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace FireflyIII\Events;
|
2015-03-02 13:05:28 -06:00
|
|
|
|
|
|
|
use FireflyIII\Models\TransactionJournal;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2015-03-24 14:54:25 -05:00
|
|
|
/**
|
2016-01-12 14:38:05 -06:00
|
|
|
* Class TransactionJournalStored
|
2015-03-24 14:54:25 -05:00
|
|
|
*
|
2015-05-10 01:08:07 -05:00
|
|
|
* @codeCoverageIgnore
|
2015-03-24 14:54:25 -05:00
|
|
|
* @package FireflyIII\Events
|
|
|
|
*/
|
2016-01-12 14:37:48 -06:00
|
|
|
class TransactionJournalStored extends Event
|
2015-03-29 14:27:51 -05:00
|
|
|
{
|
2015-03-02 13:05:28 -06:00
|
|
|
|
2015-03-29 14:27:51 -05:00
|
|
|
use SerializesModels;
|
2015-03-02 13:05:28 -06:00
|
|
|
|
|
|
|
public $journal;
|
|
|
|
public $piggyBankId;
|
|
|
|
|
2015-03-29 14:27:51 -05:00
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
2015-05-03 05:58:55 -05:00
|
|
|
* @param TransactionJournal $journal
|
2016-02-05 02:25:15 -06:00
|
|
|
* @param int $piggyBankId
|
2015-03-29 14:27:51 -05:00
|
|
|
*/
|
2016-02-05 02:25:15 -06:00
|
|
|
public function __construct(TransactionJournal $journal, int $piggyBankId)
|
2015-03-29 14:27:51 -05:00
|
|
|
{
|
|
|
|
//
|
|
|
|
$this->journal = $journal;
|
2015-03-02 13:05:28 -06:00
|
|
|
$this->piggyBankId = $piggyBankId;
|
|
|
|
|
2015-03-29 14:27:51 -05:00
|
|
|
}
|
2015-03-02 13:05:28 -06:00
|
|
|
|
|
|
|
}
|