Skip to content

Commit

Permalink
shorten generator class names
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 28, 2017
1 parent 9e79b85 commit d5f666e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Spatie\CalendarLinks\Link;
use Spatie\CalendarLinks\Generator;

class GoogleGenerator implements Generator
class Google implements Generator
{
public function generate(Link $link): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/IcsGenerator.php → src/Generators/Ics.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Spatie\CalendarLinks\Link;
use Spatie\CalendarLinks\Generator;

class IcsGenerator implements Generator
class Ics implements Generator
{
public function generate(Link $link): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Spatie\CalendarLinks\Link;
use Spatie\CalendarLinks\Generator;

class YahooGenerator implements Generator
class Yahoo implements Generator
{
public function generate(Link $link): string
{
Expand Down
12 changes: 6 additions & 6 deletions src/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use DateTime;
use Spatie\CalendarLinks\Exceptions\InvalidLink;
use Spatie\CalendarLinks\Generators\IcsGenerator;
use Spatie\CalendarLinks\Generators\YahooGenerator;
use Spatie\CalendarLinks\Generators\GoogleGenerator;
use Spatie\CalendarLinks\Generators\Ics;
use Spatie\CalendarLinks\Generators\Yahoo;
use Spatie\CalendarLinks\Generators\Google;

/**
* @property string $title
Expand Down Expand Up @@ -82,17 +82,17 @@ public function address(string $address)

public function google(): string
{
return (new GoogleGenerator())->generate($this);
return (new Google())->generate($this);
}

public function ics(): string
{
return (new IcsGenerator())->generate($this);
return (new Ics())->generate($this);
}

public function yahoo(): string
{
return (new YahooGenerator())->generate($this);
return (new Yahoo())->generate($this);
}

public function __get($property)
Expand Down

0 comments on commit d5f666e

Please sign in to comment.