src/Analyse/Comment/Methods.php
protected function getInterfaceComment($originalComment, \ReflectionClass $reflectionClass)
    {
        foreach ($reflectionClass->getInterfaces() as $interface) {
            if ($interface->hasMethod($this->methodName) === true) {
                $interfaceComment = $this->prettifyComment($interface->getMethod($this->methodName)->getDocComment());
                // Replace it.
                $originalComment = $this->replaceInheritComment($originalComment, $interfaceComment);
            }
            if ($this->checkComment($originalComment) === true) {
                // Looks like we've resolved them all.
                return $originalComment;
            }
            // We need to look further.
        }

        // Return what we could resolve so far.
        return $originalComment;
    }
protected function getInterfaceComment($originalComment, \ReflectionClass $reflectionClass)
    {
        foreach ($reflectionClass->getInterfaces() as $interface) {
            if ($interface->hasMethod($this->methodName) === true) {
                $interfaceComment = $this->prettifyComment($interface->getMethod($this->methodName)->getDocComment());
                // Replace it.
                $originalComment = $this->replaceInheritComment($originalComment, $interfaceComment);
            }
            if ($this->checkComment($originalComment) === true) {
                // Looks like we've resolved them all.
                return $originalComment;
            }
            // We need to look further.
        }

        // Return what we could resolve so far.
        return $originalComment;
    }
protected function getInterfaceComment ( $ originalComment , \ ReflectionClass $ reflectionClass ) { foreach ( $ reflectionClass -> getInterfaces ( ) as $ interface ) { if ( $ interface -> hasMethod ( $ this -> methodName ) === true ) { $ interfaceComment = $ this -> prettifyComment ( $ interface -> getMethod ( $ this -> methodName ) -> getDocComment ( ) ) ; // Replace it. $ originalComment = $ this -> replaceInheritComment ( $ originalComment , $ interfaceComment ) ; } if ( $ this -> checkComment ( $ originalComment ) === true ) { // Looks like we've resolved them all. return $ originalComment ; } // We need to look further. } // Return what we could resolve so far. return $ originalComment ; }
Gets the comment from all implemented interfaces.

Iterated through an array of interfaces, to see
if we can resolve the inherited comment.

@param string $originalComment
The original comment, so far.
@param \ReflectionClass $reflectionClass
A reflection of the object we are currently analysing.

@return string
The comment from one of the interfaces.
Gets the comment from all implemented interfaces .