1 | <?php |
||
20 | class Portable |
||
21 | { |
||
22 | /** |
||
23 | * The callable object this factory is attached to |
||
24 | * |
||
25 | * @var CallableObject |
||
26 | */ |
||
27 | private $xCallable; |
||
28 | |||
29 | /** |
||
30 | * Create a new Factory instance. |
||
31 | * |
||
32 | * @return void |
||
|
|||
33 | */ |
||
34 | public function __construct(CallableObject $xCallable) |
||
38 | |||
39 | /** |
||
40 | * Generate the corresponding javascript code for a call to any method |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function __call($sMethod, $aArguments) |
||
50 | } |
||
51 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.