> For the complete documentation index, see [llms.txt](https://venndev.gitbook.io/vapm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://venndev.gitbook.io/vapm/promise/resolve-and-reject.md).

# resolve() & reject()

```php
/**
 * This method is used to resolve the promise.
 */
public function resolve(mixed $value = ''): void;

/**
 * This method is used to reject the promise.
 */
public function reject(mixed $value = ''): void;
```

This is the method used to return immediate results when that promise is **`rejected`** or **`fulfilled`** as you please.
