Skip to content

Commit

Permalink
Added isEvent and isCache to IncomingEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazinshaikh committed Oct 13, 2024
1 parent 101c0ff commit 6e29014
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/IncomingEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,26 @@ public function isLog()
return $this->type === EntryType::LOG;
}

/**
* Determine if the incoming entry is a event entry.
*
* @return bool
*/
public function isEvent()
{
return $this->type === EntryType::EVENT;
}

/**
* Determine if the incoming entry is a cache entry.
*
* @return bool
*/
public function isCache()
{
return $this->type === EntryType::CACHE;
}

/**
* Determine if the incoming entry is a scheduled task.
*
Expand Down

0 comments on commit 6e29014

Please sign in to comment.