X

Create New Item

File Folder

X

Search Results

File "SuggestLivewireMethodNameSolution.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/spatie/error-solutions/src/Solutions/Laravel/SuggestLivewireMethodNameSolution.php
File size: 865 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

namespace Spatie\ErrorSolutions\Solutions\Laravel;

use Spatie\ErrorSolutions\Contracts\Solution;
use Spatie\ErrorSolutions\Solutions\Concerns\IsProvidedByFlare;

class SuggestLivewireMethodNameSolution implements Solution
{
    use IsProvidedByFlare;

    public function __construct(
        protected string $methodName,
        protected string $componentClass,
        protected string $suggested
    ) {
    }

    public function getSolutionTitle(): string
    {
        return "Possible typo `{$this->componentClass}::{$this->methodName}`";
    }

    public function getDocumentationLinks(): array
    {
        return [];
    }

    public function getSolutionDescription(): string
    {
        return "Did you mean `{$this->componentClass}::{$this->suggested}`?";
    }

    public function isRunnable(): bool
    {
        return false;
    }
}