blessing / rejection
Rejection is an object that indicates you are rejecting.
Installs: 2 279
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- illuminate/support: ^6 || ^7 || ^8 || ^9 || ^10
Requires (Dev)
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2024-11-30 02:10:51 UTC
README
Rejection is an object that indicates you are rejecting.
We used this in Blessing Skin Server for plugins.
💿 Install
Run Composer:
composer require blessing/rejection
🔨 Usage
Create a rejection
use Blessing\Rejection; $rejection = new Rejection('reason');
You can pass optional second argument to constructor:
$rejection = new Rejection('reason', ['name' => '']);
Retrieve reason
$rejection->getReason();
Retrieve data:
$rejection->getData();
If your data is an array, you pass a key:
$rejection = new Rejection('reason', ['name' => '']); $rejection->getData('name');
📄 License
MIT License (c) The Blessing Skin Team