src/php/Text/Decorator/Generic.php
public function providesMethod($name)
    {
        if (method_exists($this, $name)) {
            return true;
        }
        if ($this->text instanceof Generic) {
            return $this->text->providesMethod($name);
        }
        return false;
    }
public function providesMethod($name)
    {
        if (method_exists($this, $name)) {
            return true;
        }
        if ($this->text instanceof Generic) {
            return $this->text->providesMethod($name);
        }
        return false;
    }
public function providesMethod ( $ name ) { if ( method_exists ( $ this , $ name ) ) { return true ; } if ( $ this -> text instanceof Generic ) { return $ this -> text -> providesMethod ( $ name ) ; } return false ; }
Returns if the given method is implemented by one of the decorators.

@param string $name Method name.

@return bool
Returns if the given method is implemented by one of the decorators .