src/Resource.php
public function respondsTo($name = null)
    {
        if ($name) {
            return isset($this->meta['methods'][$name]);
        } else {
            return array_keys($this->meta['methods']);
        }
    }
public function respondsTo($name = null)
    {
        if ($name) {
            return isset($this->meta['methods'][$name]);
        } else {
            return array_keys($this->meta['methods']);
        }
    }
public function respondsTo ( $ name = null ) { if ( $ name ) { return isset ( $ this -> meta [ 'methods' ] [ $ name ] ) ; } else { return array_keys ( $ this -> meta [ 'methods' ] ) ; } }
Introspects which resources and actions are accessible on this resource.

@param string|null $name

@return array|bool
Introspects which resources and actions are accessible on this resource .