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

View File

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