public function addMethod(CNabuPHPMethodBuilder $method) : bool
    {
        $retval = false;
        $name = $method->getName();

        if (!array_key_exists($name, $this->method_list)) {
            $this->method_list[] = $method;
            $retval = true;
        }

        return $retval;
    }
public function addMethod(CNabuPHPMethodBuilder $method) : bool
    {
        $retval = false;
        $name = $method->getName();

        if (!array_key_exists($name, $this->method_list)) {
            $this->method_list[] = $method;
            $retval = true;
        }

        return $retval;
    }
public function addMethod ( CNabuPHPMethodBuilder $ method ) : bool { $ retval = false ; $ name = $ method -> getName ( ) ; if ( ! array_key_exists ( $ name , $ this -> method_list ) ) { $ this -> method_list [ ] = $ method ; $ retval = true ; } return $ retval ; }
Add a method to the class
@param CNabuPHPMethodBuilder $method Method instance to be added
@return bool Returns true if the method is added or false if already exists
Add a method to the class