gossi\codegen\model\AbstractPhpStruct::hasMethod PHP Méthode

hasMethod() public méthode

Checks whether a method exists or not
public hasMethod ( string | PhpMethod $nameOrMethod ) : boolean
$nameOrMethod string | PhpMethod method name or Method instance
Résultat 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);
    }