2015-03-02 13:05:28 -06:00
|
|
|
<?php namespace FireflyIII\Events;
|
|
|
|
|
|
|
|
use FireflyIII\Models\TransactionJournal;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2015-03-24 14:54:25 -05:00
|
|
|
/**
|
|
|
|
* Class JournalCreated
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Events
|
|
|
|
*/
|
2015-03-29 14:27:51 -05:00
|
|
|
class JournalCreated extends Event
|
|
|
|
{
|
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
|
|
|
|
* @param $piggyBankId
|
2015-03-29 14:27:51 -05:00
|
|
|
*/
|
|
|
|
public function __construct(TransactionJournal $journal, $piggyBankId)
|
|
|
|
{
|
|
|
|
//
|
|
|
|
$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
|
|
|
|
|
|
|
}
|