-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathWithRouteActions.php
48 lines (42 loc) · 1.02 KB
/
WithRouteActions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/*
* This file is part of Aplus Framework Routing Library.
*
* (c) Natan Felles <natanfelles@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Routing\Support;
use Framework\Routing\RouteActions;
class WithRouteActions extends RouteActions
{
/**
* @var array<mixed>
*/
protected array $construct;
public function __construct(mixed ...$construct)
{
$this->construct = $construct;
}
public function index(string ...$params) : string
{
return \implode(', ', [...$params, ...$this->construct]);
}
/**
* @param bool $bool
* @param float $float
* @param int $int
* @param string $string
*
* @return array<string,mixed>
*/
public function noStrictTypes(bool $bool, float $float, int $int, string $string) : array
{
return \get_defined_vars();
}
protected function notAllowed() : void
{
//
}
}