# getPhase method

1. @override

int getPhase()
override

Interface for objects that may participate in a phased process such as lifecycle management.

The phase value determines the order in which objects are started and stopped. Lower values have higher priority (start earlier, stop later).

## Phase Values

- Negative values: High priority (start first, stop last)
- Zero: Default priority
- Positive values: Low priority (start last, stop first)

## Usage Example

    class DatabaseConnectionManager implements Phased {
      @override
      int getPhase() => -1000; // Start early, stop late
    }

    class WebServer implements Phased {
      @override
      int getPhase() => 1000; // Start late, stop early
    }

Return the phase value of this object.

## Return Value

Returns the phase value (lower values have higher priority)

## Implementation

    @override
    int getPhase() => DEFAULT_PHASE;