# SolverInterface

> Resolves and installs asset dependencies during Composer operations.

[API reference](/docs/api/index.md) › [Foxy](/docs/extensions/foxy/reference/index.md) › [Solver](/docs/extensions/foxy/reference/solver/index.md) › SolverInterface

| interface | `Foxy\Solver\SolverInterface` |
| --- | --- |
| Source | [`src/Solver/SolverInterface.php`](https://github.com/php-forge/foxy/blob/main/src/Solver/SolverInterface.php#L13) |

Implemented by 1 type:

- [`Solver`](/docs/extensions/foxy/reference/solver/solver/index.md)

Resolves and installs asset dependencies during Composer operations.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`setUpdatable()`](#method-setUpdatable) abstract | Define if the update action can be used. | `SolverInterface` |
| [`solve()`](#method-solve) abstract | Solve the asset dependencies. | `SolverInterface` |

## Method details

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

```php
abstract public function setUpdatable(bool $updatable): self
```

Define if the update action can be used.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$updatable` | `bool` | The value of updatable. |

**Returns**

`self`

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

```php
abstract public function solve(Composer\Composer $composer, Composer\IO\IOInterface $io): void
```

Solve the asset dependencies.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$composer` | `Composer\Composer` | The composer instance. |
| `$io` | `Composer\IO\IOInterface` | The IO instance. |