PHP 클래스 Adamgoose\Routing\Annotations\MethodEndpoint

상속: implements Adamgoose\Routing\Annotations\EndpointInterface, use trait EndpointTrait
파일 보기 프로젝트 열기: adamgoose/laravel-annotations 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$classMiddleware array All of the class level "inherited" middleware defined for the pathless endpoint.
$method string The method that handles the route.
$middleware array All of the middleware defined for the pathless endpoint.
$paths array[Path] The route paths for the definition.
$reflection ReflectionClass The ReflectionClass instance for the controller class.
$uses string The controller and method that handles the route.

공개 메소드들

메소드 설명
__construct ( array $attributes = [] ) : void Create a new route definition instance.
getPaths ( ) : array Get all of the path definitions for an endpoint.
hasPaths ( ) : boolean Determine if the endpoint has any paths.
toRouteDefinition ( ) : string Transform the endpoint into a route definition.

보호된 메소드들

메소드 설명
getClassMiddlewareForPath ( AbstractPath $path ) : array Get the class middleware for the given path.
getMiddleware ( AbstractPath $path ) : array Get the middleware for the path.
getTemplate ( ) : string Get the template for the endpoint.

메소드 상세

__construct() 공개 메소드

Create a new route definition instance.
public __construct ( array $attributes = [] ) : void
$attributes array
리턴 void

getClassMiddlewareForPath() 보호된 메소드

Get the class middleware for the given path.
protected getClassMiddlewareForPath ( AbstractPath $path ) : array
$path AbstractPath
리턴 array

getMiddleware() 보호된 메소드

Get the middleware for the path.
protected getMiddleware ( AbstractPath $path ) : array
$path AbstractPath
리턴 array

getPaths() 공개 메소드

Get all of the path definitions for an endpoint.
public getPaths ( ) : array
리턴 array

getTemplate() 보호된 메소드

Get the template for the endpoint.
protected getTemplate ( ) : string
리턴 string

hasPaths() 공개 메소드

Determine if the endpoint has any paths.
public hasPaths ( ) : boolean
리턴 boolean

toRouteDefinition() 공개 메소드

Transform the endpoint into a route definition.
public toRouteDefinition ( ) : string
리턴 string

프로퍼티 상세

$classMiddleware 공개적으로 프로퍼티

All of the class level "inherited" middleware defined for the pathless endpoint.
public array $classMiddleware
리턴 array

$method 공개적으로 프로퍼티

The method that handles the route.
public string $method
리턴 string

$middleware 공개적으로 프로퍼티

All of the middleware defined for the pathless endpoint.
public array $middleware
리턴 array

$paths 공개적으로 프로퍼티

The route paths for the definition.
public array[Path] $paths
리턴 array[Path]

$reflection 공개적으로 프로퍼티

The ReflectionClass instance for the controller class.
public ReflectionClass $reflection
리턴 ReflectionClass

$uses 공개적으로 프로퍼티

The controller and method that handles the route.
public string $uses
리턴 string