Documentation

With
in package

FinalYes

An object wrapper for chainable method calls.

Tags
template
type

With<T>

since
1.1

Table of Contents

Properties

$object  : object

Methods

__call()  : $this
__construct()  : mixed
__toString()  : string
new()  : With<string|int, W>

Properties

$object

public object $object

Methods

__call()

public __call(string $method, array<string|int, mixed> $args) : $this
Parameters
$method : string
$args : array<string|int, mixed>
Return values
$this

__construct()

public __construct(W $object) : mixed
Parameters
$object : W

the object to wrap

Tags
template

__toString()

public __toString() : string
Return values
string

new()

public static new(W> $class, mixed ...$args) : With<string|int, W>
Parameters
$class : W>

the class name to create

$args : mixed

constructor arguments

Tags
template
since
1.1
Return values
With<string|int, W>

the created object, wrapped into With


        
On this page

Search results