setasign\SetaPDF2\Core\Writer

VarWriter A writer class for a referenced variable

File: /SetaPDF v2/Core/Writer/VarWriter.php
Old class name (alias): \SetaPDF_Core_Writer_Var

Class hierarchy

Implements

Summary

Properties

$_pos

protected int VarWriter::$_pos = 0

The current position

$_status

protected string AbstractWriter::$_status = 0

Status property

$_var

protected string VarWriter::$_var

The variable reference


Methods

__construct()

public VarWriter::__construct (
string &$var
)

The constructor.

Parameters
$var : string

A reference to the variable to write to

__toString()

public VarWriter::__toString (
void
): string

__toString()-implementation.

cleanUp()

public VarWriter::cleanUp (
void
): void

Unset the reference to the variable.

See

finish()

public AbstractWriter::finish (
void
): void

Method which should/will be called when the writing process is finished.

getPos()

public VarWriter::getPos (
void
): int

Returns the current position.

getStatus()

public AbstractWriter::getStatus (
void
): string

Get the current status of the writer object.

start()

public VarWriter::start (
void
): void

Initiate the referenced variable.

See

write()

public VarWriter::write (
string $s
): void

Adds content to the referenced variable.

Parameters
$s : string