Skip to content

Commit

Permalink
Added abstract name function
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Sep 18, 2017
1 parent 7574a6b commit 9e57a13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 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.

### 3.0.0
- Added abstract name function

### 2.0.1
- Fixed abstract function definitions

Expand Down
7 changes: 7 additions & 0 deletions src/License.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ protected function message($remaining, $quantity)
return "There are not enough licenses available. Tried to allocate {$quantity} but there are only {$remaining} available.";
}

/**
* Returns human readable string for this license
*
* @return string
*/
abstract public function name();

/**
* Returns the current amount of licenses in use
*
Expand Down

0 comments on commit 9e57a13

Please sign in to comment.