Library/ClassMethod.php
public function hasModifier($modifier)
    {
        foreach ($this->visibility as $visibility) {
            if ($visibility == $modifier) {
                return true;
            }
        }

        return false;
    }
public function hasModifier($modifier)
    {
        foreach ($this->visibility as $visibility) {
            if ($visibility == $modifier) {
                return true;
            }
        }

        return false;
    }
public function hasModifier ( $ modifier ) { foreach ( $ this -> visibility as $ visibility ) { if ( $ visibility == $ modifier ) { return true ; } } return false ; }
Checks whether the method has a specific modifier.

@param string $modifier

@return bool
Checks whether the method has a specific modifier .