Skip to content

Commit

Permalink
add ServiceInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
albertborsos committed Sep 6, 2019
1 parent 380199a commit 9924518
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions src/interfaces/ServiceInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace albertborsos\ddd\interfaces;

/**
* Interface ServiceInterface
* @package albertborsos\ddd\interfaces
* @since 2.0.0
*/
interface ServiceInterface
{
public function execute(): bool;
}
3 changes: 2 additions & 1 deletion src/models/AbstractService.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
use albertborsos\ddd\interfaces\EntityInterface;
use albertborsos\ddd\interfaces\FormObject;
use albertborsos\ddd\interfaces\RepositoryInterface;
use albertborsos\ddd\interfaces\ServiceInterface;
use yii\base\Component;

/**
* Class AbstractService
* @package albertborsos\ddd\models
*/
abstract class AbstractService extends Component
abstract class AbstractService extends Component implements ServiceInterface
{
/**
* @var string|RepositoryInterface
Expand Down

0 comments on commit 9924518

Please sign in to comment.