Index
C
- CallSilencer — Class in namespace SR\Silencer
- Implementation for calling closure in error-silenced environment.
- CallSilencer::create() — Method in class CallSilencer
- Static method to create class instance with optional closure and validator parameters.
- CallSilencerInterface — Class in namespace SR\Silencer
- Interface for calling closure in error-silenced environment.
- CallSilencerInterface::create() — Method in class CallSilencerInterface
- Static method to create class instance with optional closure and validator parameters.
E
- Exception — Class in namespace SR\Silencer\Exception
- Base for all silencer-library exceptions.
G
- CallSilencer::getResult() — Method in class CallSilencer
- Get the return value invoked closure.
- CallSilencer::getError() — Method in class CallSilencer
- Returns the error raised by invoking closure.
- CallSilencerInterface::getResult() — Method in class CallSilencerInterface
- Get the return value invoked closure.
- CallSilencerInterface::getError() — Method in class CallSilencerInterface
- Returns the error raised by invoking closure.
H
- CallSilencer::hasResult() — Method in class CallSilencer
- Returns true if a non-null value was returned from invoked closure.
- CallSilencer::hasError() — Method in class CallSilencer
- Return true if an error was raised by invoking closure.
- CallSilencerInterface::hasResult() — Method in class CallSilencerInterface
- Returns true if a non-null value was returned from invoked closure.
- CallSilencerInterface::hasError() — Method in class CallSilencerInterface
- Return true if an error was raised by invoking closure.
- Silencer::hasPriorReportingLevels() — Method in class Silencer
- Returns true if prior restore state exists.
- SilencerInterface::hasPriorReportingLevels() — Method in class SilencerInterface
- Returns true if prior restore state exists.
I
- CallSilencer::invoke() — Method in class CallSilencer
- Invoke closure in silenced environment.
- CallSilencer::isResultValid() — Method in class CallSilencer
- Returns type hinted value from validation closure.
- CallSilencer::isResultTrue() — Method in class CallSilencer
- Returns true if the invoked closure return value is true (strict check).
- CallSilencer::isResultFalse() — Method in class CallSilencer
- Returns true if the invoked closure return value is false (strict check).
- CallSilencerInterface::invoke() — Method in class CallSilencerInterface
- Invoke closure in silenced environment.
- CallSilencerInterface::isResultValid() — Method in class CallSilencerInterface
- Returns type hinted value from validation closure.
- CallSilencerInterface::isResultTrue() — Method in class CallSilencerInterface
- Returns true if the invoked closure return value is true (strict check).
- CallSilencerInterface::isResultFalse() — Method in class CallSilencerInterface
- Returns true if the invoked closure return value is false (strict check).
- InvocationException — Class in namespace SR\Silencer\Exception
- Exception thrown if silencer call throws exception.
- Silencer::isSilenced() — Method in class Silencer
- Returns true if silenced to default mask.
- SilencerInterface::isSilenced() — Method in class SilencerInterface
- Returns true if current state is silenced.
R
- RestoreException — Class in namespace SR\Silencer\Exception
- Exception thrown during silencer restoration.
- ResultValidatorException — Class in namespace SR\Silencer\Exception
- Exception thrown result validation error occurs.
- Silencer::restore() — Method in class Silencer
- Exit silenced state.
- SilencerInterface::restore() — Method in class SilencerInterface
- Exit silenced state.
S
- CallSilencer::setClosure() — Method in class CallSilencer
- Sets the closure to invoke.
- CallSilencer::setValidator() — Method in class CallSilencer
- Sets the closure used to test validity of return value. When called, this closure is provided the return value of the invoked closure, as well the last raised error array (as first and second parameters).
- CallSilencerInterface::setClosure() — Method in class CallSilencerInterface
- Sets the closure to invoke.
- CallSilencerInterface::setValidator() — Method in class CallSilencerInterface
- Sets the closure used to test validity of return value. When called, this closure is provided the return value of the invoked closure, as well the last raised error array (as first and second parameters).
- Silencer — Class in namespace SR\Silencer
- Implementation for entering and exiting silenced error environment.
- Silencer::silence() — Method in class Silencer
- Enter silenced state.
- SilencerInterface — Class in namespace SR\Silencer
- Interface for entering and exiting silenced error environment.
- SilencerInterface::silence() — Method in class SilencerInterface
- Enter silenced state.