Documentation

PropertyHookVirtual
in package

Table of Contents

Properties

$completeFullName  : string
A virtual property with both getter and setter
$compositeName  : string
A virtual property that decomposes a full name into first and last name
$fullName  : string
A virtual property that composes a full name from first and last name
$nonVirtualName  : string
A non-virtual property that references itself in its hook
$firstName  : string
$lastName  : string

Methods

__construct()  : mixed

Properties

$completeFullName virtual

A virtual property with both getter and setter

public string $completeFullName
Hooks
public string get public set
Parameters
$value : string

$compositeName write-only virtual

A virtual property that decomposes a full name into first and last name

public string $compositeName
Hooks
public set
Parameters
$value : string

$fullName read-only virtual

A virtual property that composes a full name from first and last name

public string $fullName
Hooks
public string get

$nonVirtualName

A non-virtual property that references itself in its hook

public string $nonVirtualName
Hooks
public string get public set
Parameters
$value : string

Methods

__construct()

public __construct([string $firstName = 'John' ][, string $lastName = 'Doe' ]) : mixed
Parameters
$firstName : string = 'John'
$lastName : string = 'Doe'

        
On this page

Search results