Skip to content

Commit

Permalink
Merge pull request #16 from TheDragonCode/2.x
Browse files Browse the repository at this point in the history
Added interface for actions
  • Loading branch information
Andrey Helldar authored Dec 7, 2021
2 parents 5b99abb + b5f7c46 commit ac9d369
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/LaravelActions/Actionable.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/*
* This file is part of the "dragon-code/contracts" project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Andrey Helldar <[email protected]>
*
* @copyright 2021 Andrey Helldar
*
* @license MIT
*
* @see https://github.com/TheDragonCode/contracts
*/

declare(strict_types=1);

namespace DragonCode\Contracts\LaravelActions;

interface Actionable
{
/**
* Run the actions.
*/
public function up(): void;

/**
* Reverse the actions.
*/
public function down(): void;
}

0 comments on commit ac9d369

Please sign in to comment.