Property | Type | Description | |
---|---|---|---|
$files | Illuminate\Filesystem\Filesystem | Filesytsem instance. | |
$includePath | string | Include path for documentation files. | |
$reader | Doctrine\Common\Annotations\SimpleAnnotationReader | Simple annotation reader instance. |
Method | Description | |
---|---|---|
__construct ( Doctrine\Common\Annotations\SimpleAnnotationReader $reader, Illuminate\Filesystem\Filesystem $files ) : void | Create a new generator instance. | |
generate ( |
Generate documentation with the name and version. |
Method | Description | |
---|---|---|
appendAttributes ( string &$contents, |
Append the attributes subsection to a resource or action. | |
appendBody ( string &$contents, string $body ) : void | Append a body subsection to an action. | |
appendHeaders ( string &$contents, array $headers ) : void | Append a headers subsection to an action. | |
appendParameters ( string &$contents, |
Append the parameters subsection to a resource or action. | |
appendRequest ( string &$contents, Dingo\Blueprint\Annotation\Request $request, |
Append a request subsection to an action. | |
appendResponse ( string &$contents, Dingo\Blueprint\Annotation\Response $response, |
Append a response subsection to an action. | |
appendSection ( string &$contents, string $name, integer $indent, integer $lines = 2 ) : void | Append a subsection to an action. | |
generateContentsFromResources ( |
Generate the documentation contents from the resources collection. | |
getFormat ( ) : string | Get the API Blueprint format. | |
line ( integer $repeat = 1 ) : string | Create a new line character. | |
prepareBody ( string $body, string $contentType ) : string | Prepare a body. | |
registerAnnotationLoader ( ) : void | Register the annotation loader. | |
tab ( integer $repeat = 1 ) : string | Create a tab character. |
public __construct ( Doctrine\Common\Annotations\SimpleAnnotationReader $reader, Illuminate\Filesystem\Filesystem $files ) : void | ||
$reader | Doctrine\Common\Annotations\SimpleAnnotationReader | |
$files | Illuminate\Filesystem\Filesystem | |
return | void |
protected appendParameters ( string &$contents, |
||
$contents | string | |
$parameters | ||
return | void |
protected appendRequest ( string &$contents, Dingo\Blueprint\Annotation\Request $request, |
||
$contents | string | |
$request | Dingo\Blueprint\Annotation\Request | |
$resource | ||
return | void |
protected appendResponse ( string &$contents, Dingo\Blueprint\Annotation\Response $response, |
||
$contents | string | |
$response | Dingo\Blueprint\Annotation\Response | |
$resource | ||
return | void |
protected generateContentsFromResources ( |
||
$resources | ||
$name | string | |
return | string |
protected registerAnnotationLoader ( ) : void | ||
return | void |
protected Filesystem,Illuminate\Filesystem $files | ||
return | Illuminate\Filesystem\Filesystem |
protected string $includePath | ||
return | string |