PHP 클래스 Adamgoose\Routing\Annotations\ResourceEndpoint

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

공개 프로퍼티들

프로퍼티 타입 설명
$classMiddleware array The class level "inherited" middleware that apply to the resource.
$except array The methods that should not be included.
$middleware array This array is keyed by resource method name (index, create, etc).
$name string The name of the resource.
$names array The array of route names for the resource.
$only array The only methods that should be included.
$paths array[ResourcePath] This corresponds to a path for each applicable resource method.
$reflection ReflectionClass The ReflectionClass instance for the controller class.

보호된 프로퍼티들

프로퍼티 타입 설명
$methods array All of the resource controller methods.

공개 메소드들

메소드 설명
__construct ( array $attributes = [] ) : void Create a new route definition instance.
getPaths ( ) : array[AbstractPath] 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.

보호된 메소드들

메소드 설명
buildPaths ( ) : void Build all of the paths for the resource endpoint.
getClassMiddlewareForPath ( ResourcePath $path ) : array Get the class middleware for the given path.
getIncludedMethods ( ) : array Get the methods to be included in the resource.
getMiddleware ( ResourcePath $path ) : array Get all of the middleware for the given path.
getNames ( ResourcePath $path ) : array Get the names for the given path.
getTemplate ( ) : string Get the template for the endpoint.

메소드 상세

__construct() 공개 메소드

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

buildPaths() 보호된 메소드

Build all of the paths for the resource endpoint.
protected buildPaths ( ) : void
리턴 void

getClassMiddlewareForPath() 보호된 메소드

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

getIncludedMethods() 보호된 메소드

Get the methods to be included in the resource.
protected getIncludedMethods ( ) : array
리턴 array

getMiddleware() 보호된 메소드

This will also merge in any of the middleware applied at the route level.
protected getMiddleware ( ResourcePath $path ) : array
$path ResourcePath
리턴 array

getNames() 보호된 메소드

Get the names for the given path.
protected getNames ( ResourcePath $path ) : array
$path ResourcePath
리턴 array

getPaths() 공개 메소드

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

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 공개적으로 프로퍼티

The class level "inherited" middleware that apply to the resource.
public array $classMiddleware
리턴 array

$except 공개적으로 프로퍼티

The methods that should not be included.
public array $except
리턴 array

$methods 보호되어 있는 프로퍼티

All of the resource controller methods.
protected array $methods
리턴 array

$middleware 공개적으로 프로퍼티

This array is keyed by resource method name (index, create, etc).
public array $middleware
리턴 array

$name 공개적으로 프로퍼티

The name of the resource.
public string $name
리턴 string

$names 공개적으로 프로퍼티

The array of route names for the resource.
public array $names
리턴 array

$only 공개적으로 프로퍼티

The only methods that should be included.
public array $only
리턴 array

$paths 공개적으로 프로퍼티

This corresponds to a path for each applicable resource method.
public array[ResourcePath] $paths
리턴 array[ResourcePath]

$reflection 공개적으로 프로퍼티

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