public function setResultCode($properties, $resultCode)
    {
        foreach ((array) $properties as $propertyName) {
            $this->result[$propertyName] = $resultCode;
        }

        if ($resultCode >= 400) {
            $this->failed = true;
        }
    }
public function setResultCode($properties, $resultCode)
    {
        foreach ((array) $properties as $propertyName) {
            $this->result[$propertyName] = $resultCode;
        }

        if ($resultCode >= 400) {
            $this->failed = true;
        }
    }
public function setResultCode ( $ properties , $ resultCode ) { foreach ( ( array ) $ properties as $ propertyName ) { $ this -> result [ $ propertyName ] = $ resultCode ; } if ( $ resultCode >= 400 ) { $ this -> failed = true ; } }
Sets the result code for one or more properties.

@param string|string[] $properties
@param int             $resultCode
Sets the result code for one or more properties .