public function addFunctionClass ($obj) {
        $ref = new \ReflectionObject($obj);
        foreach ($ref->getMethods() as $curMethod) {
            if ( ! $curMethod->isPublic())
                continue;
            $this->addFunction($curMethod->getName(), [$obj, $curMethod->getName()]);
        }
        return $this;
    }
public function addFunctionClass ($obj) {
        $ref = new \ReflectionObject($obj);
        foreach ($ref->getMethods() as $curMethod) {
            if ( ! $curMethod->isPublic())
                continue;
            $this->addFunction($curMethod->getName(), [$obj, $curMethod->getName()]);
        }
        return $this;
    }
public function addFunctionClass ( $ obj ) { $ ref = new \ ReflectionObject ( $ obj ) ; foreach ( $ ref -> getMethods ( ) as $ curMethod ) { if ( ! $ curMethod -> isPublic ( ) ) continue ; $ this -> addFunction ( $ curMethod -> getName ( ) , [ $ obj , $ curMethod -> getName ( ) ] ) ; } return $ this ; }
Register all public Functions from an Object

@param \stdClass $obj

@return $this
Register all public Functions from an Object