PHP 인터페이스 Indatus\Ranger\ContentType\ContentRendererInterface

파일 보기 프로젝트 열기: indatus/ranger

공개 메소드들

메소드 설명
render ( array $content ) : mixed render - renders api response in the format of the class that implements this interface.

메소드 상세

render() 공개 메소드

render - renders api response in the format of the class that implements this interface.
public render ( array $content ) : mixed
$content array the data format of the api response should be an array. If using eloquent make sure to use the toArray() method before passing the data to this method.
리턴 mixed