private function autoGetterOrSetter(FunctionModel $function, InterfaceModelInterface $parent): bool
    {
        if ($this->config->hasAuto() && $parent instanceof TraitModelInterface) {
            if ($this->getter($function, $parent)) {
                return true;
            }
            if ($this->setter($function, $parent)) {
                return true;
            }
        }
        return false;
    }
private function autoGetterOrSetter(FunctionModel $function, InterfaceModelInterface $parent): bool
    {
        if ($this->config->hasAuto() && $parent instanceof TraitModelInterface) {
            if ($this->getter($function, $parent)) {
                return true;
            }
            if ($this->setter($function, $parent)) {
                return true;
            }
        }
        return false;
    }
private function autoGetterOrSetter ( FunctionModel $ function , InterfaceModelInterface $ parent ) : bool { if ( $ this -> config -> hasAuto ( ) && $ parent instanceof TraitModelInterface ) { if ( $ this -> getter ( $ function , $ parent ) ) { return true ; } if ( $ this -> setter ( $ function , $ parent ) ) { return true ; } } return false ; }
Check if auto generation is enabled, and try to generate getter or setter annotation.

@param FunctionModel           $function The function to check for.
@param InterfaceModelInterface $parent   The parent to use.

@return bool True if a getter or a setter annotation has been created.
Check if auto generation is enabled and try to generate getter or setter annotation .