File: Closure.xml

package info (click to toggle)
phpdox 0.12.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 7,672 kB
  • sloc: xml: 80,724; php: 9,167; makefile: 13
file content (41 lines) | stat: -rw-r--r-- 2,321 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8" ?>
<class xmlns="http://xml.phpdox.net/src" full="Closure" namespace="" name="Closure">
  <constructor name="__construct" abstract="false" static="false" final="false">
    <docblock>
      <description compact="Constructor that disallows instantiation"/>
      <return type="void"/>
    </docblock>
  </constructor>
  <method name="bind" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="&#10;   Duplicates a closure with a specific bound object and class scope&#10;  "/>
      <return type="Closure"/>
    </docblock>
    <parameter name="closure" optional="false" byreference="false" type="object" class="Closure"/>
    <parameter name="newthis" optional="false" byreference="false" type="object" class="object"/>
    <parameter name="newscope" optional="true" byreference="false" type="object" class="mixed"/>
  </method>
  <method name="bindTo" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="&#10;   Duplicates the closure with a new bound object and class scope&#10;  ">Create and return a new anonymous function with the same body and bound variables as this one, but possibly with a different bound object and a new class scope.</description>
      <return type="Closure"/>
    </docblock>
    <parameter name="newthis" optional="false" byreference="false" type="object" class="object"/>
    <parameter name="newscope" optional="true" byreference="false" type="object" class="mixed"/>
  </method>
  <method name="call" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Binds and calls the closure"/>
      <return type="mixed"/>
    </docblock>
    <parameter name="newthis" optional="false" byreference="false" type="object" class="object"/>
    <parameter name="..." optional="true" byreference="false" type="object" class="mixed"/>
  </method>
  <method name="fromCallable" abstract="false" static="false" visibility="public" final="false">
    <docblock>
      <description compact="Converts a callable into a closure"/>
      <return type="Closure"/>
    </docblock>
    <parameter name="callable" optional="false" byreference="false" type="object" class="callable"/>
  </method>
</class>