Skip to content

Commit

Permalink
Response: Program: added isTypeOf*() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kurowski committed Nov 30, 2018
1 parent 9c880a2 commit 767b03c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Response/Program.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,21 @@ public function getName()
return $this->name;
}


/**
* @return bool
*/
public function isTypeOfNature()
{
return $this->slug === self::PROGRAM_NATURE;
}

/**
* @return bool
*/
public function isTypeOfSights()
{
return $this->slug === self::PROGRAM_SIGHTS;
}

}

0 comments on commit 767b03c

Please sign in to comment.