Documentation

Menu

## View
in package

View.php : 5

### Table of Contents

#### Properties

$htmlContent : string

#### Methods

add() : self
  Adds content to the view.
clear() : void
  Clears the view.
get() : string
render() : self
  Renders the view.
set() : self
  Sets the content of the view.

### Properties

#### $htmlContent

View.php : 7
`private string $htmlContent = ''`

### Methods

#### add()

View.php : 20

Adds content to the view.

`public add(string $content) : self`

##### Parameters

$content : string

  The content to be added.

##### Return values

self —

Returns an instance of the View class.

#### clear()

View.php : 60

Clears the view.

`public clear() : void`

This method clears the view by removing all the content and resetting any internal state.

#### get()

View.php : 38
`public get() : string`

##### Return values

string

#### render()

View.php : 49

Renders the view.

`public render() : self`

This method is responsible for rendering the view and displaying it to the user. It should be called after setting all the necessary data for the view.

##### Return values

self

#### set()

View.php : 32

Sets the content of the view.

`public set(string $content) : self`

##### Parameters

$content : string

  The content to set.

##### Return values

self —

Returns the current instance of the View class.

## Search results