dhii / action-interface
Interfaces for runnable actions.
dev-develop / 0.1.x-dev
2018-05-25 14:18 UTC
Requires
- php: ^5.3 | ^7.0
- dhii/exception-interface: ^0.2-alpha3
- dhii/factory-interface: ^0.1-alpha2
Requires (Dev)
- codeclimate/php-test-reporter: <=0.3.2
- dhii/php-cs-fixer-config: dev-php-5.3
- phpunit/phpunit: ^4.8
- ptrofimov/xpmock: ^1.1
This package is auto-updated.
Last update: 2024-10-07 04:12:44 UTC
README
Details
Interfaces for runnable actions.
Interfaces
ActionInterface
- Something that can be run.ActionAwareInterface
- Something that is aware of an action.ActionFactoryInterface
- Something that can make an action.ActionFactoryAwareInterface
- Something is aware of an action factory.ActionExceptionInterface
- An exception related to actions.ActionAwareExceptionInterface
- An exception that relates to a specific action.CouldNotRunExceptionInterface
- An exception that occurs when an action cannot be run.
Example
use Dhii\Action\ActionInterface; /** @var ActionInterface $action */ $action->run(); // Does something