has_status
Trait has_status.
Provides helper methods to check status state against the Enum. Removes hardcoded constants in favor of local_middag\framework\shared\enum\status.
Table of Contents
Properties
- $status : string
Methods
- is_active() : bool
- Check if the item is active.
- is_approved() : bool
- Check if the item is approved.
- is_archived() : bool
- Determine if the item is archived.
- is_canceled() : bool
- Check if the item is canceled.
- is_completed() : bool
- Check if the item is completed.
- is_deleted() : bool
- Determine if the item is marked as deleted.
- is_disabled() : bool
- Check if the item is disabled.
- is_draft() : bool
- Determine if the item is in draft state.
- is_enabled() : bool
- Check if the item is enabled.
- is_error() : bool
- Check if the item is in an error state.
- is_expired() : bool
- Check if the item is expired.
- is_failed() : bool
- Check if the item has failed.
- is_in_progress() : bool
- Check if the item is in progress.
- is_inactive() : bool
- Check if the item is inactive.
- is_not_started() : bool
- Check if the item has not started.
- is_paused() : bool
- Check if the item is paused.
- is_pending() : bool
- Check if the item awaits processing.
- is_published() : bool
- Determine if the item is published.
- is_queued() : bool
- Check if the item is queued.
- is_rejected() : bool
- Check if the item was rejected.
- is_running() : bool
- Check if the item is running.
- is_status() : bool
- Check if the current status matches a specific value or Enum case.
- is_synced() : bool
- Check if the item finished syncing.
- is_syncing() : bool
- Check if the item is syncing.
Properties
$status
public
string
$status
Expected property on the using class.
Methods
is_active()
Check if the item is active.
public
is_active() : bool
Return values
boolis_approved()
Check if the item is approved.
public
is_approved() : bool
Return values
boolis_archived()
Determine if the item is archived.
public
is_archived() : bool
Return values
boolis_canceled()
Check if the item is canceled.
public
is_canceled() : bool
Return values
boolis_completed()
Check if the item is completed.
public
is_completed() : bool
Return values
boolis_deleted()
Determine if the item is marked as deleted.
public
is_deleted() : bool
Return values
boolis_disabled()
Check if the item is disabled.
public
is_disabled() : bool
Return values
boolis_draft()
Determine if the item is in draft state.
public
is_draft() : bool
Return values
boolis_enabled()
Check if the item is enabled.
public
is_enabled() : bool
Return values
boolis_error()
Check if the item is in an error state.
public
is_error() : bool
Return values
boolis_expired()
Check if the item is expired.
public
is_expired() : bool
Return values
boolis_failed()
Check if the item has failed.
public
is_failed() : bool
Return values
boolis_in_progress()
Check if the item is in progress.
public
is_in_progress() : bool
Return values
boolis_inactive()
Check if the item is inactive.
public
is_inactive() : bool
Return values
boolis_not_started()
Check if the item has not started.
public
is_not_started() : bool
Return values
boolis_paused()
Check if the item is paused.
public
is_paused() : bool
Return values
boolis_pending()
Check if the item awaits processing.
public
is_pending() : bool
Return values
boolis_published()
Determine if the item is published.
public
is_published() : bool
Return values
boolis_queued()
Check if the item is queued.
public
is_queued() : bool
Return values
boolis_rejected()
Check if the item was rejected.
public
is_rejected() : bool
Return values
boolis_running()
Check if the item is running.
public
is_running() : bool
Return values
boolis_status()
Check if the current status matches a specific value or Enum case.
public
is_status(item_status|string $value) : bool
Parameters
- $value : item_status|string
Return values
boolis_synced()
Check if the item finished syncing.
public
is_synced() : bool
Return values
boolis_syncing()
Check if the item is syncing.
public
is_syncing() : bool