firefly-iii/app/Rules/Actions/ActionInterface.php

38 lines
754 B
PHP
Raw Normal View History

<?php
/**
* ActionInterface.php
2016-04-01 09:44:46 -05:00
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
namespace FireflyIII\Rules\Actions;
2016-01-15 16:12:52 -06:00
use FireflyIII\Models\RuleAction;
use FireflyIII\Models\TransactionJournal;
/**
* Interface ActionInterface
*
* @package FireflyIII\Rules\Action
*/
interface ActionInterface
{
/**
* TriggerInterface constructor.
*
* @param RuleAction $action
*/
public function __construct(RuleAction $action);
/**
* @param TransactionJournal $journal
*
* @return bool
*/
2016-04-05 15:00:03 -05:00
public function act(TransactionJournal $journal): bool;
}