Documentation

Visibility
in package

Value object for visibility values of classes, properties, ect.

Table of Contents

PRIVATE_  = 'private'
constant for private visibility
PROTECTED_  = 'protected'
constant for protected visibility
PUBLIC_  = 'public'
constant for protected visibility
$visibility  : string
__construct()  : mixed
Initializes the object.
__toString()  : string
Will return a string representation of visibility.

Constants

PRIVATE_

constant for private visibility

public mixed PRIVATE_ = 'private'

PROTECTED_

constant for protected visibility

public mixed PROTECTED_ = 'protected'

PUBLIC_

constant for protected visibility

public mixed PUBLIC_ = 'public'

Properties

$visibility

private string $visibility

value can be public, protected or private

Methods

__construct()

Initializes the object.

public __construct(string $visibility) : mixed
Parameters
$visibility : string
Tags
throws
InvalidArgumentException

When visibility does not match public|protected|private.

Return values
mixed

__toString()

Will return a string representation of visibility.

public __toString() : string
Return values
string

Search results