Changeset 1777

Show
Ignore:
Timestamp:
08/06/08 17:03:04 (3 months ago)
Author:
prema
Message:

Add todo's for php version 5.3

  • implement callStatic
  • make use of CLASS instead of reflection class name
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • labs/incubator/src/main/php/net/stubbles/lang/mop/stubMetaObject.php

    r1772 r1777  
    2323     * sets the meta class instance of the meta object 
    2424     * 
    25      * @param stubMetaClass $metaClass 
     25     * @param stubMetaClass $metaClass 
    2626     * @return stubMetaObject implement fluent interface 
     27     * 
     28     * @todo wait for php version >= 5.3, use __CLASS__ and this method can be static 
    2729     */ 
    2830    public function setMetaClass(stubMetaClass $metaClass) 
     
    4042     * 
    4143     * @return stubMetaClass 
     44     * 
     45     * @todo wait for php version >= 5.3, use __CLASS__ and this method can be static 
    4246     */ 
    4347    public function getMetaClass() 
     
    4953     * delegate the method call to registered meta class 
    5054     * 
    51      * @param  string   $method name of the method 
    52      * @param  array    $arguments given method arguments 
    53      * @return mixed 
    54      * @throws stubMethodNotSupportedException 
     55     * @param  string   $method name of the method 
     56     * @param  array    $arguments given method arguments 
     57     * @return mixed 
     58     * @throws stubMethodNotSupportedException 
    5559     */ 
    5660    public function __call($method, array $arguments) 
     
    5862        return $this->getMetaClass()->invokeMethod($this, $method, $arguments); 
    5963    } 
     64 
     65    /** 
     66     * delegate the static method call to registered meta class 
     67     * 
     68     * @param   string   $method name of the method 
     69     * @param   array    $arguments given method arguments 
     70     * @return  mixed 
     71     * @throws  stubMethodNotSupportedException 
     72     * 
     73     * @todo wait for php version >= 5.3 to implement __callStatic 
     74     */ 
     75//    public static function __callStatic($method, array $arguments) 
     76//    { 
     77//        return self::getMetaClass()->invokeMethod($this, $method, $arguments); 
     78//    } 
    6079} 
    6180?>