Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Spatie\LaravelIgnition\Solutions;
4
 
5
use Spatie\Ignition\Contracts\Solution;
6
 
7
class SuggestLivewirePropertyNameSolution implements Solution
8
{
9
    public function __construct(
10
        protected string $variableName,
11
        protected string $componentClass,
12
        protected string $suggested,
13
    ) {
14
    }
15
 
16
    public function getSolutionTitle(): string
17
    {
18
        return "Possible typo {$this->variableName}";
19
    }
20
 
21
    public function getDocumentationLinks(): array
22
    {
23
        return [];
24
    }
25
 
26
    public function getSolutionDescription(): string
27
    {
28
        return "Did you mean `$this->suggested`?";
29
    }
30
 
31
    public function isRunnable(): bool
32
    {
33
        return false;
34
    }
35
}