PHP 클래스 Zend\Stratigility\Utils

파일 보기 프로젝트 열기: zendframework/zend-stratigility 1 사용 예제들

공개 메소드들

메소드 설명
getArity ( string | callable | object $callable ) : integer Get the arity of a handler
getStatusCode ( mixed $error, Psr\Http\Message\ResponseInterface $response ) : integer Determine status code from an error and/or response.

메소드 상세

getArity() 공개 정적인 메소드

Get the arity of a handler
public static getArity ( string | callable | object $callable ) : integer
$callable string | callable | object
리턴 integer

getStatusCode() 공개 정적인 메소드

If the error is an exception with a code between 400 and 599, returns the exception code. Otherwise, retrieves the code from the response; if not present, or less than 400 or greater than 599, returns 500; otherwise, returns it.
public static getStatusCode ( mixed $error, Psr\Http\Message\ResponseInterface $response ) : integer
$error mixed
$response Psr\Http\Message\ResponseInterface
리턴 integer