Changeset 1777
- Timestamp:
- 08/06/08 17:03:04 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
labs/incubator/src/main/php/net/stubbles/lang/mop/stubMetaObject.php
r1772 r1777 23 23 * sets the meta class instance of the meta object 24 24 * 25 * @param stubMetaClass $metaClass25 * @param stubMetaClass $metaClass 26 26 * @return stubMetaObject implement fluent interface 27 * 28 * @todo wait for php version >= 5.3, use __CLASS__ and this method can be static 27 29 */ 28 30 public function setMetaClass(stubMetaClass $metaClass) … … 40 42 * 41 43 * @return stubMetaClass 44 * 45 * @todo wait for php version >= 5.3, use __CLASS__ and this method can be static 42 46 */ 43 47 public function getMetaClass() … … 49 53 * delegate the method call to registered meta class 50 54 * 51 * @param string $method name of the method52 * @param array $arguments given method arguments53 * @return mixed54 * @throws stubMethodNotSupportedException55 * @param string $method name of the method 56 * @param array $arguments given method arguments 57 * @return mixed 58 * @throws stubMethodNotSupportedException 55 59 */ 56 60 public function __call($method, array $arguments) … … 58 62 return $this->getMetaClass()->invokeMethod($this, $method, $arguments); 59 63 } 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 // } 60 79 } 61 80 ?>
