master

laravel/framework

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

Engine.php

TLDR

The provided file is a PHP class called Engine located in the Illuminate\View\Engines namespace. It contains a protected property lastRendered and a public method getLastRendered(). The getLastRendered() method returns the last view that was rendered.

Classes

Engine

The Engine class is an abstract class representing a view engine. It contains the following properties and methods:

Properties

  • $lastRendered: Represents the last view that was rendered.

Methods

  • getLastRendered(): Returns the last view that was rendered.
<?php

namespace Illuminate\View\Engines;

abstract class Engine
{
    /**
     * The view that was last to be rendered.
     *
     * @var string
     */
    protected $lastRendered;

    /**
     * Get the last view that was rendered.
     *
     * @return string
     */
    public function getLastRendered()
    {
        return $this->lastRendered;
    }
}