-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrey Helldar
committed
Nov 15, 2021
1 parent
a061044
commit 4b9475b
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the "dragon-code/contracts" project. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Andrey Helldar <[email protected]> | ||
* | ||
* @copyright 2021 Andrey Helldar | ||
* | ||
* @license MIT | ||
* | ||
* @see https://github.com/TheDragonCode/contracts | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DragonCode\Contracts\Routing\Core; | ||
|
||
interface Config | ||
{ | ||
public function getApiMiddleware(): array; | ||
|
||
public function getWebMiddleware(): array; | ||
|
||
public function getHideMethods(): array; | ||
|
||
public function getHideMatching(): array; | ||
|
||
public function getDomainForce(): bool; | ||
|
||
public function getUrl(): ?string; | ||
|
||
public function getNamespace(): ?string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the "dragon-code/contracts" project. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Andrey Helldar <[email protected]> | ||
* | ||
* @copyright 2021 Andrey Helldar | ||
* | ||
* @license MIT | ||
* | ||
* @see https://github.com/TheDragonCode/contracts | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DragonCode\Contracts\Routing\Core; | ||
|
||
use Illuminate\Contracts\Support\Arrayable; | ||
use phpDocumentor\Reflection\DocBlock\Tag as DocTag; | ||
|
||
interface Tag extends Arrayable | ||
{ | ||
public function getCode(): int; | ||
|
||
public function setCode(): void; | ||
|
||
public function getClass(): string; | ||
|
||
public function setClass(DocTag $tag): void; | ||
|
||
public function getDescription(): ?string; | ||
|
||
public function setDescription(DocTag $tag): void; | ||
|
||
public function setSources(array $items): self; | ||
} |