Ejemplo n.º 1
0
 /**
  * @param int $convertError
  *
  * @return $this
  */
 public function setConvertError($convertError)
 {
     $value = is_bool($convertError) ? $convertError ? E_ALL : static::E_NONE : $this->toInt($convertError);
     $this->convertError = $value;
     // Refresh the handler if necessary
     ErrorHandler::started() and ErrorHandler::clean();
     if ($this->convertError !== static::E_NONE) {
         ErrorHandler::start($value);
     }
     return $this;
 }