Changeset 1772
- Timestamp:
- 08/06/08 13:24:54 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
labs/incubator/src/main/php/net/stubbles/lang/mop/stubMetaClass.php
r1771 r1772 10 10 stubClassLoader::load('net::stubbles::lang::stubBaseObject', 11 11 'net::stubbles::lang::exceptions::stubMethodNotSupportedException', 12 'net::stubbles::lang::mop::stubMetaObjectProtocol', 12 13 'net::stubbles::reflection::stubReflectionObject' 13 14 ); … … 73 74 * invokes a method on the given receiver with the specified arguments 74 75 * 75 * @param stubMetaObject $receiver the object which the method invoked on76 * @param string $method the name of the method77 * @param array $arguments the arguments to the method76 * @param stubMetaObjectProtocol $receiver the object which the method invoked on 77 * @param string $method the name of the method 78 * @param array $arguments the arguments to the method 78 79 * @return mixed the return value of the called method 79 80 * @throws stubMethodNotSupportedException 80 81 */ 81 public function invokeMethod(stubMetaObject $receiver, $method, array $arguments)82 public function invokeMethod(stubMetaObjectProtocol $receiver, $method, array $arguments) 82 83 { 83 84 if (in_array($method, $this->getMethods())) { … … 94 95 * builders. 95 96 * 96 * @param stubMetaObject $receiver the object which the method invoked on97 * @param string $method the name of the method98 * @param array $arguments the arguments to the method97 * @param stubMetaObjectProtocol $receiver the object which the method invoked on 98 * @param string $method the name of the method 99 * @param array $arguments the arguments to the method 99 100 * @return mixed the return value of the called method 100 101 * @throws stubMethodNotSupportedException 101 102 */ 102 public function invokeMissingMethod(stubMetaObject $receiver, $method, array $arguments)103 public function invokeMissingMethod(stubMetaObjectProtocol $receiver, $method, array $arguments) 103 104 { 104 105 throw new stubMethodNotSupportedException( labs/incubator/src/main/php/net/stubbles/lang/mop/stubMetaObject.php
r1770 r1772 10 10 stubClassLoader::load('net::stubbles::lang::stubBaseObject', 11 11 'net::stubbles::lang::stubRegistry', 12 'net::stubbles::lang::mop::stubMeta Class'12 'net::stubbles::lang::mop::stubMetaObjectProtocol' 13 13 ); 14 14 /** … … 18 18 * @subpackage mop 19 19 */ 20 class stubMetaObject extends stubBaseObject 20 class stubMetaObject extends stubBaseObject implements stubMetaObjectProtocol 21 21 { 22 22 /**
