class Silencer implements SilencerInterface

Implementation for entering and exiting silenced error environment.

This is based heavily on Composer's Silencer utility class, which can be found at https://github.com/composer/composer/blob/master/src/Composer/Util/Silencer.php

Methods

static  int
silence( int $mask = self::DEFAULT_MASK)

Enter silenced state.

static  int
restore()

Exit silenced state.

static  bool|int
isSilenced()

Returns true if silenced to default mask.

static  bool
hasPriorReportingLevels()

Returns true if prior restore state exists.

Details

at line line 36
static int silence( int $mask = self::DEFAULT_MASK)

Enter silenced state.

Parameters

int $mask Error reporting level mask to apply

Return Value

int

at line line 53
static int restore()

Exit silenced state.

Return Value

int

Exceptions

RestoreException If {see silence()} is not called prior

at line line 70
static bool|int isSilenced()

Returns true if silenced to default mask.

Return Value

bool|int

at line line 86
static bool hasPriorReportingLevels()

Returns true if prior restore state exists.

Return Value

bool