NaifyView\Runtime\LoopControlSignal クラス
extends
RuntimeException
LoopControlSignal — generated runtime ABI の Loop Control Signal
compiled template class から呼ばれる runtime surface。 compiler が生成する PHP と対になるため、変更時は generated code との互換を意識する。
使用例
// generated PHP class から呼ばれる runtime ABI。
// compiler が吐いたコードと対になるため、公開 API として直接使わない。
プロパティ
| 名前 | 型 | 説明 |
|---|---|---|
private
$keyword
|
string |
|
private
$targetLoopName
|
?string |
|
private
$pendingOutput
|
string |
Output produced by methods that exited before returning their string. |
メソッド
| メソッド | 説明 |
|---|---|
public
prependOutput(string $output): void
|
|
public
takeOutput(): string
|
|
public
override
__construct(string $keyword, ?string $targetLoopName): void
|
インスタンスを初期化する |
public
getKeyword(): string
|
`getKeyword()` の値を返す |
public
getTargetLoopName(): ?string
|
`getTargetLoopName()` の値を返す |
public
matches(string $keyword, ?string $currentLoopName): bool
|
`matches()` を実行する |
継承プロパティ
| 名前 | 型 | 説明 | 継承元 |
|---|---|---|---|
protected
$message
|
mixed |
Exception | |
protected
$code
|
mixed |
Exception | |
protected
$file
|
string |
Exception | |
protected
$line
|
int |
Exception |
継承メソッド
| メソッド | 説明 | 継承元 |
|---|---|---|
public
getMessage(): string
|
Exception | |
public
getCode():
|
Exception | |
public
getFile(): string
|
Exception | |
public
getLine(): int
|
Exception | |
public
getTrace(): array
|
Exception | |
public
getPrevious(): ?Throwable
|
Exception | |
public
getTraceAsString(): string
|
Exception |