PageGenerationResponseHandler
extends PageGenerationHandlerBase
in package
implements
ResponseHandlerInterface
Table of Contents
Interfaces
- ResponseHandlerInterface
- 成功時の結果処理を定義するインターフェース。
Properties
Methods
- __construct() : mixed
- extractStatusCodeFromStderr() : int
- stderr 文字列からHTTPステータスコードを抽出する - 末尾にある「数字だけの行」を優先 - 見つからなければ 200 を返す
- handle() : mixed
Properties
$listener read-only
protected
PageGenerationListenerInterface
$listener
$withData read-only
protected
bool
$withData
= false
Methods
__construct()
public
__construct(PageGenerationListenerInterface $listener[, bool $withData = false ]) : mixed
Parameters
- $listener : PageGenerationListenerInterface
- $withData : bool = false
extractStatusCodeFromStderr()
stderr 文字列からHTTPステータスコードを抽出する - 末尾にある「数字だけの行」を優先 - 見つからなければ 200 を返す
public
extractStatusCodeFromStderr(string $stderr) : int
Parameters
- $stderr : string
Return values
inthandle()
public
handle(ProcessResult $result) : mixed
Parameters
- $result : ProcessResult
Return values
mixed —呼び出し側が受け取りたい任意の型