diff --git a/CHANGELOG.md b/CHANGELOG.md index 39527f9..82b919a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to `laravel-licenser` will be documented in this file. +### 3.2.0 +- Added an 'success' function to License + ### 3.1.0 - Added an 'error' function to License diff --git a/src/License.php b/src/License.php index 4dd4ef0..4b75c6a 100644 --- a/src/License.php +++ b/src/License.php @@ -63,13 +63,26 @@ final public function allocate($quantity, $add = false) $this->add($quantity - $remaining); } } + + $this->success($remaining, $quantity); } + /** + * Called when there are enough licenses available + * + * @param int $quantity + * @return void + */ + protected function success($quantity) + { + + } + /** * Called when there are not enough licenses available * - * @param [type] $remaining - * @param [type] $quantity + * @param int $remaining + * @param int $quantity * @return void */ protected function error($remaining, $quantity)