PHP Class Dingo\Blueprint\Action

Inheritance: extends Section
Afficher le fichier Open project: dingo/blueprint

Protected Properties

Свойство Type Description
$annotations Illuminate\Support\Collection Annotations belonging to the action.
$reflector ReflectionMethod Action reflector instance.
$resource Resource Parent resource of the action.

Méthodes publiques

Méthode Description
__construct ( ReflectionMethod $reflector, Collection $annotations ) : void Create a new action instance.
getDefinition ( ) : string Get the actions definition.
getDescription ( ) : string | null Get the actions description.
getIdentifier ( ) : string | null Get the actions identifier.
getMethod ( ) : string Get the actions method.
getRequest ( ) : Dingo\Blueprint\Annotation\Request | null Get the actions request annotation.
getResponse ( ) : Dingo\Blueprint\Annotation\Response | null Get the actions response annotation.
getTransaction ( ) : Dingo\Blueprint\Annotation\Transaction | null Get the actions transaction annotation.
getUri ( ) : string Get the actions URI.
getVersions ( ) : Dingo\Blueprint\Annotation\Versions | null Get the actions version annotation.
setResource ( Resource $resource ) : void Set the parent resource on the action.

Method Details

__construct() public méthode

Create a new action instance.
public __construct ( ReflectionMethod $reflector, Collection $annotations ) : void
$reflector ReflectionMethod
$annotations Illuminate\Support\Collection
Résultat void

getDefinition() public méthode

Get the actions definition.
public getDefinition ( ) : string
Résultat string

getDescription() public méthode

Get the actions description.
public getDescription ( ) : string | null
Résultat string | null

getIdentifier() public méthode

Get the actions identifier.
public getIdentifier ( ) : string | null
Résultat string | null

getMethod() public méthode

Get the actions method.
public getMethod ( ) : string
Résultat string

getRequest() public méthode

Get the actions request annotation.
public getRequest ( ) : Dingo\Blueprint\Annotation\Request | null
Résultat Dingo\Blueprint\Annotation\Request | null

getResponse() public méthode

Get the actions response annotation.
public getResponse ( ) : Dingo\Blueprint\Annotation\Response | null
Résultat Dingo\Blueprint\Annotation\Response | null

getTransaction() public méthode

Get the actions transaction annotation.
public getTransaction ( ) : Dingo\Blueprint\Annotation\Transaction | null
Résultat Dingo\Blueprint\Annotation\Transaction | null

getUri() public méthode

Get the actions URI.
public getUri ( ) : string
Résultat string

getVersions() public méthode

Get the actions version annotation.
public getVersions ( ) : Dingo\Blueprint\Annotation\Versions | null
Résultat Dingo\Blueprint\Annotation\Versions | null

setResource() public méthode

Set the parent resource on the action.
public setResource ( Resource $resource ) : void
$resource Resource
Résultat void

Property Details

$annotations protected_oe property

Annotations belonging to the action.
protected Collection,Illuminate\Support $annotations
Résultat Illuminate\Support\Collection

$reflector protected_oe property

Action reflector instance.
protected ReflectionMethod $reflector
Résultat ReflectionMethod

$resource protected_oe property

Parent resource of the action.
protected Resource,Dingo\Blueprint $resource
Résultat Resource