Skip to content

Commit

Permalink
added category to video filter
Browse files Browse the repository at this point in the history
  • Loading branch information
realshadow committed Jul 7, 2017
1 parent b002763 commit d38e467
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/Filters/VideoFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class VideoFilter implements Filterable
{

/**
* Paget that should be pulled
* Page that should be pulled
*
* @var int $page
*/
Expand All @@ -30,6 +30,13 @@ class VideoFilter implements Filterable
*/
private $search;

/**
* Category the videos should belong to
*
* @var string $category
*/
private $category;

/**
* List of tags
*
Expand Down Expand Up @@ -115,6 +122,20 @@ public function getRequestedPage()
return $this->page;
}

/**
* Category the videos should belong to
*
* @param $category
*
* @return $this
*/
public function category($category)
{
$this->category = $category;

return $this;
}

/**
* Filter by provided list of tags
*
Expand Down

0 comments on commit d38e467

Please sign in to comment.