src/Resources/StoredProcedure.php
protected function describeProcedure($name, $refresh = false)
    {
        $name = (is_array($name) ? array_get($name, 'name') : $name);
        if (empty($name)) {
            throw new BadRequestException('Procedure name can not be empty.');
        }

        $this->checkPermission(Verbs::GET, $name);

        try {
            $procedure = $this->getProcedure($name, $refresh);
            $result = $procedure->toArray();
            $result['access'] = $this->getPermissions($name);

            return $result;
        } catch (RestException $ex) {
            throw $ex;
        } catch (\Exception $ex) {
            throw new InternalServerErrorException("Failed to query database schema.\n{$ex->getMessage()}");
        }
    }
protected function describeProcedure($name, $refresh = false)
    {
        $name = (is_array($name) ? array_get($name, 'name') : $name);
        if (empty($name)) {
            throw new BadRequestException('Procedure name can not be empty.');
        }

        $this->checkPermission(Verbs::GET, $name);

        try {
            $procedure = $this->getProcedure($name, $refresh);
            $result = $procedure->toArray();
            $result['access'] = $this->getPermissions($name);

            return $result;
        } catch (RestException $ex) {
            throw $ex;
        } catch (\Exception $ex) {
            throw new InternalServerErrorException("Failed to query database schema.\n{$ex->getMessage()}");
        }
    }
protected function describeProcedure ( $ name , $ refresh = false ) { $ name = ( is_array ( $ name ) ? array_get ( $ name , 'name' ) : $ name ) ; if ( empty ( $ name ) ) { throw new BadRequestException ( 'Procedure name can not be empty.' ) ; } $ this -> checkPermission ( Verbs :: GET , $ name ) ; try { $ procedure = $ this -> getProcedure ( $ name , $ refresh ) ; $ result = $ procedure -> toArray ( ) ; $ result [ 'access' ] = $ this -> getPermissions ( $ name ) ; return $ result ; } catch ( RestException $ ex ) { throw $ ex ; } catch ( \ Exception $ ex ) { throw new InternalServerErrorException ( "Failed to query database schema.\n{$ex->getMessage()}" ) ; } }
Get any properties related to the procedure

@param string | array $name    Procedure name or defining properties
@param bool           $refresh Force a refresh of the schema from the database

@return array
@throws \Exception
Get any properties related to the procedure