1 | <?php |
||
10 | class ActionEndpointType extends EndpointType |
||
11 | { |
||
12 | /** @var array */ |
||
13 | protected $action; |
||
14 | |||
15 | /** @var array */ |
||
16 | protected $parameters; |
||
17 | |||
18 | /** @var string|null */ |
||
19 | protected $httpVerb; |
||
20 | |||
21 | /** @var string|null */ |
||
22 | protected $name; |
||
23 | |||
24 | public function __construct(array $action, array $parameters = [], string $httpVerb = null) |
||
30 | |||
31 | public function getEndpoints(Model $model = null): array |
||
51 | |||
52 | public function setName(?string $name) : ActionEndpointType |
||
58 | |||
59 | protected function formatAction(): string |
||
63 | |||
64 | protected function getParameters(?Model $model) |
||
72 | } |
||
73 |