| 1 | <?php |
||
| 8 | class InvokableControllerEndpointType extends EndpointType implements MultiEndpointType |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | private $controller; |
||
| 12 | |||
| 13 | /** @var string|null */ |
||
| 14 | private $name; |
||
| 15 | |||
| 16 | public static function make(string $controller): InvokableControllerEndpointType |
||
| 20 | |||
| 21 | public function __construct(string $controller) |
||
| 25 | |||
| 26 | public function name(?string $name): InvokableControllerEndpointType |
||
| 32 | |||
| 33 | public function getEndpoints(Model $model = null): array |
||
| 37 | |||
| 38 | public function getCollectionEndpoints(): array |
||
| 42 | |||
| 43 | private function resolveEndpointType(): ActionEndpointType |
||
| 50 | |||
| 51 | private function resolveEndpointName() : string |
||
| 65 | } |
||
| 66 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: