Reflector class

Framework\Routing\Reflector

Class Reflector.

Defined in libraries/routing/src/Reflector.php

Properties #

$reflection
-

$reflection

protected ReflectionClass $reflection

Methods #

__construct()
-
getRoutes()
-
getRoutesNotFound()
-
getMethodRoutes()
-
getMethodRoutesNotFound()
-
getObjectOrigins()
-

__construct()

public function __construct(object|string $routeActions)
Parameters
  • object|string $routeActions
throws
ReflectionException

getRoutes()

public function getRoutes(): array
Returns array
throws
ReflectionException

getRoutesNotFound()

public function getRoutesNotFound(): array
Returns array
throws
ReflectionException

getMethodRoutes()

protected function getMethodRoutes(string $method): array
Parameters
  • string $method
Returns array
throws
ReflectionException

getMethodRoutesNotFound()

protected function getMethodRoutesNotFound(string $method): array
Parameters
  • string $method
Returns array
throws
ReflectionException

getObjectOrigins()

protected function getObjectOrigins(ReflectionClass $reflection): array
Parameters
  • ReflectionClass $reflection
Returns array