interface SilencerInterface

Interface for entering and exiting silenced error environment.

Constants

DEFAULT_MASK

The default silence mask to apply.

Methods

static  int
silence( int $mask = null)

Enter silenced state.

static  int
restore()

Exit silenced state.

static  bool|int
isSilenced()

Returns true if current state is silenced.

static  bool
hasPriorReportingLevels()

Returns true if prior restore state exists.

Details

at line line 31
static int silence( int $mask = null)

Enter silenced state.

Parameters

int $mask Error reporting level mask to apply

Return Value

int

at line line 38
static int restore()

Exit silenced state.

Return Value

int

at line line 45
static bool|int isSilenced()

Returns true if current state is silenced.

Return Value

bool|int

at line line 52
static bool hasPriorReportingLevels()

Returns true if prior restore state exists.

Return Value

bool