Results of 1 - 3 of about 3 for newScope (0.001 sec.)
- Closure::bindTo — 新しくバインドしたオブジェクトとクラスのスコープで、クロージ... 11849
- Closure::bindTo (PHP 5 >= 5.4.0, PHP 7, PHP 8) Closure::bindTo — 新しくバインドしたオブジェクトとクラスのスコープで、クロージャを複製する 説明 public function Closure::bindTo ( ? object $newThis , object | string | null $newScope = "static"
... te メンバーや protected メンバーにアクセスできるのかが決まります。 すなわち、無名関数から見えるメンバーは、 その無名関数が newScope クラスのメソッドであった場合と同じものになります。 static なクロージャは何もオブジェクトをバインドできません ( newThis の値 ... ます。 パラメータ newThis 指定した無名関数をバインドするオブジェクト。クロージャのバインドを解除するには null を指定します。 newScope クロージャを関連づけるクラススコープ、あるいは 'static' で現在のスコープを維持します。 オブジェクトを渡した場合は、そのオブ ...
-
https://man.mtool.work/php/8.3/closure.bindto.html
- Closure クラス | PHP 8.3 8557
- Closure クラス (PHP 5 >= 5.3.0, PHP 7, PHP 8) はじめに 無名関数 を表すために使うクラスです。 無名関数は、Closure 型のオブジェクトを生成します。 このクラスにはメソッドが用意され、 生成した無名関数をさらにコントロールできるようになっています。
... ivate function __construct () public static function bind ( Closure $closure , ? object $newThis , object | string | null $newScope = "static" ): ? Closure public function bindTo ( ? object $newThis , object | string | null $newScope = "static" ): ? Clos ...
-
https://man.mtool.work/php/8.3/class.closure.html
- Closure::bind — バインドされたオブジェクトとクラスのスコープでクロージャを複製... 7459
- Closure::bind (PHP 5 >= 5.4.0, PHP 7, PHP 8) Closure::bind — バインドされたオブジェクトとクラスのスコープでクロージャを複製する 説明 public static function Closure::bind ( Closure $closure , ? object $newThis , object | string | null $newScope
... ドする無名関数。 newThis 指定した無名関数をバインドするオブジェクト。クロージャのバインドを解除するには null を指定します。 newScope クロージャを関連づけるクラススコープ、あるいは 'static' で現在のスコープを維持します。 オブジェクトを渡した場合は、そのオブ ...
-
https://man.mtool.work/php/8.3/closure.bind.html
PREV
1
NEXT