public function offsetSet($method, $callback)
        {
            self::$prototypes[$this->class]->methods[$method] = $callback;

            $this->revokeConsolidatedMethods();
        }
public function offsetSet($method, $callback)
        {
            self::$prototypes[$this->class]->methods[$method] = $callback;

            $this->revokeConsolidatedMethods();
        }
public function offsetSet ( $ method , $ callback ) { self :: $ prototypes [ $ this -> class ] -> methods [ $ method ] = $ callback ; $ this -> revokeConsolidatedMethods ( ) ; }
Adds or replaces the specified method of the prototype.

@param string $method The name of the method.

@param callable $callback
Adds or replaces the specified method of the prototype .