Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
44
vendor/facade/ignition/src/Solutions/SuggestLivewirePropertyNameSolution.php
vendored
Normal file
44
vendor/facade/ignition/src/Solutions/SuggestLivewirePropertyNameSolution.php
vendored
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user