SuggestLivewirePropertyNameSolution.php
963 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace Facade\Ignition\Solutions;
use Facade\IgnitionContracts\Solution;
class SuggestLivewirePropertyNameSolution implements Solution
{
/** @var string */
private $variableName;
/** @var string */
private $componentClass;
/** @var string|null */
private $suggested;
public function __construct($variableName = null, $componentClass = null, $suggested = null)
{
$this->variableName = $variableName;
$this->componentClass = $componentClass;
$this->suggested = $suggested;
}
public function getSolutionTitle(): string
{
return "Possible typo {$this->componentClass}::{$this->variableName}";
}
public function getDocumentationLinks(): array
{
return [];
}
public function getSolutionDescription(): string
{
return "Did you mean `$this->suggested`?";
}
public function isRunnable(): bool
{
return false;
}
}