Skip to content

Commit

Permalink
- Added __toString() method
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Nov 15, 2017
1 parent e8f84b5 commit de41c5e
Show file tree
Hide file tree
Showing 2 changed files with 8 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.4.0
- Added __toString() method

### 3.3.0
- Added a getter for the owner of the license

Expand Down
5 changes: 5 additions & 0 deletions src/License.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ protected function getModel(Model $owner)
return $x;
}

public function __toString()
{
return $this->name();
}

/**
* Returns the owner of the license
*
Expand Down

0 comments on commit de41c5e

Please sign in to comment.