Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
56
vendor/facade/ignition-contracts/src/BaseSolution.php
vendored
Normal file
56
vendor/facade/ignition-contracts/src/BaseSolution.php
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
namespace Facade\IgnitionContracts;
|
||||
|
||||
class BaseSolution implements Solution
|
||||
{
|
||||
protected $title;
|
||||
protected $description;
|
||||
protected $links = [];
|
||||
|
||||
public static function create(string $title)
|
||||
{
|
||||
return new static($title);
|
||||
}
|
||||
|
||||
public function __construct(string $title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
public function getSolutionTitle(): string
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
public function setSolutionTitle(string $title): self
|
||||
{
|
||||
$this->title = $title;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSolutionDescription(): string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
public function setSolutionDescription(string $description): self
|
||||
{
|
||||
$this->description = $description;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDocumentationLinks(): array
|
||||
{
|
||||
return $this->links;
|
||||
}
|
||||
|
||||
public function setDocumentationLinks(array $links): self
|
||||
{
|
||||
$this->links = $links;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
13
vendor/facade/ignition-contracts/src/HasSolutionsForThrowable.php
vendored
Normal file
13
vendor/facade/ignition-contracts/src/HasSolutionsForThrowable.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Facade\IgnitionContracts;
|
||||
|
||||
use Throwable;
|
||||
|
||||
interface HasSolutionsForThrowable
|
||||
{
|
||||
public function canSolve(Throwable $throwable): bool;
|
||||
|
||||
/** \Facade\IgnitionContracts\Solution[] */
|
||||
public function getSolutions(Throwable $throwable): array;
|
||||
}
|
||||
8
vendor/facade/ignition-contracts/src/ProvidesSolution.php
vendored
Normal file
8
vendor/facade/ignition-contracts/src/ProvidesSolution.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Facade\IgnitionContracts;
|
||||
|
||||
interface ProvidesSolution
|
||||
{
|
||||
public function getSolution(): Solution;
|
||||
}
|
||||
14
vendor/facade/ignition-contracts/src/RunnableSolution.php
vendored
Normal file
14
vendor/facade/ignition-contracts/src/RunnableSolution.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Facade\IgnitionContracts;
|
||||
|
||||
interface RunnableSolution extends Solution
|
||||
{
|
||||
public function getSolutionActionDescription(): string;
|
||||
|
||||
public function getRunButtonText(): string;
|
||||
|
||||
public function run(array $parameters = []);
|
||||
|
||||
public function getRunParameters(): array;
|
||||
}
|
||||
12
vendor/facade/ignition-contracts/src/Solution.php
vendored
Normal file
12
vendor/facade/ignition-contracts/src/Solution.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Facade\IgnitionContracts;
|
||||
|
||||
interface Solution
|
||||
{
|
||||
public function getSolutionTitle(): string;
|
||||
|
||||
public function getSolutionDescription(): string;
|
||||
|
||||
public function getDocumentationLinks(): array;
|
||||
}
|
||||
20
vendor/facade/ignition-contracts/src/SolutionProviderRepository.php
vendored
Normal file
20
vendor/facade/ignition-contracts/src/SolutionProviderRepository.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Facade\IgnitionContracts;
|
||||
|
||||
use Throwable;
|
||||
|
||||
interface SolutionProviderRepository
|
||||
{
|
||||
public function registerSolutionProvider(string $solutionProviderClass): self;
|
||||
|
||||
public function registerSolutionProviders(array $solutionProviderClasses): self;
|
||||
|
||||
/**
|
||||
* @param Throwable $throwable
|
||||
* @return \Facade\IgnitionContracts\Solution[]
|
||||
*/
|
||||
public function getSolutionsForThrowable(Throwable $throwable): array;
|
||||
|
||||
public function getSolutionForClass(string $solutionClass): ?Solution;
|
||||
}
|
||||
Reference in New Issue
Block a user