Skip to content

Commit

Permalink
add isMember-method to verify address as part of given list
Browse files Browse the repository at this point in the history
  • Loading branch information
derbronko authored Jun 2, 2020
1 parent 7f75595 commit e24fc8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ListsConfigParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public function getListName($list) {
public function getLists() {
return array_keys($this->_config);
}

public funtion isMember($listAdresses, $senderAddress)
{
return in_array($listAdresses, $senderAddress)
}

public function getMembers($listAddress)
{
Expand Down

0 comments on commit e24fc8b

Please sign in to comment.