Skip to content

Commit

Permalink
[5.x] Added isEvent and isCache methods to IncomingEntry (#1536)
Browse files Browse the repository at this point in the history
* Added isEvent and isCache to IncomingEntry

* Update IncomingEntry.php

---------

Co-authored-by: mrazinshaikh <[email protected]>
Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
3 people authored Oct 13, 2024
1 parent 451d568 commit a7e9e13
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 @@ -222,6 +222,26 @@ public function isSlowQuery()
return $this->type === EntryType::QUERY && ($this->content['slow'] ?? false);
}

/**
* 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 an authorization gate check.
*
Expand Down

0 comments on commit a7e9e13

Please sign in to comment.