Rename class.

This commit is contained in:
James Cole 2016-01-13 07:48:43 +01:00
parent 1087b9f5df
commit ce250c85fc
2 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ namespace FireflyIII\Handlers\Events;
use FireflyIII\Events\TransactionJournalStored;
use FireflyIII\Models\Rule;
use FireflyIII\Models\RuleGroup;
use FireflyIII\Rules\Processor;
use FireflyIII\Rules\TriggerProcessor;
use FireflyIII\User;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Facades\Auth;
@ -63,7 +63,7 @@ class FireRulesForStore
/** @var Rule $rule */
foreach ($rules as $rule) {
Log::debug('Now handling rule #' . $rule->id);
$processor = new Processor($rule, $event->journal);
$processor = new TriggerProcessor($rule, $event->journal);
// get some return out of this?
$processor->handle();

View File

@ -1,6 +1,6 @@
<?php
/**
* Processor.php
* TriggerProcessor.php
* Copyright (C) 2016 Sander Dorigo
*
* This software may be modified and distributed under the terms
@ -17,11 +17,11 @@ use FireflyIII\Support\Domain;
use Log;
/**
* Class Processor
* Class TriggerProcessor
*
* @package FireflyIII\Rules
*/
class Processor
class TriggerProcessor
{
/** @var Rule */
protected $rule;
@ -32,7 +32,7 @@ class Processor
private $triggerTypes = [];
/**
* Processor constructor.
* TriggerProcessor constructor.
*/
public function __construct(Rule $rule, TransactionJournal $journal)
{