public function addMethod(string $methodName, callable $methodClosure): void
    {
        $this->methods[strtolower($methodName)] = $methodClosure->bindTo($this);
    }
public function addMethod(string $methodName, callable $methodClosure): void
    {
        $this->methods[strtolower($methodName)] = $methodClosure->bindTo($this);
    }
public function addMethod ( string $ methodName , callable $ methodClosure ) : void { $ this -> methods [ strtolower ( $ methodName ) ] = $ methodClosure -> bindTo ( $ this ) ; }
Add method.
@param  string   $methodName
@param  callable $methodClosure
@return void
Add method .