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;
    }