public function withDetail($key, $message)
    {
        assert(!is_null($key), 'Key must not be null');
        assert(!is_null($message), 'Message must not be null');
        $this->details[strval($key)] = $message;

        return $this;
    }
public function withDetail($key, $message)
    {
        assert(!is_null($key), 'Key must not be null');
        assert(!is_null($message), 'Message must not be null');
        $this->details[strval($key)] = $message;

        return $this;
    }
public function withDetail ( $ key , $ message ) { assert ( ! is_null ( $ key ) , 'Key must not be null' ) ; assert ( ! is_null ( $ message ) , 'Message must not be null' ) ; $ this -> details [ strval ( $ key ) ] = $ message ; return $ this ; }
Record detail using key and message.

@param string $key     the detail key
@param mixed  $message the detail message

@return $this
Record detail using key and message .