Changeset 1772

Show
Ignore:
Timestamp:
08/06/08 13:24:54 (4 months ago)
Author:
prema
Message:

add contract stubMetaObjectProtocol

Files:

Legend:

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

    r1771 r1772  
    1010stubClassLoader::load('net::stubbles::lang::stubBaseObject', 
    1111                      'net::stubbles::lang::exceptions::stubMethodNotSupportedException', 
     12                      'net::stubbles::lang::mop::stubMetaObjectProtocol', 
    1213                      'net::stubbles::reflection::stubReflectionObject' 
    1314); 
     
    7374     * invokes a method on the given receiver with the specified arguments 
    7475     * 
    75      * @param   stubMetaObject  $receiver   the object which the method invoked on 
    76      * @param   string          $method     the name of the method 
    77      * @param   array           $arguments  the arguments to the method 
     76     * @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 
    7879     * @return  mixed the return value of the called method 
    7980     * @throws  stubMethodNotSupportedException 
    8081     */ 
    81     public function invokeMethod(stubMetaObject $receiver, $method, array $arguments) 
     82    public function invokeMethod(stubMetaObjectProtocol $receiver, $method, array $arguments) 
    8283    { 
    8384        if (in_array($method, $this->getMethods())) { 
     
    9495     * builders. 
    9596     * 
    96      * @param   stubMetaObject  $receiver   the object which the method invoked on 
    97      * @param   string          $method     the name of the method 
    98      * @param   array           $arguments  the arguments to the method 
     97     * @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 
    99100     * @return  mixed the return value of the called method 
    100101     * @throws  stubMethodNotSupportedException 
    101102     */ 
    102     public function invokeMissingMethod(stubMetaObject $receiver, $method, array $arguments) 
     103    public function invokeMissingMethod(stubMetaObjectProtocol $receiver, $method, array $arguments) 
    103104    { 
    104105        throw new stubMethodNotSupportedException( 
  • labs/incubator/src/main/php/net/stubbles/lang/mop/stubMetaObject.php

    r1770 r1772  
    1010stubClassLoader::load('net::stubbles::lang::stubBaseObject', 
    1111                      'net::stubbles::lang::stubRegistry', 
    12                       'net::stubbles::lang::mop::stubMetaClass
     12                      'net::stubbles::lang::mop::stubMetaObjectProtocol
    1313); 
    1414/** 
     
    1818 * @subpackage mop 
    1919 */ 
    20 class stubMetaObject extends stubBaseObject 
     20class stubMetaObject extends stubBaseObject implements stubMetaObjectProtocol 
    2121{ 
    2222    /**