Skip to content

Commit

Permalink
[PATCH] Added missing create method to SearchBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Apr 5, 2019
1 parent 490df9f commit 5ffbde8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Builder/ArtistSearchBuilder.php
Expand Up @@ -25,6 +25,14 @@ private function __construct()
$this->page(1);
}

/**
* @return ArtistSearchBuilder
*/
public static function create(): self
{
return new static();
}

/**
* @param int $page
*
Expand Down
8 changes: 8 additions & 0 deletions src/Builder/CitySearchBuilder.php
Expand Up @@ -23,6 +23,14 @@ private function __construct()
$this->page(1);
}

/**
* @return CitySearchBuilder
*/
public static function create(): self
{
return new static();
}

/**
* @param int $page
*
Expand Down
8 changes: 8 additions & 0 deletions src/Builder/SetlistSearchBuilder.php
Expand Up @@ -25,6 +25,14 @@ private function __construct()
$this->page(1);
}

/**
* @return SetlistSearchBuilder
*/
public static function create(): self
{
return new static();
}

/**
* @param int $page
*
Expand Down
8 changes: 8 additions & 0 deletions src/Builder/VenueSearchBuilder.php
Expand Up @@ -23,6 +23,14 @@ private function __construct()
$this->page(1);
}

/**
* @return VenueSearchBuilder
*/
public static function create(): self
{
return new static();
}

/**
* @param int $page
*
Expand Down

0 comments on commit 5ffbde8

Please sign in to comment.