Rejection is an object that indicates you are rejecting.
We used this in Blessing Skin Server for plugins.
Run Composer:
composer require blessing/rejection
use Blessing\Rejection;
$rejection = new Rejection('reason');You can pass optional second argument to constructor:
$rejection = new Rejection('reason', ['name' => '']);$rejection->getReason();$rejection->getData();If your data is an array, you pass a key:
$rejection = new Rejection('reason', ['name' => '']);
$rejection->getData('name');MIT License (c) The Blessing Skin Team