Skip to content

Commit

Permalink
Supply missing implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed Jan 16, 2022
1 parent c86e882 commit 6aa805e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/BaseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Throwable;
use UnexpectedValueException;

abstract class BaseFactory
abstract class BaseFactory implements HandlerInterface
{
public const RETURN_TYPE = HandlerInterface::class;

Expand Down
10 changes: 1 addition & 9 deletions src/Factories/FactoryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,20 @@
namespace Tatter\Handlers\Factories;

use Tatter\Handlers\BaseFactory;
use Tatter\Handlers\Interfaces\HandlerInterface;

/**
* Factory Factory Class
*
* Used to discover other Factory classes
* which are set up as handlers themselves.
*/
class FactoryFactory extends BaseFactory implements HandlerInterface
class FactoryFactory extends BaseFactory
{
/**
* Use Factories-style class basenames to
* guesstimate a good handlerId.
*/
public static function handlerId(): string
{
return 'factory';
}

/**
* Returns the search path.
*/
public function getPath(): string
{
return 'Factories';
Expand Down
3 changes: 1 addition & 2 deletions tests/_support/Factories/CarFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
namespace Tests\Support\Factories;

use Tatter\Handlers\BaseFactory;
use Tatter\Handlers\Interfaces\HandlerInterface;

class CarFactory extends BaseFactory implements HandlerInterface
class CarFactory extends BaseFactory
{
/**
* Returns the search path.
Expand Down

0 comments on commit 6aa805e

Please sign in to comment.