| 1 | <?php |
||
| 11 | final class RouteResponse implements Renderable |
||
| 12 | { |
||
| 13 | /** @var */ |
||
| 14 | protected $data; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * RouteResponse constructor. |
||
| 18 | * |
||
| 19 | * @param null $data |
||
| 20 | */ |
||
| 21 | public function __construct($data = null) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create static instance |
||
| 28 | * |
||
| 29 | * @param $data |
||
| 30 | * @return static |
||
| 31 | */ |
||
| 32 | public static function create($data) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Format and return to requester |
||
| 39 | * |
||
| 40 | * @return mixed |
||
| 41 | */ |
||
| 42 | public function render() |
||
| 46 | } |