1 | <?php |
||
10 | class ActionEndpointType extends EndpointType |
||
11 | { |
||
12 | /** @var array */ |
||
13 | private $action; |
||
14 | |||
15 | /** @var string|null */ |
||
16 | private $httpVerb; |
||
17 | |||
18 | /** @var string|null */ |
||
19 | private $name; |
||
20 | |||
21 | public static function make(array $action): ActionEndpointType |
||
25 | |||
26 | public function __construct(array $action) |
||
30 | |||
31 | public function httpVerb(?string $httpVerb): ActionEndpointType |
||
37 | |||
38 | public function name(?string $name): ActionEndpointType |
||
44 | |||
45 | public function getEndpoints(Model $model = null): array |
||
65 | |||
66 | private function formatAction(): string |
||
70 | |||
71 | private function getParameters(?Model $model) |
||
79 | } |
||
80 |