Skip to content

Commit

Permalink
Merge pull request #1 from geosocio/interface
Browse files Browse the repository at this point in the history
Add Interface
  • Loading branch information
davidbarratt committed Aug 20, 2017
2 parents 0c6561e + 46bc412 commit 7a6f4eb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Slugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@
/**
* Slug Utility.
*/
class Slugger
class Slugger implements SluggerInterface
{

/**
* Generates a slug from a string.
*
* @param string $text
*
* @return string
* {@inheritdoc}
*/
public function slug(string $text) : string
{
Expand Down
19 changes: 19 additions & 0 deletions src/SluggerInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace GeoSocio\Slugger;

/**
* Slug Utility.
*/
interface SluggerInterface
{

/**
* Generates a slug from a string.
*
* @param string $text
*
* @return string
*/
public function slug(string $text) : string;
}

0 comments on commit 7a6f4eb

Please sign in to comment.