Skip to content

Commit

Permalink
Fixed abstract function definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Sep 18, 2017
1 parent 538728f commit 7574a6b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to `laravel-licenser` will be documented in this file.

### 2.0.1
- Fixed abstract function definitions

### 2.0.0
- Changed 'HasLicenses' Api

Expand Down
18 changes: 9 additions & 9 deletions src/License.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,34 +107,34 @@ abstract public function used();
/**
* Called before adding to the license count.
*
* Should return true to proceed or false to cancel operation
*
* @return boolean
* @param int $quantity
* @return void
*/
abstract protected function adding();
abstract protected function adding($quantity);

/**
* Called after adding to the license count
*
* @param int $quantity
* @return void
*/
abstract protected function added();
abstract protected function added($quantity);

/**
* Called before subtracting the license count
*
* @param int $quantity
* @return void
*/
abstract protected function subtracting();
abstract protected function subtracting($quantity);

/**
* Called after subtracting the license count
*
* Should return true to proceed or false to cancel operation
*
* @param int $quantity
* @return void
*/
abstract protected function subtracted();
abstract protected function subtracted($quantity);

/**
* Add more licenses
Expand Down

0 comments on commit 7574a6b

Please sign in to comment.