| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function getSolution(): Solution |
||
| 50 | { |
||
| 51 | return BaseSolution::create("State field `{$this->field}` is the wrong type") |
||
| 52 | ->setSolutionDescription("Make sure that states for state field `{$this->field}` extend `{$this->expectedStateClass}`, not `{$this->actualClass}`") |
||
| 53 | ->setDocumentationLinks([ |
||
| 54 | 'Configuring states' => 'https://docs.spatie.be/laravel-model-states/v1/working-with-states/01-configuring-states/' |
||
| 55 | ]); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |