PHP Class Visualphpunit\Api\Action\Action

Author: Johannes Skov Frandsen ([email protected])
Datei anzeigen Open project: visualphpunit/visualphpunit

Protected Methods

Method Description
notFound ( mixed $data ) : Response Return a not found http response
ok ( mixed $data ) : Response Return a found http response

Method Details

notFound() protected method

Return a not found http response with response code 404
protected notFound ( mixed $data ) : Response
$data mixed
return Symfony\Component\HttpFoundation\Response

ok() protected method

Return a found http response with response code 200
protected ok ( mixed $data ) : Response
$data mixed
return Symfony\Component\HttpFoundation\Response