gossi\codegen\model\AbstractPhpStruct::hasMethod PHP Method

hasMethod() public method

Checks whether a method exists or not
public hasMethod ( string | PhpMethod $nameOrMethod ) : boolean
$nameOrMethod string | PhpMethod method name or Method instance
return boolean `true` if it exists and `false` if not
    public function hasMethod($nameOrMethod)
    {
        if ($nameOrMethod instanceof PhpMethod) {
            $nameOrMethod = $nameOrMethod->getName();
        }
        return $this->methods->has($nameOrMethod);
    }