public function having($annotation)
    {
        $methods = [];

        foreach ($this->reflectInto($this->reference) as $method) {
            if ($this->hasAnnotation($annotation, $method)) {
                $methods[] = $method->getName();
            }
        }

        // We'll reverse the results to ensure that this package's
        // hooks are called *before* the user's.

        return array_reverse($methods);
    }
public function having($annotation)
    {
        $methods = [];

        foreach ($this->reflectInto($this->reference) as $method) {
            if ($this->hasAnnotation($annotation, $method)) {
                $methods[] = $method->getName();
            }
        }

        // We'll reverse the results to ensure that this package's
        // hooks are called *before* the user's.

        return array_reverse($methods);
    }
public function having ( $ annotation ) { $ methods = [ ] ; foreach ( $ this -> reflectInto ( $ this -> reference ) as $ method ) { if ( $ this -> hasAnnotation ( $ annotation , $ method ) ) { $ methods [ ] = $ method -> getName ( ) ; } } // We'll reverse the results to ensure that this package's // hooks are called *before* the user's. return array_reverse ( $ methods ) ; }
Get method names for the referenced object
which contain the given annotation.

@param  string $annotation
@return array
Get method names for the referenced object which contain the given annotation .