master

laravel/framework

Last updated at: 29/12/2023 09:21

Renderable.php

TLDR

This file defines an interface called Renderable which requires classes that implement it to have a render method that returns a string.

Methods

render

This method should be implemented by classes that implement the Renderable interface. It should return a string representing the evaluated contents of the object.

<?php

namespace Illuminate\Contracts\Support;

interface Renderable
{
    /**
     * Get the evaluated contents of the object.
     *
     * @return string
     */
    public function render();
}