ServerError::__construct PHP Метод

__construct() публичный Метод

public __construct ( $reason = null, $fieldPath = null, $trigger = null, $errorString = null )
        public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null)
        {
            parent::__construct();
            $this->reason = $reason;
            $this->fieldPath = $fieldPath;
            $this->trigger = $trigger;
            $this->errorString = $errorString;
        }

Usage Example

Пример #1
0
 /**
  * @inheritdoc
  */
 public function __construct($message = self::DEFAULT_MESSAGE, $code = Status::SERVICE_UNAVAILABLE, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }