-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RouteInfo ValueObject + RouteCommandSourceTest
- Loading branch information
Showing
3 changed files
with
83 additions
and
8 deletions.
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,38 @@ | ||
<?php | ||
|
||
namespace Juampi92\Phecks\Domain\Sources\ValueObjects; | ||
|
||
class RouteInfo | ||
{ | ||
public ?string $domain; | ||
|
||
public string $method; | ||
|
||
public string $uri; | ||
|
||
public ?string $name; | ||
|
||
public string $action; | ||
|
||
/** @var array<string> */ | ||
public array $middleware; | ||
|
||
/** | ||
* @param array<string> $middleware | ||
*/ | ||
public function __construct( | ||
?string $domain, | ||
string $method, | ||
string $uri, | ||
?string $name, | ||
string $action, | ||
array $middleware | ||
) { | ||
$this->domain = $domain; | ||
$this->method = $method; | ||
$this->uri = $uri; | ||
$this->name = $name; | ||
$this->action = $action; | ||
$this->middleware = $middleware; | ||
} | ||
} |
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