# FileStatus

> Represents the state of a scaffold file, tracked in scaffold-lock.json or pending, as reported by the status command.

[API reference](/docs/api/index.md) › [Scaffold](/docs/extensions/scaffold/reference/index.md) › [Services](/docs/extensions/scaffold/reference/services/index.md) › FileStatus

| enum | `PHPForge\Scaffold\Services\FileStatus` |
| --- | --- |
| Backed by | `string` |
| Source | [`src/Services/FileStatus.php`](https://github.com/php-forge/scaffold/blob/main/src/Services/FileStatus.php#L11) |

Represents the state of a scaffold file, tracked in `scaffold-lock.json` or pending, as reported by the `status`
command.

## Cases

| Case | Value | Description |
| --- | --- | --- |
| <span id="case-Conflict"></span>`Conflict` | `'conflict'` | The destination is a `replace` file changed by the consumer while the provider stub also changed. |
| <span id="case-Ejected"></span>`Ejected` | `'ejected'` | The destination was ejected and scaffold no longer manages it. |
| <span id="case-Error"></span>`Error` | `'error'` | The lock entry is unsafe, or the destination, stub or provider manifest cannot be read. |
| <span id="case-Missing"></span>`Missing` | `'missing'` | The destination is absent from disk. |
| <span id="case-Modified"></span>`Modified` | `'modified'` | The `replace` or `preserve` destination changed since the last apply. |
| <span id="case-Orphan"></span>`Orphan` | `'orphan'` | No allowed and installed provider ships the destination anymore. |
| <span id="case-Outdated"></span>`Outdated` | `'outdated'` | The provider stub changed since the last apply, or an `append`/`prepend` destination lacks provider content. |
| <span id="case-Pending"></span>`Pending` | `'pending'` | An allowed and installed provider ships the destination, but `scaffold-lock.json` has no entry for it yet. |
| <span id="case-Synced"></span>`Synced` | `'synced'` | The destination matches the last apply and the current provider stub. |

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`summaryOrder()`](#method-summaryOrder) static | Returns the states in the order the summary line lists them. | `FileStatus` |

## Method details

### summaryOrder() <span id="method-summaryOrder"></span>

```php
public static function summaryOrder(): list<self>
```

Returns the states in the order the summary line lists them.

**Returns**

`list<self>`: Every state in summary order, from `synced` to `error`.