ApiError::__construct PHP Method

__construct() public method

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

Same methods

ApiError::__construct ( $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null )

Usage Example

 public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null)
 {
     parent::__construct();
     $this->reason = $reason;
     $this->fieldPath = $fieldPath;
     $this->trigger = $trigger;
     $this->errorString = $errorString;
     $this->ApiErrorType = $ApiErrorType;
 }
All Usage Examples Of ApiError::__construct