src/Reflection/ReflectionEntity.php
public function declaredMethods(): array
    {
        $methods = [];
        foreach ($this->getMethods() as $method) {
            if ($method->getDeclaringClass()->getName() != $this->getName()) {
                continue;
            }

            $methods[] = $method;
        }

        return $methods;
    }
public function declaredMethods(): array
    {
        $methods = [];
        foreach ($this->getMethods() as $method) {
            if ($method->getDeclaringClass()->getName() != $this->getName()) {
                continue;
            }

            $methods[] = $method;
        }

        return $methods;
    }
public function declaredMethods ( ) : array { $ methods = [ ] ; foreach ( $ this -> getMethods ( ) as $ method ) { if ( $ method -> getDeclaringClass ( ) -> getName ( ) != $ this -> getName ( ) ) { continue ; } $ methods [ ] = $ method ; } return $ methods ; }
Get methods declared in current class and exclude methods declared in parents.

@return \ReflectionMethod[]
Get methods declared in current class and exclude methods declared in parents .